Skip to main content

task_alls

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

Overview​

Nametask_alls
TypeResource
Idovh.email_domain.task_alls

Fields​

The following fields are returned by SELECT queries:

successful operation

NameDatatypeDescription
idintegerId of the task
domainstringDomain name of the task
functionstringFunction of the task
statusstringStatus of the task (cancelled, customerError, doing, done, init, ovhError, todo)

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectdomain, idGet a task. Returns the function, the status and the domain of the task. Tasks of every type are listed under task/all.
listselectdomainx_pagination_modeList tasks. Returns the IDs of the tasks of the domain, whatever their type. Get one to read its function and its status.

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"}})
domainstringName of your domain name
idintegerId of the task
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 a task. Returns the function, the status and the domain of the task. Tasks of every type are listed under task/all.

SELECT
id,
domain,
function,
status
FROM ovh.email_domain.task_alls
WHERE domain = '{{ domain }}' -- required
AND id = '{{ id }}' -- required
;