Skip to main content

bucket_export_tasks

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

Overview​

Namebucket_export_tasks
TypeResource
Idovh.finops.bucket_export_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
getselectid, task_idGet a single task (Beta version)
listselectidx_pagination_cursor, x_pagination_sizeGet a list of tasks (Beta version)

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

SELECT examples​

Get a single task (Beta version)

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