easy_hunting_time_conditions
Creates, updates, deletes, gets or lists an easy_hunting_time_conditions resource.
Overview​
| Name | easy_hunting_time_conditions |
| Type | Resource |
| Id | ovh.telephony.easy_hunting_time_conditions |
Fields​
The following fields are returned by SELECT queries:
- get
successful operation
| Name | Datatype | Description |
|---|---|---|
enable | boolean | Status of time conditions |
slot_1_number | string (phone-number) | 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 (phone-number) | 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 (phone-number) | 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) |
unavailable_number | string (phone-number) | 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 the time condition settings | |
update | update | billing_account, service_name | Update 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.
| 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 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
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;