email_exchange_service_outlooks
Creates, updates, deletes, gets or lists an email_exchange_service_outlooks resource.
Overview​
| Name | email_exchange_service_outlooks |
| Type | Resource |
| Id | ovh.order.email_exchange_service_outlooks |
Fields​
The following fields are returned by SELECT queries:
- get
- list
successful operation
| Name | Datatype | Description |
|---|---|---|
order_id | integer | Identifier of the order (wire: orderId) |
contracts | array | List of contracts related to the order |
details | array | Details of the order |
prices | object | Prices of the order including with and without taxes |
url | string | URL to download the order |
An order
| Name | Datatype | Description |
|---|---|---|
order_id | integer | Identifier of the order (wire: orderId) |
contracts | array | List of contracts related to the order |
details | array | Details of the order |
prices | object | Prices of the order including with and without taxes |
url | string | URL to download the order |
Methods​
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
get | select | duration, exchange_service, licence, organization_name, primary_email_address | Get prices and contracts information | |
list | select | exchange_service, licence, organization_name, primary_email_address | x_pagination_mode | Get allowed durations for 'outlook' option |
create | insert | duration, exchange_service, organization_name, licence, primary_email_address | Create 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.
| Name | Datatype | Description |
|---|---|---|
api_host | string | The 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"}}) |
duration | string | Duration |
exchange_service | string | The internal name of your exchange service (wire: exchangeService) |
licence | string | Outlook version |
organization_name | string | The internal name of your exchange organization (wire: organizationName) |
primary_email_address | string | Primary email address for account which You want to buy an outlook (wire: primaryEmailAddress) |
x_pagination_mode | string | Sent as CachedObjectList-Pages by default so the list returns the full objects rather than their identifiers. (wire: X-Pagination-Mode) |
SELECT examples​
- get
- list
Get prices and contracts information
SELECT
order_id,
contracts,
details,
prices,
url
FROM ovh.order.email_exchange_service_outlooks
WHERE duration = '{{ duration }}' -- required
AND exchange_service = '{{ exchange_service }}' -- required
AND licence = '{{ licence }}' -- required
AND organization_name = '{{ organization_name }}' -- required
AND primary_email_address = '{{ primary_email_address }}' -- required
;
Get allowed durations for 'outlook' option
SELECT
order_id,
contracts,
details,
prices,
url
FROM ovh.order.email_exchange_service_outlooks
WHERE exchange_service = '{{ exchange_service }}' -- required
AND licence = '{{ licence }}' -- required
AND organization_name = '{{ organization_name }}' -- required
AND primary_email_address = '{{ primary_email_address }}' -- required
AND x_pagination_mode = '{{ x_pagination_mode }}'
;
INSERT examples​
- create
- Manifest
Create order
INSERT INTO ovh.order.email_exchange_service_outlooks (
licence,
primary_email_address,
duration,
exchange_service,
organization_name
)
SELECT
'{{ licence }}' /* required */,
'{{ primary_email_address }}' /* required */,
'{{ duration }}',
'{{ exchange_service }}',
'{{ organization_name }}'
RETURNING
order_id,
contracts,
details,
prices,
url
;
# Description fields are for documentation purposes
- name: email_exchange_service_outlooks
props:
- name: duration
value: "{{ duration }}"
description: Required parameter for the email_exchange_service_outlooks resource.
- name: exchange_service
value: "{{ exchange_service }}"
description: Required parameter for the email_exchange_service_outlooks resource.
- name: organization_name
value: "{{ organization_name }}"
description: Required parameter for the email_exchange_service_outlooks resource.
- name: licence
value: "{{ licence }}"
description: |
Outlook version
valid_values: ['mac_x86_2016', 'mac_x86_2019', 'mac_x86_2021', 'windows_x64_2016', 'windows_x64_2019', 'windows_x64_2021', 'windows_x86_2016', 'windows_x86_2019', 'windows_x86_2021']
- name: primary_email_address
value: "{{ primary_email_address }}"
description: |
Primary email address for account which You want to buy an outlook