Skip to main content

name_server_statuses

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

Overview​

Namename_server_statuses
TypeResource
Idovh.domain.name_server_statuses

Fields​

The following fields are returned by SELECT queries:

successful operation

NameDatatypeDescription
statestringWhether or not the DNS server is working (ko, ok)
typestringWhether or not the DNS server is managed by OVHcloud (anycast, dedicated, empty, external, hold, hosted, hosting, mixed, parking)
used_sincestring (date-time)Date from which the DNS server is used by the domain (wire: usedSince)

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectid, service_nameGet name server status

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"}})
idintegerId
service_namestringService name (wire: serviceName)

SELECT examples​

Get name server status

SELECT
state,
type,
used_since
FROM ovh.domain.name_server_statuses
WHERE id = '{{ id }}' -- required
AND service_name = '{{ service_name }}' -- required
;