Skip to main content

task_domains

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

Overview​

Nametask_domains
TypeResource
Idovh.me.task_domains

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)
domainstringDomain of the task
done_datestring (date-time)Done date of the task (wire: doneDate)
functionstringFunction of the task
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)
typestringtype of the task (alldom, domain)

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectidGet this object properties
listselectdomain, function, status, type, x_pagination_modeList of domain 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
domainstringFilter the value of domain property (like)
functionstringFilter the value of function property (like)
statusstringFilter the value of status property (=)
typestringFilter the value of type 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 this object properties

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

Lifecycle Methods​

EXEC variables use wire (API) names.

Accelerate the task

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