Skip to main content

secondary_dns_name_server_availables

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

Overview​

Namesecondary_dns_name_server_availables
TypeResource
Idovh.dedicated_server.secondary_dns_name_server_availables

Fields​

The following fields are returned by SELECT queries:

successful operation

NameDatatypeDescription
hostnamestringthe name server
ipstring (ipv4)IPv4 address (e.g., 192.0.2.0) (example: 192.0.2.0)
ipv_6string (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:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectservice_nameGet the available secondary name server. Returns the secondary name server available for the server: its hostname and its IPv4 and IPv6 addresses.

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"}})
service_namestringThe internal name of your dedicated server (wire: serviceName)

SELECT examples​

Get the available secondary name server. Returns the secondary name server available for the server: its hostname and its IPv4 and IPv6 addresses.

SELECT
hostname,
ip,
ipv_6
FROM ovh.dedicated_server.secondary_dns_name_server_availables
WHERE service_name = '{{ service_name }}' -- required
;