Skip to main content

delegated_accounts

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

Overview​

Namedelegated_accounts
TypeResource
Idovh.email_domain.delegated_accounts

Fields​

The following fields are returned by SELECT queries:

successful operation

NameDatatypeDescription
account_namestringName of account (wire: accountName)
allowed_account_sizearrayList of allowed sizes for this account in bytes (wire: allowedAccountSize)
descriptionstringAccount description
domainstringName of domain
emailstringEmail
is_blockedbooleanIf true your account is blocked (wire: isBlocked)
sizeintegerSize of your account in bytes

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectemailGet a delegated account. Returns the email address, description, size in bytes, allowed sizes and blocked state of the delegated email account.
listselectaccount_name, domain, x_pagination_modeList delegated accounts. Returns the email addresses of the email accounts delegated to the customer account. Filter them by domain or accountName.
updateupdateemailUpdate a delegated account. Updates the description or the size in bytes of the delegated email account. The allowed sizes are in allowedAccountSize.
change_passwordexecemail, passwordChange a delegated account password. Sets a new password and returns the task. The password needs 8 to 30 characters and no accents.
update_usageexecemailRefresh delegated account usage. Asks for the figures returned by usage to be recomputed; they are updated asynchronously.
usageexecemailGet delegated account usage. Returns the number of emails, the maximum size in bytes of the mailbox (quota) and the date of the measure.

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"}})
emailstringEmail
account_namestringName of email address (wire: accountName)
domainstringDomain of email address
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 delegated account. Returns the email address, description, size in bytes, allowed sizes and blocked state of the delegated email account.

SELECT
account_name,
allowed_account_size,
description,
domain,
email,
is_blocked,
size
FROM ovh.email_domain.delegated_accounts
WHERE email = '{{ email }}' -- required
;

UPDATE examples​

Update a delegated account. Updates the description or the size in bytes of the delegated email account. The allowed sizes are in allowedAccountSize.

UPDATE ovh.email_domain.delegated_accounts
SET
description = '{{ description }}',
size = {{ size }}
WHERE
email = '{{ email }}' --required;

Lifecycle Methods​

EXEC variables use wire (API) names.

Change a delegated account password. Sets a new password and returns the task. The password needs 8 to 30 characters and no accents.

EXEC ovh.email_domain.delegated_accounts.change_password
@email='{{ email }}' --required
@@json=
'{
"password": "{{ password }}"
}'
;