Skip to main content

platform_tasks

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

Overview​

Nameplatform_tasks
TypeResource
Idovh.zimbra.platform_tasks

Fields​

The following fields are returned by SELECT queries:

Asynchronous 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
listselectplatform_idx_pagination_cursor, x_pagination_size, organization_id, organization_labelReturns the tasks of the platform. Filter them by organizationId or organizationLabel.

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"}})
platform_idstring (uuid)Platform ID (wire: platformId)
organization_idstring (uuid)Filter by organization identifier (wire: organizationId)
organization_labelstringFilter by organization label (wire: organizationLabel)
x_pagination_cursorstringPagination cursor (wire: X-Pagination-Cursor)
x_pagination_sizeintegerPagination size (wire: X-Pagination-Size)

SELECT examples​

Returns the tasks of the platform. Filter them by organizationId or organizationLabel.

SELECT
id,
created_at,
errors,
finished_at,
link,
message,
progress,
started_at,
status,
type,
updated_at
FROM ovh.zimbra.platform_tasks
WHERE platform_id = '{{ platform_id }}' -- required
AND x_pagination_cursor = '{{ x_pagination_cursor }}'
AND x_pagination_size = '{{ x_pagination_size }}'
AND organization_id = '{{ organization_id }}'
AND organization_label = '{{ organization_label }}'
;