Skip to main content

secondary_dns_name_domain_tokens

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

Overview​

Namesecondary_dns_name_domain_tokens
TypeResource
Idovh.dedicated_server.secondary_dns_name_domain_tokens

Fields​

The following fields are returned by SELECT queries:

successful operation

NameDatatypeDescription
field_typestringThe field type to add on your DNS zone for this subDomain (A, AAAA, CAA, CNAME, DKIM, DMARC, DNAME, LOC, MX, NAPTR, NS, PTR, SPF, SRV, SSHFP, TLSA, TXT) (wire: fieldType)
field_valuestringThe field value to add on your DNS zone for this subDomain (wire: fieldValue)
sub_domainstringThe subdomain to add on your DNS zone for the domain (wire: subDomain)

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectdomain, service_nameGet the domain verification record. Returns the DNS record to add temporarily to the zone of a domain, so that ownership of the domain can be verified. The record is given as a subdomain, a field type and a field value.

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

SELECT examples​

Get the domain verification record. Returns the DNS record to add temporarily to the zone of a domain, so that ownership of the domain can be verified. The record is given as a subdomain, a field type and a field value.

SELECT
field_type,
field_value,
sub_domain
FROM ovh.dedicated_server.secondary_dns_name_domain_tokens
WHERE domain = '{{ domain }}' -- required
AND service_name = '{{ service_name }}' -- required
;