Skip to main content

service_account_full_accesses

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

Overview​

Nameservice_account_full_accesses
TypeResource
Idovh.email_exchange.service_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, exchange_service, organization_name, primary_email_addressGet a full access permission. Returns the ID of the account allowed to open the mailbox of this email account, and the creation date of the right.
listselectexchange_service, organization_name, primary_email_addressx_pagination_modeList full access permissions. Returns the IDs of the accounts that have full access to the email account.
createinsertexchange_service, organization_name, primary_email_address, allowed_account_idAdd a full access permission. Gives the account given by allowedAccountId full access to the email account, and returns the task.
deletedeleteallowed_account_id, exchange_service, organization_name, primary_email_addressRemove 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"}})
exchange_servicestringThe internal name of your exchange service (wire: exchangeService)
organization_namestringThe internal name of your exchange organization (wire: organizationName)
primary_email_addressstringDefault email for this mailbox (wire: primaryEmailAddress)
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 allowed to open the mailbox of this email account, and the creation date of the right.

SELECT
allowed_account_id,
task_pending_id,
creation_date
FROM ovh.email_exchange.service_account_full_accesses
WHERE allowed_account_id = '{{ allowed_account_id }}' -- required
AND exchange_service = '{{ exchange_service }}' -- required
AND organization_name = '{{ organization_name }}' -- required
AND primary_email_address = '{{ primary_email_address }}' -- required
;

INSERT examples​

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

INSERT INTO ovh.email_exchange.service_account_full_accesses (
allowed_account_id,
exchange_service,
organization_name,
primary_email_address
)
SELECT
{{ allowed_account_id }} /* required */,
'{{ exchange_service }}',
'{{ organization_name }}',
'{{ primary_email_address }}'
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_exchange.service_account_full_accesses
WHERE allowed_account_id = '{{ allowed_account_id }}' --required
AND exchange_service = '{{ exchange_service }}' --required
AND organization_name = '{{ organization_name }}' --required
AND primary_email_address = '{{ primary_email_address }}' --required
;