Skip to main content

easy_hunting_hunting_custom_statuses

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

Overview​

Nameeasy_hunting_hunting_custom_statuses
TypeResource
Idovh.telephony.easy_hunting_hunting_custom_statuses

Fields​

The following fields are returned by SELECT queries:

successful operation

NameDatatypeDescription
idinteger
namestringThe name of the status (Pause, Mission, etc...)
colorstringThe color (in hexadecimal) of the status that will be displayed on agent banner web application
descriptionstringA short description of the status

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectbilling_account, id, service_nameGet a custom status
listselectbilling_account, service_namex_pagination_modeList custom statuses
createinsertbilling_account, service_name, nameCreate a custom status
deletedeletebilling_account, id, service_nameDelete a custom status

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)
idinteger
service_namestring (wire: serviceName)
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 custom status

SELECT
id,
name,
color,
description
FROM ovh.telephony.easy_hunting_hunting_custom_statuses
WHERE billing_account = '{{ billing_account }}' -- required
AND id = '{{ id }}' -- required
AND service_name = '{{ service_name }}' -- required
;

INSERT examples​

Create a custom status

INSERT INTO ovh.telephony.easy_hunting_hunting_custom_statuses (
color,
description,
name,
billing_account,
service_name
)
SELECT
'{{ color }}',
'{{ description }}',
'{{ name }}' /* required */,
'{{ billing_account }}',
'{{ service_name }}'
RETURNING
id,
name,
color,
description
;

DELETE examples​

Delete a custom status

DELETE FROM ovh.telephony.easy_hunting_hunting_custom_statuses
WHERE billing_account = '{{ billing_account }}' --required
AND id = '{{ id }}' --required
AND service_name = '{{ service_name }}' --required
;