Skip to main content

tasks

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

Overview​

Nametasks
TypeResource
Idovh.dedicated_ceph.tasks

Fields​

The following fields are returned by SELECT queries:

List of task subtasks

NameDatatypeDescription
namestringName of the task
create_datestringCreation date of the task (wire: createDate)
finish_datestringFinish date of the task (wire: finishDate)
statestringState of the task (DONE, FAILED, IN PROGRESS)
typestringType of the task

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
list_by_task_idselectservice_name, task_idReturns the subtasks of the task, to follow its progress.
listselectservice_nameReturns the tasks running on the cluster.

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"}})
service_namestringService name (wire: serviceName)
task_idstringTask ID (wire: taskId)

SELECT examples​

Returns the subtasks of the task, to follow its progress.

SELECT
name,
create_date,
finish_date,
state,
type
FROM ovh.dedicated_ceph.tasks
WHERE service_name = '{{ service_name }}' -- required
AND task_id = '{{ task_id }}' -- required
;