Skip to main content

service_custom_isolations

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

Overview​

Nameservice_custom_isolations
TypeResource
Idovh.email_exchange.service_custom_isolations

Fields​

The following fields are returned by SELECT queries:

successful operation

NameDatatypeDescription
namestringName of the custom isolation
creation_datestring (date-time)Creation date (wire: creationDate)
isolation_fieldstringField used for isolation (company, country) (wire: isolationField)
isolation_valuestringIsolation field value (wire: isolationValue)
statusstringCustom isolation status (creating, deleting, internalMigration, ok, reopening, suspended, suspending)

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectexchange_service, name, organization_nameGet a custom isolation. Returns the name of the custom isolation, the field and value it isolates on, its status and creation date.
listselectexchange_service, organization_nameisolation_field, isolation_value, name, x_pagination_modeList custom isolations. Returns the names of the custom isolations. Filter them by name, isolationField or isolationValue.
createinsertexchange_service, organization_name, isolation_field, isolation_value, nameCreate a custom isolation. Creates a custom isolation from a name, an isolationField (company or country) and an isolationValue, and returns the task.
deletedeleteexchange_service, name, organization_nameDelete a custom isolation. Removes the custom isolation from the Exchange service, so that its field no longer isolates users, 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)
namestringName of the custom isolation
organization_namestringThe internal name of your exchange organization (wire: organizationName)
isolation_fieldstringFilter the value of isolationField property (=) (wire: isolationField)
isolation_valuestringFilter the value of isolationValue property (like) (wire: isolationValue)
namestringFilter the value of name 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 custom isolation. Returns the name of the custom isolation, the field and value it isolates on, its status and creation date.

SELECT
name,
creation_date,
isolation_field,
isolation_value,
status
FROM ovh.email_exchange.service_custom_isolations
WHERE exchange_service = '{{ exchange_service }}' -- required
AND name = '{{ name }}' -- required
AND organization_name = '{{ organization_name }}' -- required
;

INSERT examples​

Create a custom isolation. Creates a custom isolation from a name, an isolationField (company or country) and an isolationValue, and returns the task.

INSERT INTO ovh.email_exchange.service_custom_isolations (
isolation_field,
isolation_value,
name,
exchange_service,
organization_name
)
SELECT
'{{ isolation_field }}' /* required */,
'{{ isolation_value }}' /* required */,
'{{ name }}' /* required */,
'{{ exchange_service }}',
'{{ organization_name }}'
RETURNING
id,
finish_date,
function,
status,
todo_date
;

DELETE examples​

Delete a custom isolation. Removes the custom isolation from the Exchange service, so that its field no longer isolates users, and returns the task.

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