Skip to main content

account_full_accesses

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

Overview​

Nameaccount_full_accesses
TypeResource
Idovh.email_mxplan.account_full_accesses

Fields​

The following fields are returned by SELECT queries:

successful operation

NameDatatypeDescription
allowed_account_idintegerAccount id to give full access (wire: allowedAccountId)
task_pending_idintegerPending task id (wire: taskPendingId)
creation_datestring (date-time)Creation date (wire: creationDate)

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectallowed_account_id, email, serviceGet a full access permission. Returns the ID of the account that has full access to the email account, and the creation date of the permission.
listselectemail, servicex_pagination_modeList full access permissions. Returns the IDs of the accounts that have full access to the email account.
createinsertemail, service, allowed_account_idAdd a full access permission. Gives the account allowedAccountId full access to the email account, and returns the task.
deletedeleteallowed_account_id, email, serviceRemove a full access permission. Withdraws the access of the allowed account to the mailbox of this email account, 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
allowed_account_idintegerAccount id to give full access (wire: allowedAccountId)
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"}})
emailstringDefault email for this mailbox
servicestringThe internal name of your mxplan organization
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 full access permission. Returns the ID of the account that has full access to the email account, and the creation date of the permission.

SELECT
allowed_account_id,
task_pending_id,
creation_date
FROM ovh.email_mxplan.account_full_accesses
WHERE allowed_account_id = '{{ allowed_account_id }}' -- required
AND email = '{{ email }}' -- required
AND service = '{{ service }}' -- required
;

INSERT examples​

Add a full access permission. Gives the account allowedAccountId full access to the email account, and returns the task.

INSERT INTO ovh.email_mxplan.account_full_accesses (
allowed_account_id,
email,
service
)
SELECT
{{ allowed_account_id }} /* required */,
'{{ email }}',
'{{ service }}'
RETURNING
id,
finish_date,
function,
status,
todo_date
;

DELETE examples​

Remove a full access permission. Withdraws the access of the allowed account to the mailbox of this email account, and returns the task.

DELETE FROM ovh.email_mxplan.account_full_accesses
WHERE allowed_account_id = '{{ allowed_account_id }}' --required
AND email = '{{ email }}' --required
AND service = '{{ service }}' --required
;