Skip to main content

service_tasks

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

Overview​

Nameservice_tasks
TypeResource
Idovh.telephony.service_tasks

Fields​

The following fields are returned by SELECT queries:

successful operation

NameDatatypeDescription
task_idinteger (wire: taskId)
actionstringAction associated with the task
messagestringPotential failure reason of the task
object_createdstringObject potentially created at the end of the task (wire: objectCreated)
service_typestring (wire: serviceType)
statusstringStatus of the task (doing, done, error, pause, todo)

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectbilling_account, service_name, task_idGet a task
listselectbilling_account, service_nameaction, service_type, 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"}})
billing_accountstringThe name of your billingAccount (wire: billingAccount)
service_namestring (wire: serviceName)
task_idinteger (wire: taskId)
actionstringFilter the value of action property (=)
service_typestringFilter the value of serviceType property (=) (wire: serviceType)
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
task_id,
action,
message,
object_created,
service_type,
status
FROM ovh.telephony.service_tasks
WHERE billing_account = '{{ billing_account }}' -- required
AND service_name = '{{ service_name }}' -- required
AND task_id = '{{ task_id }}' -- required
;