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.vps.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_nameReturns the name and the IP of the secondary DNS name server available for 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.

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_namestringService name (wire: serviceName)

SELECT examples​

Returns the name and the IP of the secondary DNS name server available for the VPS.

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