Skip to main content

easy_hunting_time_conditions

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

Overview​

Nameeasy_hunting_time_conditions
TypeResource
Idovh.telephony.easy_hunting_time_conditions

Fields​

The following fields are returned by SELECT queries:

successful operation

NameDatatypeDescription
enablebooleanStatus of time conditions
slot_1_numberstring (phone-number)Number associated to the first slot action (wire: slot1Number)
slot_1_typestringAction type executed when the first slot is used (number, voicemail) (wire: slot1Type)
slot_2_numberstring (phone-number)Number associated to the second slot action (wire: slot2Number)
slot_2_typestringAction type executed when the second slot is used (number, voicemail) (wire: slot2Type)
slot_3_numberstring (phone-number)Number associated to the third slot action (wire: slot3Number)
slot_3_typestringAction type executed when the third slot is used (number, voicemail) (wire: slot3Type)
unavailable_numberstring (phone-number)Number associated to the unavailable slot action (wire: unavailableNumber)
unavailable_typestringAction type executed when the unavailable slot is used (number, voicemail) (wire: unavailableType)

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectbilling_account, service_nameGet the time condition settings
updateupdatebilling_account, service_nameUpdate the time condition settings

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)

SELECT examples​

Get the time condition settings

SELECT
enable,
slot_1_number,
slot_1_type,
slot_2_number,
slot_2_type,
slot_3_number,
slot_3_type,
unavailable_number,
unavailable_type
FROM ovh.telephony.easy_hunting_time_conditions
WHERE billing_account = '{{ billing_account }}' -- required
AND service_name = '{{ service_name }}' -- required
;

UPDATE examples​

Update the time condition settings

UPDATE ovh.telephony.easy_hunting_time_conditions
SET
enable = {{ enable }},
slot_1_number = '{{ slot_1_number }}',
slot_1_type = '{{ slot_1_type }}',
slot_2_number = '{{ slot_2_number }}',
slot_2_type = '{{ slot_2_type }}',
slot_3_number = '{{ slot_3_number }}',
slot_3_type = '{{ slot_3_type }}',
unavailable_number = '{{ unavailable_number }}',
unavailable_type = '{{ unavailable_type }}'
WHERE
billing_account = '{{ billing_account }}' --required
AND service_name = '{{ service_name }}' --required;