Skip to main content

service_account_outlook_urls

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

Overview​

Nameservice_account_outlook_urls
TypeResource
Idovh.email_exchange.service_account_outlook_urls

Fields​

The following fields are returned by SELECT queries:

successful operation

NameDatatypeDescription
expirationstring (date-time)Url expiration date
serialstringSerial number
urlstringOutlook url

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectexchange_service, organization_name, primary_email_addressGet the Outlook download URL. Returns the temporary Outlook download URL, its expiration date and the license serial number.
createinsertexchange_service, organization_name, primary_email_address, language, versionGenerate an Outlook download URL. Generates a temporary Outlook download URL for the given version and language, and returns the task. The email account needs an Outlook license.

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"}})
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)

SELECT examples​

Get the Outlook download URL. Returns the temporary Outlook download URL, its expiration date and the license serial number.

SELECT
expiration,
serial,
url
FROM ovh.email_exchange.service_account_outlook_urls
WHERE exchange_service = '{{ exchange_service }}' -- required
AND organization_name = '{{ organization_name }}' -- required
AND primary_email_address = '{{ primary_email_address }}' -- required
;

INSERT examples​

Generate an Outlook download URL. Generates a temporary Outlook download URL for the given version and language, and returns the task. The email account needs an Outlook license.

INSERT INTO ovh.email_exchange.service_account_outlook_urls (
language,
version,
exchange_service,
organization_name,
primary_email_address
)
SELECT
'{{ language }}' /* required */,
'{{ version }}' /* required */,
'{{ exchange_service }}',
'{{ organization_name }}',
'{{ primary_email_address }}'
RETURNING
id,
finish_date,
function,
status,
todo_date
;