easy_hunting_screen_list_conditions_conditions
Creates, updates, deletes, gets or lists an easy_hunting_screen_list_conditions_conditions resource.
Overview​
| Name | easy_hunting_screen_list_conditions_conditions |
| Type | Resource |
| Id | ovh.telephony.easy_hunting_screen_list_conditions_conditions |
Fields​
The following fields are returned by SELECT queries:
- get
- list
successful operation
| Name | Datatype | Description |
|---|---|---|
condition_id | integer | (wire: conditionId) |
caller_id_number | string | Screenlist based on the presented caller number (wire: callerIdNumber) |
destination_number | string | Screenlist based on the destination number (wire: destinationNumber) |
screen_list_type | string | Type of screenlist (destinationBlackList, destinationWhiteList, incomingBlackList, incomingWhiteList) (wire: screenListType) |
Screenlist condition
| Name | Datatype | Description |
|---|---|---|
condition_id | integer | (wire: conditionId) |
caller_id_number | string | Screenlist based on the presented caller number (wire: callerIdNumber) |
destination_number | string | Screenlist based on the destination number (wire: destinationNumber) |
screen_list_type | string | Type of screenlist (destinationBlackList, destinationWhiteList, incomingBlackList, incomingWhiteList) (wire: screenListType) |
Methods​
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
get | select | billing_account, condition_id, service_name | Get a filtering condition | |
list | select | billing_account, service_name | screen_list_type, x_pagination_mode | List filtering conditions |
create | insert | billing_account, service_name, screen_list_type | Create a filtering condition | |
update | update | billing_account, condition_id, service_name | Update a filtering condition | |
delete | delete | billing_account, condition_id, service_name | Delete a filtering condition |
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) |
condition_id | integer | (wire: conditionId) |
service_name | string | (wire: serviceName) |
screen_list_type | string | Filter the value of screenListType property (=) (wire: screenListType) |
x_pagination_mode | string | Sent as CachedObjectList-Pages by default so the list returns the full objects rather than their identifiers. (wire: X-Pagination-Mode) |
SELECT examples​
- get
- list
Get a filtering condition
SELECT
condition_id,
caller_id_number,
destination_number,
screen_list_type
FROM ovh.telephony.easy_hunting_screen_list_conditions_conditions
WHERE billing_account = '{{ billing_account }}' -- required
AND condition_id = '{{ condition_id }}' -- required
AND service_name = '{{ service_name }}' -- required
;
List filtering conditions
SELECT
condition_id,
caller_id_number,
destination_number,
screen_list_type
FROM ovh.telephony.easy_hunting_screen_list_conditions_conditions
WHERE billing_account = '{{ billing_account }}' -- required
AND service_name = '{{ service_name }}' -- required
AND screen_list_type = '{{ screen_list_type }}'
AND x_pagination_mode = '{{ x_pagination_mode }}'
;
INSERT examples​
- create
- Manifest
Create a filtering condition
INSERT INTO ovh.telephony.easy_hunting_screen_list_conditions_conditions (
caller_id_number,
destination_number,
screen_list_type,
billing_account,
service_name
)
SELECT
'{{ caller_id_number }}',
'{{ destination_number }}',
'{{ screen_list_type }}' /* required */,
'{{ billing_account }}',
'{{ service_name }}'
RETURNING
condition_id,
caller_id_number,
destination_number,
screen_list_type
;
# Description fields are for documentation purposes
- name: easy_hunting_screen_list_conditions_conditions
props:
- name: billing_account
value: "{{ billing_account }}"
description: Required parameter for the easy_hunting_screen_list_conditions_conditions resource.
- name: service_name
value: "{{ service_name }}"
description: Required parameter for the easy_hunting_screen_list_conditions_conditions resource.
- name: caller_id_number
value: "{{ caller_id_number }}"
description: |
Add a screenlist based on the presented caller number
- name: destination_number
value: "{{ destination_number }}"
description: |
Add a screenlist based on the destination number
- name: screen_list_type
value: "{{ screen_list_type }}"
description: |
Screenlist condition type
valid_values: ['destinationBlackList', 'destinationWhiteList', 'incomingBlackList', 'incomingWhiteList']
UPDATE examples​
- update
Update a filtering condition
UPDATE ovh.telephony.easy_hunting_screen_list_conditions_conditions
SET
caller_id_number = '{{ caller_id_number }}',
destination_number = '{{ destination_number }}'
WHERE
billing_account = '{{ billing_account }}' --required
AND condition_id = '{{ condition_id }}' --required
AND service_name = '{{ service_name }}' --required;
DELETE examples​
- delete
Delete a filtering condition
DELETE FROM ovh.telephony.easy_hunting_screen_list_conditions_conditions
WHERE billing_account = '{{ billing_account }}' --required
AND condition_id = '{{ condition_id }}' --required
AND service_name = '{{ service_name }}' --required
;