recommended_dns_records
Creates, updates, deletes, gets or lists a recommended_dns_records resource.
Overview​
| Name | recommended_dns_records |
| Type | Resource |
| Id | ovh.email_domain.recommended_dns_records |
Fields​
The following fields are returned by SELECT queries:
- list
DNS record for email services
| Name | Datatype | Description |
|---|---|---|
id | integer | Id of record |
field_type | string | Type of DNS record (A, AAAA, CAA, CNAME, DKIM, DMARC, DNAME, LOC, MX, NAPTR, NS, PTR, SPF, SRV, SSHFP, TLSA, TXT) (wire: fieldType) |
sub_domain | string | subdomain of record (wire: subDomain) |
target | string | Target of DNS record |
ttl | integer | TTL of record |
zone | string | Name of DNS zone |
Methods​
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
list | select | domain | List recommended DNS records. Returns the DNS records recommended for the email domain, with their type, subdomain, target, TTL and zone. |
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 | Name of your domain name |
SELECT examples​
- list
List recommended DNS records. Returns the DNS records recommended for the email domain, with their type, subdomain, target, TTL and zone.
SELECT
id,
field_type,
sub_domain,
target,
ttl,
zone
FROM ovh.email_domain.recommended_dns_records
WHERE domain = '{{ domain }}' -- required
;