Skip to main content

service_servers

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

Overview​

Nameservice_servers
TypeResource
Idovh.email_exchange.service_servers

Fields​

The following fields are returned by SELECT queries:

successful operation

NameDatatypeDescription
task_pending_idintegerTask pending id (wire: taskPendingId)
commercial_versionstringExchange commercial version (2010, 2013, 2016, 2019, SE) (wire: commercialVersion)
current_disk_usageintegerCurrent disk usage in MB (wire: currentDiskUsage)
disk_sizeintegerTotal disk size in MB (wire: diskSize)
individual_2010booleanIf true server is 2010 individual offer (wire: individual2010)
ipstringipV4
ip_v6stringipV6 (wire: ipV6)
is_a_validbooleanIf true your dns A record is valid (wire: isAValid)
is_aaaa_validbooleanIf true your dns AAAA record is valid (wire: isAaaaValid)
is_ptr_v6_validbooleanIf true your dns ptrV6 record is valid (wire: isPtrV6Valid)
is_ptr_validbooleanIf true your dns ptr record is valid (wire: isPtrValid)
owa_mfabooleanIndicates if Multi Factor Authentication is activated on Outlook Web Access interface (wire: owaMfa)
statestringServer state (configurationError, configurationPending, notConfigured, ok)
versionintegerExchangeServer version

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectexchange_service, organization_nameGet the server. Returns the Exchange version, state, IP addresses, disk usage, DNS record checks and Outlook Web Access MFA status of the server.
updateupdateexchange_service, organization_nameUpdate the server. Updates the server settings: set owaMfa to enable or disable MFA on the Outlook Web Access interface.

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)

SELECT examples​

Get the server. Returns the Exchange version, state, IP addresses, disk usage, DNS record checks and Outlook Web Access MFA status of the server.

SELECT
task_pending_id,
commercial_version,
current_disk_usage,
disk_size,
individual_2010,
ip,
ip_v6,
is_a_valid,
is_aaaa_valid,
is_ptr_v6_valid,
is_ptr_valid,
owa_mfa,
state,
version
FROM ovh.email_exchange.service_servers
WHERE exchange_service = '{{ exchange_service }}' -- required
AND organization_name = '{{ organization_name }}' -- required
;

UPDATE examples​

Update the server. Updates the server settings: set owaMfa to enable or disable MFA on the Outlook Web Access interface.

UPDATE ovh.email_exchange.service_servers
SET
owa_mfa = {{ owa_mfa }}
WHERE
exchange_service = '{{ exchange_service }}' --required
AND organization_name = '{{ organization_name }}' --required;