Skip to main content

service_public_folders

Creates, updates, deletes, gets or lists a service_public_folders resource.

Overview​

Nameservice_public_folders
TypeResource
Idovh.email_exchange.service_public_folders

Fields​

The following fields are returned by SELECT queries:

successful operation

NameDatatypeDescription
task_pending_idintegertask pending id (wire: taskPendingId)
anonymous_permissionstringAccess right for the guest users (editor, none, reviewer) (wire: anonymousPermission)
creation_datestring (date-time)Creation date (wire: creationDate)
default_permissionstringDefault access right (editor, none, reviewer) (wire: defaultPermission)
has_sub_foldersbooleanIf true, this public folder has subfolders (wire: hasSubFolders)
item_countintegerNumber of items in public folder (wire: itemCount)
last_access_timestring (date-time)Time for which public folder was accessed for the last time (wire: lastAccessTime)
last_modification_timestring (date-time)Time for which public folder was modified for the last time (wire: lastModificationTime)
last_user_access_timestring (date-time)Time for which public folder was accessed for the last time by the user (wire: lastUserAccessTime)
last_user_modification_timestring (date-time)Time for which public folder was modified for the last time by the user (wire: lastUserModificationTime)
pathstringPath for public folder
quotaintegerQuota for public folder in MB
statestringCurrent object state (creating, deleting, internalMigration, ok, reopening, suspended, suspending)
total_item_sizeintegerSum of all items in public folder in MB (wire: totalItemSize)
typestringType for public folder (calendar, contacts, plain, tasks)

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectexchange_service, organization_name, pathGet a public folder. Returns the type, quota, size, item count, default and anonymous permissions and access dates of the public folder.
listselectexchange_service, organization_namepath, x_pagination_modeList public folders. Returns the paths of the public folders of the service. Filter them by path to look for a given folder.
createinsertexchange_service, organization_name, path, quota, typeCreate a public folder. Creates a calendar, contacts, plain or tasks public folder from its path and its quota in MB, and returns the task.
updateupdateexchange_service, organization_name, pathUpdate a public folder. Updates the quota of the public folder, in MB, and its default and anonymous permissions.
deletedeleteexchange_service, organization_name, pathDelete a public folder. Deletes the public folder with its content and permissions, and returns the task.

Parameters​

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
api_hoststringThe OVHcloud API host. Selected by OVH_ENDPOINT (ovh-eu, ovh-ca or ovh-us; default ovh-eu). (default: api.eu.ovhcloud.com, x-stackQL-envVarSelector: {"envVar":"OVH_ENDPOINT","default":"ovh-eu","values":{"ovh-eu":"api.eu.ovhcloud.com","ovh-ca":"api.ca.ovhcloud.com","ovh-us":"api.us.ovhcloud.com"}})
exchange_servicestringThe internal name of your exchange service (wire: exchangeService)
organization_namestringThe internal name of your exchange organization (wire: organizationName)
pathstringPath for public folder
pathstringFilter the value of path property (like)
x_pagination_modestringSent as CachedObjectList-Pages by default so the list returns the full objects rather than their identifiers. (wire: X-Pagination-Mode)

SELECT examples​

Get a public folder. Returns the type, quota, size, item count, default and anonymous permissions and access dates of the public folder.

SELECT
task_pending_id,
anonymous_permission,
creation_date,
default_permission,
has_sub_folders,
item_count,
last_access_time,
last_modification_time,
last_user_access_time,
last_user_modification_time,
path,
quota,
state,
total_item_size,
type
FROM ovh.email_exchange.service_public_folders
WHERE exchange_service = '{{ exchange_service }}' -- required
AND organization_name = '{{ organization_name }}' -- required
AND path = '{{ path }}' -- required
;

INSERT examples​

Create a public folder. Creates a calendar, contacts, plain or tasks public folder from its path and its quota in MB, and returns the task.

INSERT INTO ovh.email_exchange.service_public_folders (
anonymous_permission,
default_permission,
path,
quota,
type,
exchange_service,
organization_name
)
SELECT
'{{ anonymous_permission }}',
'{{ default_permission }}',
'{{ path }}' /* required */,
{{ quota }} /* required */,
'{{ type }}' /* required */,
'{{ exchange_service }}',
'{{ organization_name }}'
RETURNING
id,
finish_date,
function,
status,
todo_date
;

UPDATE examples​

Update a public folder. Updates the quota of the public folder, in MB, and its default and anonymous permissions.

UPDATE ovh.email_exchange.service_public_folders
SET
anonymous_permission = '{{ anonymous_permission }}',
default_permission = '{{ default_permission }}',
quota = {{ quota }}
WHERE
exchange_service = '{{ exchange_service }}' --required
AND organization_name = '{{ organization_name }}' --required
AND path = '{{ path }}' --required;

DELETE examples​

Delete a public folder. Deletes the public folder with its content and permissions, and returns the task.

DELETE FROM ovh.email_exchange.service_public_folders
WHERE exchange_service = '{{ exchange_service }}' --required
AND organization_name = '{{ organization_name }}' --required
AND path = '{{ path }}' --required
;