Skip to main content

task_dns

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

Overview​

Nametask_dns
TypeResource
Idovh.me.task_dns

Fields​

The following fields are returned by SELECT queries:

successful operation

NameDatatypeDescription
idintegerId of the task
can_acceleratebooleanCan accelerate the task (wire: canAccelerate)
can_cancelbooleanCan cancel the task (wire: canCancel)
can_relaunchbooleanCan relaunch the task (wire: canRelaunch)
commentstringComment about the task
creation_datestring (date-time)Creation date of the task (wire: creationDate)
done_datestring (date-time)Done date of the task (wire: doneDate)
functionstringFunction of the task (DnsAnycastActivate, DnsAnycastDeactivate, DnssecDisable, DnssecEnable, DnssecResigning, DnssecRollKsk, DnssecRollZsk, ZoneCheck, ZoneCreate, ZoneCut, ZoneDelete, ZoneImport, ZoneRefresh, ZoneRestore)
last_updatestring (date-time)Last update date of the task (wire: lastUpdate)
statusstringStatus of the task (cancelled, doing, done, error, problem, todo)
todo_datestring (date-time)Todo date of the task (wire: todoDate)
zonestringZone related to the task

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectidGet a zone task
listselectfunction, status, zone, x_pagination_modeList zone tasks
accelerateexecidAccelerate the task
cancelexecidCancel the task
relaunchexecidRelaunch the task

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
functionstring
statusstring
x_pagination_modestringSent as CachedObjectList-Pages by default so the list returns the full objects rather than their identifiers. (wire: X-Pagination-Mode)
zonestring

SELECT examples​

Get a zone task

SELECT
id,
can_accelerate,
can_cancel,
can_relaunch,
comment,
creation_date,
done_date,
function,
last_update,
status,
todo_date,
zone
FROM ovh.me.task_dns
WHERE id = '{{ id }}' -- required
;

Lifecycle Methods​

EXEC variables use wire (API) names.

Accelerate the task

EXEC ovh.me.task_dns.accelerate
@id='{{ id }}' --required
;