name_server_statuses
Creates, updates, deletes, gets or lists a name_server_statuses resource.
Overview​
| Name | name_server_statuses |
| Type | Resource |
| Id | ovh.domain.name_server_statuses |
Fields​
The following fields are returned by SELECT queries:
- get
successful operation
| Name | Datatype | Description |
|---|---|---|
state | string | Whether or not the DNS server is working (ko, ok) |
type | string | Whether or not the DNS server is managed by OVHcloud (anycast, dedicated, empty, external, hold, hosted, hosting, mixed, parking) |
used_since | string (date-time) | Date from which the DNS server is used by the domain (wire: usedSince) |
Methods​
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
get | select | id, service_name | Get 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.
| 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"}}) |
id | integer | Id |
service_name | string | Service name (wire: serviceName) |
SELECT examples​
- get
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
;