Skip to main content

tasks

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

Overview​

Nametasks
TypeResource
Idovh.ssl.tasks

Fields​

The following fields are returned by SELECT queries:

successful operation

NameDatatypeDescription
task_idintegerTask Id (wire: taskId)
done_datestring (date-time)Completion date (wire: doneDate)
functionstringTask function name (acme_order_certificate, sectigo_deliver_certificate, sectigo_deliver_certificate_from_api, sectigo_order_certificate)
last_updatestring (date-time)Task last update (wire: lastUpdate)
start_datestring (date-time)Task Creation date (wire: startDate)
statusstringTask status (cancelled, doing, done, error, todo)

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectservice_name, task_idReturns a task of an SSL certificate: function, status (todo, doing, done, error or cancelled), and creation, update and completion dates.
listselectservice_namex_pagination_modeReturns the identifiers of the tasks of an SSL certificate.

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_idintegerTask ID (wire: taskId)
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​

Returns a task of an SSL certificate: function, status (todo, doing, done, error or cancelled), and creation, update and completion dates.

SELECT
task_id,
done_date,
function,
last_update,
start_date,
status
FROM ovh.ssl.tasks
WHERE service_name = '{{ service_name }}' -- required
AND task_id = '{{ task_id }}' -- required
;