Skip to main content

time_condition_options

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

Overview​

Nametime_condition_options
TypeResource
Idovh.telephony.time_condition_options

Fields​

The following fields are returned by SELECT queries:

successful operation

NameDatatypeDescription
slot_1_numberstringNumber 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_numberstringNumber 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_numberstringNumber associated to the third slot action (wire: slot3Number)
slot_3_typestringAction type executed when the third slot is used (number, voicemail) (wire: slot3Type)
statusstringStatus of time conditions (deleted, disabled, enabled)
timeoutintegerTimeout value of the time condition (5, 10, 15, 20, 25, 30, 35, 40, 45, 50, 55, 60, 65, 70, 75, 80, 85, 90)
unavailable_numberstringNumber 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 time condition options
updateupdatebilling_account, service_nameUpdate time condition options

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 time condition options

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

UPDATE examples​

Update time condition options

UPDATE ovh.telephony.time_condition_options
SET
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 }}',
status = '{{ status }}',
timeout = {{ timeout }},
unavailable_number = '{{ unavailable_number }}',
unavailable_type = '{{ unavailable_type }}'
WHERE
billing_account = '{{ billing_account }}' --required
AND service_name = '{{ service_name }}' --required;