Skip to main content

account_delegations

Creates, updates, deletes, gets or lists an account_delegations resource.

Overview​

Nameaccount_delegations
TypeResource
Idovh.email_domain.account_delegations

Fields​

The following fields are returned by SELECT queries:

successful operation

NameDatatypeDescription
account_idstringOVH customer unique identifier (wire: accountId)

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectaccount_id, account_name, domainGet a delegation. Returns the OVHcloud account ID (accountId) that has been delegated the management of the email account.
listselectaccount_name, domainx_pagination_modeList delegations. Returns the OVHcloud account IDs (accountId) that have been delegated the management of the email account.
createinsertaccount_name, domain, account_idCreate a delegation. Gives the OVHcloud account accountId the management of the email account, from its own control panel.
deletedeleteaccount_id, account_name, domainRemove a delegation. Withdraws from the OVHcloud account the management of the email account that it had been delegated.

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
account_idstringOVH customer unique identifier (wire: accountId)
account_namestringName of account (wire: accountName)
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"}})
domainstringName of your domain name
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 delegation. Returns the OVHcloud account ID (accountId) that has been delegated the management of the email account.

SELECT
account_id
FROM ovh.email_domain.account_delegations
WHERE account_id = '{{ account_id }}' -- required
AND account_name = '{{ account_name }}' -- required
AND domain = '{{ domain }}' -- required
;

INSERT examples​

Create a delegation. Gives the OVHcloud account accountId the management of the email account, from its own control panel.

INSERT INTO ovh.email_domain.account_delegations (
account_id,
account_name,
domain
)
SELECT
'{{ account_id }}' /* required */,
'{{ account_name }}',
'{{ domain }}'
;

DELETE examples​

Remove a delegation. Withdraws from the OVHcloud account the management of the email account that it had been delegated.

DELETE FROM ovh.email_domain.account_delegations
WHERE account_id = '{{ account_id }}' --required
AND account_name = '{{ account_name }}' --required
AND domain = '{{ domain }}' --required
;