Skip to main content

service_protocols

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

Overview​

Nameservice_protocols
TypeResource
Idovh.email_exchange.service_protocols

Fields​

The following fields are returned by SELECT queries:

successful operation

NameDatatypeDescription
task_pending_idintegerPending task id (wire: taskPendingId)
active_syncbooleanActiveSync protocol enabled on this Exchange service (wire: activeSync)
active_sync_policystringActiveSync policy to apply at device's first connection (allow, block, quarantine) (wire: activeSyncPolicy)
creation_datestring (date-time)Creation date (wire: creationDate)
imapbooleanIMAP protocol enabled on this Exchange service (wire: IMAP)
last_updatestring (date-time)Last update date (wire: lastUpdate)
popbooleanPOP protocol enabled on this Exchange service (wire: POP)
web_mailbooleanWeb mail protocol enabled on this Exchange service (wire: webMail)

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectexchange_service, organization_nameGet the service protocols. Returns whether POP, IMAP, webmail and ActiveSync are enabled on the service, and the ActiveSync policy applied to new devices.
updateupdateexchange_service, organization_nameUpdate the service protocols. Enables or disables POP, IMAP, webmail and ActiveSync on the service, and sets the ActiveSync policy applied to new devices: allow, block or quarantine.

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)

SELECT examples​

Get the service protocols. Returns whether POP, IMAP, webmail and ActiveSync are enabled on the service, and the ActiveSync policy applied to new devices.

SELECT
task_pending_id,
active_sync,
active_sync_policy,
creation_date,
imap,
last_update,
pop,
web_mail
FROM ovh.email_exchange.service_protocols
WHERE exchange_service = '{{ exchange_service }}' -- required
AND organization_name = '{{ organization_name }}' -- required
;

UPDATE examples​

Update the service protocols. Enables or disables POP, IMAP, webmail and ActiveSync on the service, and sets the ActiveSync policy applied to new devices: allow, block or quarantine.

UPDATE ovh.email_exchange.service_protocols
SET
imap = {{ imap }},
pop = {{ pop }},
active_sync = {{ active_sync }},
active_sync_policy = '{{ active_sync_policy }}',
web_mail = {{ web_mail }}
WHERE
exchange_service = '{{ exchange_service }}' --required
AND organization_name = '{{ organization_name }}' --required;