secondary_dns_name_domain_tokens
Creates, updates, deletes, gets or lists a secondary_dns_name_domain_tokens resource.
Overview​
| Name | secondary_dns_name_domain_tokens |
| Type | Resource |
| Id | ovh.dedicated_server.secondary_dns_name_domain_tokens |
Fields​
The following fields are returned by SELECT queries:
- get
successful operation
| Name | Datatype | Description |
|---|---|---|
field_type | string | The 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_value | string | The field value to add on your DNS zone for this subDomain (wire: fieldValue) |
sub_domain | string | The subdomain to add on your DNS zone for the domain (wire: subDomain) |
Methods​
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
get | select | domain, service_name | 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. |
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 | The domain to check |
service_name | string | The internal name of your dedicated server (wire: serviceName) |
SELECT examples​
- get
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
;