Skip to main content

service_protocol_active_sync_mail_notifications

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

Overview​

Nameservice_protocol_active_sync_mail_notifications
TypeResource
Idovh.email_exchange.service_protocol_active_sync_mail_notifications

Fields​

The following fields are returned by SELECT queries:

successful operation

NameDatatypeDescription
notified_account_idintegerNotified Account Id (wire: notifiedAccountId)
creation_datestring (date-time)Creation date (wire: creationDate)
primary_email_addressstringPrimary email address for notified account (wire: primaryEmailAddress)
statestringEmail state (creating, deleting, ok)

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectexchange_service, notified_account_id, organization_nameGet an ActiveSync notified account. Returns the email address and state of an account that receives the ActiveSync quarantine notifications.
listselectexchange_service, organization_namex_pagination_modeList ActiveSync notified accounts. Returns the IDs of the accounts that receive the ActiveSync quarantine notifications.
createinsertexchange_service, organization_name, notified_account_idAdd an ActiveSync notified account. Subscribes the account given by notifiedAccountId to the ActiveSync quarantine notifications, and returns the task.
deletedeleteexchange_service, notified_account_id, organization_nameRemove an ActiveSync notified account. Unsubscribes the account from the ActiveSync quarantine notifications, 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)
notified_account_idintegerNotified Account Id (wire: notifiedAccountId)
organization_namestringThe internal name of your exchange organization (wire: organizationName)
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 an ActiveSync notified account. Returns the email address and state of an account that receives the ActiveSync quarantine notifications.

SELECT
notified_account_id,
creation_date,
primary_email_address,
state
FROM ovh.email_exchange.service_protocol_active_sync_mail_notifications
WHERE exchange_service = '{{ exchange_service }}' -- required
AND notified_account_id = '{{ notified_account_id }}' -- required
AND organization_name = '{{ organization_name }}' -- required
;

INSERT examples​

Add an ActiveSync notified account. Subscribes the account given by notifiedAccountId to the ActiveSync quarantine notifications, and returns the task.

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

DELETE examples​

Remove an ActiveSync notified account. Unsubscribes the account from the ActiveSync quarantine notifications, and returns the task.

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