Skip to main content

ds_records

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

Overview​

Nameds_records
TypeResource
Idovh.domain.ds_records

Fields​

The following fields are returned by SELECT queries:

successful operation

NameDatatypeDescription
idintegerID of the DNSSEC key
algorithmintegerAlgorithm number of the DNSSEC key (3, 5, 6, 7, 8, 10, 12, 13, 14, 15, 16)
flagsintegerFlag of the DNSSEC key (256, 257)
public_keystringPublic key (wire: publicKey)
statusstringKey status of the DNSSEC key (active, generated, published, removed, retired, revoked)
tagintegerTag of the DNSSEC key

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectid, service_nameGet details on this DS Record
listselectservice_nameflags, status, x_pagination_modeList of domain's DS Records
createinsertservice_name, keysUpdate DS records

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"}})
idintegerId
service_namestringService name (wire: serviceName)
flagsintegerFilter the value of flags property (=)
statusstringFilter the value of status property (=)
x_pagination_modestringSent as CachedObjectList-Pages by default so the list returns the full objects rather than their identifiers. (wire: X-Pagination-Mode)

SELECT examples​

Get details on this DS Record

SELECT
id,
algorithm,
flags,
public_key,
status,
tag
FROM ovh.domain.ds_records
WHERE id = '{{ id }}' -- required
AND service_name = '{{ service_name }}' -- required
;

INSERT examples​

Update DS records

INSERT INTO ovh.domain.ds_records (
keys,
service_name
)
SELECT
'{{ keys }}' /* required */,
'{{ service_name }}'
RETURNING
id,
can_accelerate,
can_cancel,
can_relaunch,
comment,
creation_date,
domain,
done_date,
function,
last_update,
status,
todo_date,
type
;