Skip to main content

offer_tasks

Creates, updates, deletes, gets or lists an offer_tasks resource.

Overview​

Nameoffer_tasks
TypeResource
Idovh.telephony.offer_tasks

Fields​

The following fields are returned by SELECT queries:

successful operation

NameDatatypeDescription
task_idinteger (wire: taskId)
actionstringActual action that will be executed (convertToAlias, convertToSip, migrateToNewVoicemail, removeSimltaneousLines, switchServer, termination, updateFirmware, upgrade)
execution_datestring (date-time)Planned execution date (wire: executionDate)
statusstringCurrent status of the task (doing, done, error, pause, todo)
typestringType of operation that will be executed (line, offer, option, phone)

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectbilling_account, task_idGet an offer task
listselectbilling_accountaction, status, type, x_pagination_modeList offer tasks
updateupdatebilling_account, task_idUpdate an offer task

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)
task_idinteger (wire: taskId)
actionstringFilter the value of action property (=)
statusstringFilter the value of status property (=)
typestringFilter the value of type 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 an offer task

SELECT
task_id,
action,
execution_date,
status,
type
FROM ovh.telephony.offer_tasks
WHERE billing_account = '{{ billing_account }}' -- required
AND task_id = '{{ task_id }}' -- required
;

UPDATE examples​

Update an offer task

UPDATE ovh.telephony.offer_tasks
SET
execution_date = '{{ execution_date }}'
WHERE
billing_account = '{{ billing_account }}' --required
AND task_id = '{{ task_id }}' --required;