time_condition_options
Creates, updates, deletes, gets or lists a time_condition_options resource.
Overview​
| Name | time_condition_options |
| Type | Resource |
| Id | ovh.telephony.time_condition_options |
Fields​
The following fields are returned by SELECT queries:
- get
successful operation
| Name | Datatype | Description |
|---|---|---|
slot_1_number | string | Number associated to the first slot action (wire: slot1Number) |
slot_1_type | string | Action type executed when the first slot is used (number, voicemail) (wire: slot1Type) |
slot_2_number | string | Number associated to the second slot action (wire: slot2Number) |
slot_2_type | string | Action type executed when the second slot is used (number, voicemail) (wire: slot2Type) |
slot_3_number | string | Number associated to the third slot action (wire: slot3Number) |
slot_3_type | string | Action type executed when the third slot is used (number, voicemail) (wire: slot3Type) |
status | string | Status of time conditions (deleted, disabled, enabled) |
timeout | integer | Timeout value of the time condition (5, 10, 15, 20, 25, 30, 35, 40, 45, 50, 55, 60, 65, 70, 75, 80, 85, 90) |
unavailable_number | string | Number associated to the unavailable slot action (wire: unavailableNumber) |
unavailable_type | string | Action type executed when the unavailable slot is used (number, voicemail) (wire: unavailableType) |
Methods​
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
get | select | billing_account, service_name | Get time condition options | |
update | update | billing_account, service_name | Update 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.
| Name | Datatype | Description |
|---|---|---|
api_host | string | The 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_account | string | The name of your billingAccount (wire: billingAccount) |
service_name | string | (wire: serviceName) |
SELECT examples​
- get
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
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;