Skip to main content

zone_soas

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

Overview​

Namezone_soas
TypeResource
Idovh.domain.zone_soas

Fields​

The following fields are returned by SELECT queries:

successful operation

NameDatatypeDescription
emailstringEmail address of the DNS Administrator
expireintegerWhen a zone transfer fails, a countdown clock begins. When the number of seconds set in the expire field elapses, the nameserver stops answering for that zone file
nx_domain_ttlintegerNon-Existent Domain TTL, if the name server returns a negative response, the remote server should wait the number of seconds set in the nxDomainTtl field before trying again (wire: nxDomainTtl)
refreshintegerThe refresh value determines the interval in seconds between successful zone transfers of the entire zone file from a nameserver to another.
serialintegerThe serial number is used to indicate which copy of the zone file is the most current. When editing zone files, you must increment the serial number
serverstringPrimary authoritative server
ttlintegerTime To Live in seconds

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectzone_nameReturns the SOA of the zone: primary server, administrator email, serial, refresh, expire, TTL and negative-response TTL.
updateupdatezone_nameUpdates the SOA values of the 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.

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"}})
zone_namestringZone name (wire: zoneName)

SELECT examples​

Returns the SOA of the zone: primary server, administrator email, serial, refresh, expire, TTL and negative-response TTL.

SELECT
email,
expire,
nx_domain_ttl,
refresh,
serial,
server,
ttl
FROM ovh.domain.zone_soas
WHERE zone_name = '{{ zone_name }}' -- required
;

UPDATE examples​

Updates the SOA values of the zone.

UPDATE ovh.domain.zone_soas
SET
email = '{{ email }}',
expire = {{ expire }},
nx_domain_ttl = {{ nx_domain_ttl }},
refresh = {{ refresh }},
serial = {{ serial }},
server = '{{ server }}',
ttl = {{ ttl }}
WHERE
zone_name = '{{ zone_name }}' --required;