secondary_dns_domains_dns_servers
Creates, updates, deletes, gets or lists a secondary_dns_domains_dns_servers resource.
Overview​
| Name | secondary_dns_domains_dns_servers |
| Type | Resource |
| Id | ovh.vps.secondary_dns_domains_dns_servers |
Fields​
The following fields are returned by SELECT queries:
- get
successful operation
| Name | Datatype | Description |
|---|---|---|
hostname | string | the name server |
ip | string (ipv4) | IPv4 address (e.g., 192.0.2.0) (example: 192.0.2.0) |
ipv_6 | string (ipv6) | IPv6 address (e.g., 2001:41d0:1:1994::1) (example: 2001:41d0:1:1994::1) (wire: ipv6) |
Methods​
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
get | select | domain, service_name | Returns the name and the IP of the authoritative name server of a secondary DNS domain of the VPS. |
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"}}) |
domain | string | Domain |
service_name | string | Service name (wire: serviceName) |
SELECT examples​
- get
Returns the name and the IP of the authoritative name server of a secondary DNS domain of the VPS.
SELECT
hostname,
ip,
ipv_6
FROM ovh.vps.secondary_dns_domains_dns_servers
WHERE domain = '{{ domain }}' -- required
AND service_name = '{{ service_name }}' -- required
;