Skip to main content

email_exchange_service_account_upgrades

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

Overview​

Nameemail_exchange_service_account_upgrades
TypeResource
Idovh.order.email_exchange_service_account_upgrades

Fields​

The following fields are returned by SELECT queries:

successful operation

NameDatatypeDescription
order_idintegerIdentifier of the order (wire: orderId)
contractsarrayList of contracts related to the order
detailsarrayDetails of the order
pricesobjectPrices of the order including with and without taxes
urlstringURL to download the order

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectduration, exchange_service, new_quota, organization_name, primary_email_addressGet prices and contracts information
listselectexchange_service, new_quota, organization_name, primary_email_addressx_pagination_modeGet allowed durations for 'accountUpgrade' option
createinsertduration, exchange_service, organization_name, new_quota, primary_email_addressCreate order

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"}})
durationstringDuration
exchange_servicestringThe internal name of your exchange service (wire: exchangeService)
new_quotaintegerNew storage quota for that account (wire: newQuota)
organization_namestringThe internal name of your exchange organization (wire: organizationName)
primary_email_addressstringThe account you wish to upgrade (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 prices and contracts information

SELECT
order_id,
contracts,
details,
prices,
url
FROM ovh.order.email_exchange_service_account_upgrades
WHERE duration = '{{ duration }}' -- required
AND exchange_service = '{{ exchange_service }}' -- required
AND new_quota = '{{ new_quota }}' -- required
AND organization_name = '{{ organization_name }}' -- required
AND primary_email_address = '{{ primary_email_address }}' -- required
;

INSERT examples​

Create order

INSERT INTO ovh.order.email_exchange_service_account_upgrades (
new_quota,
primary_email_address,
duration,
exchange_service,
organization_name
)
SELECT
{{ new_quota }} /* required */,
'{{ primary_email_address }}' /* required */,
'{{ duration }}',
'{{ exchange_service }}',
'{{ organization_name }}'
RETURNING
order_id,
contracts,
details,
prices,
url
;