Skip to main content

resource_tasks

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

Overview​

Nameresource_tasks
TypeResource
Idovh.vrack_services.resource_tasks

Fields​

The following fields are returned by SELECT queries:

successful operation

NameDatatypeDescription
idstring (uuid)Unique identifier of the task
created_atstring (date-time)Creation date of the task (wire: createdAt)
errorsarrayErrors that occurred on the task
finished_atstring (date-time)Ending date of the task (wire: finishedAt)
linkstringLink to the related resource
messagestringDescription of the task
progressarrayProgress steps of the asynchronous operation
started_atstring (date-time)Starting date of the task (wire: startedAt)
statusstringCurrent global status of the task (DONE, ERROR, PENDING, RUNNING, SCHEDULED, WAITING_USER_INPUT)
typestringType of the task
updated_atstring (date-time)Last update of the task (wire: updatedAt)

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselecttask_id, vrack_services_idReturns the type, status, progress steps and errors of the task.
listselectvrack_services_idx_pagination_cursor, x_pagination_sizeReturns the asynchronous operations run on the vRack Services, with their status and progress steps.

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"}})
task_idstring (uuid)Task ID (wire: taskId)
vrack_services_idstringVrack services ID (wire: vrackServicesId)
x_pagination_cursorstringPagination cursor (wire: X-Pagination-Cursor)
x_pagination_sizeintegerPagination size (wire: X-Pagination-Size)

SELECT examples​

Returns the type, status, progress steps and errors of the task.

SELECT
id,
created_at,
errors,
finished_at,
link,
message,
progress,
started_at,
status,
type,
updated_at
FROM ovh.vrack_services.resource_tasks
WHERE task_id = '{{ task_id }}' -- required
AND vrack_services_id = '{{ vrack_services_id }}' -- required
;