Skip to main content

acls

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

Overview​

Nameacls
TypeResource
Idovh.email_domain.acls

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, domainGet an ACL. Returns the OVHcloud account ID (accountId) that has been given access to the email service of the domain.
listselectdomainx_pagination_modeList ACLs. Returns the OVHcloud account IDs (accountId) that have been given access to the email service of the domain.
createinsertdomain, account_idAdd an ACL. Gives the OVHcloud account accountId full management of the email domain, and returns the ACL.
deletedeleteaccount_id, domainRemove an ACL. Withdraws from the OVHcloud account the access to the email service of the domain that it had been given.

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)
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 an ACL. Returns the OVHcloud account ID (accountId) that has been given access to the email service of the domain.

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

INSERT examples​

Add an ACL. Gives the OVHcloud account accountId full management of the email domain, and returns the ACL.

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

DELETE examples​

Remove an ACL. Withdraws from the OVHcloud account the access to the email service of the domain that it had been given.

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