Skip to main content

tasks

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

Overview​

Nametasks
TypeResource
Idovh.ip_loadbalancing.tasks

Fields​

The following fields are returned by SELECT queries:

successful operation

NameDatatypeDescription
idintegerId of the operation
actionstringOperation type (deleteIplb, deployIplb, install, installIplb, installZone, orderFreeCertificate, orderPaidCertificate, orderSsl, refreshIplb, releaseIplb, releaseIplbZone, reopenIplb, suspendIplb, suspendZone, switchToIplbNextGenerationApi, vrackAttach, vrackDetach)
creation_datestring (date-time)Creation date of your operation (wire: creationDate)
done_datestring (date-time)Done date of your operation (wire: doneDate)
progressintegerOperation progress percentage
statusstringCurrent status of your operation (blocked, cancelled, doing, done, error, todo)
zonesarrayZone of your Load Balancer which are updated by current Task

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectid, service_nameGet a task
listselectservice_nameaction, creation_date.from, creation_date.to, done_date.from, done_date.to, status, x_pagination_modeList tasks

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"}})
idintegerId of the operation
service_namestringThe internal name of your IP load balancing (wire: serviceName)
actionstringFilter the value of action property (=)
creation_date.fromstring (date-time)Filter the value of creationDate property (>=) (wire: creationDate.from)
creation_date.tostring (date-time)Filter the value of creationDate property (<=) (wire: creationDate.to)
done_date.fromstring (date-time)Filter the value of doneDate property (>=) (wire: doneDate.from)
done_date.tostring (date-time)Filter the value of doneDate property (<=) (wire: doneDate.to)
statusstringFilter the value of status property (=)
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​

Get a task

SELECT
id,
action,
creation_date,
done_date,
progress,
status,
zones
FROM ovh.ip_loadbalancing.tasks
WHERE id = '{{ id }}' -- required
AND service_name = '{{ service_name }}' -- required
;