Skip to main content

easy_hunting_screen_list_conditions_conditions

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

Overview​

Nameeasy_hunting_screen_list_conditions_conditions
TypeResource
Idovh.telephony.easy_hunting_screen_list_conditions_conditions

Fields​

The following fields are returned by SELECT queries:

successful operation

NameDatatypeDescription
condition_idinteger (wire: conditionId)
caller_id_numberstringScreenlist based on the presented caller number (wire: callerIdNumber)
destination_numberstringScreenlist based on the destination number (wire: destinationNumber)
screen_list_typestringType of screenlist (destinationBlackList, destinationWhiteList, incomingBlackList, incomingWhiteList) (wire: screenListType)

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectbilling_account, condition_id, service_nameGet a filtering condition
listselectbilling_account, service_namescreen_list_type, x_pagination_modeList filtering conditions
createinsertbilling_account, service_name, screen_list_typeCreate a filtering condition
updateupdatebilling_account, condition_id, service_nameUpdate a filtering condition
deletedeletebilling_account, condition_id, service_nameDelete 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.

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)
condition_idinteger (wire: conditionId)
service_namestring (wire: serviceName)
screen_list_typestringFilter the value of screenListType property (=) (wire: screenListType)
x_pagination_modestringSent as CachedObjectList-Pages by default so the list returns the full objects rather than their identifiers. (wire: X-Pagination-Mode)

SELECT examples​

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
;

INSERT examples​

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
;

UPDATE examples​

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 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
;