Skip to main content

ovh_pabx_dialplan_extension_condition_screen_lists

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

Overview​

Nameovh_pabx_dialplan_extension_condition_screen_lists
TypeResource
Idovh.telephony.ovh_pabx_dialplan_extension_condition_screen_lists

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, dialplan_id, extension_id, service_nameGet a filtering condition
listselectbilling_account, dialplan_id, extension_id, service_namex_pagination_modeList filtering conditions
createinsertbilling_account, dialplan_id, extension_id, service_nameCreate a filtering condition
deletedeletebilling_account, condition_id, dialplan_id, extension_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)
dialplan_idinteger (wire: dialplanId)
extension_idinteger (wire: extensionId)
service_namestring (wire: serviceName)
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.ovh_pabx_dialplan_extension_condition_screen_lists
WHERE billing_account = '{{ billing_account }}' -- required
AND condition_id = '{{ condition_id }}' -- required
AND dialplan_id = '{{ dialplan_id }}' -- required
AND extension_id = '{{ extension_id }}' -- required
AND service_name = '{{ service_name }}' -- required
;

INSERT examples​

Create a filtering condition

INSERT INTO ovh.telephony.ovh_pabx_dialplan_extension_condition_screen_lists (
caller_id_number,
destination_number,
screen_list_type,
billing_account,
dialplan_id,
extension_id,
service_name
)
SELECT
'{{ caller_id_number }}',
'{{ destination_number }}',
'{{ screen_list_type }}',
'{{ billing_account }}',
'{{ dialplan_id }}',
'{{ extension_id }}',
'{{ service_name }}'
RETURNING
condition_id,
caller_id_number,
destination_number,
screen_list_type
;

DELETE examples​

Delete a filtering condition

DELETE FROM ovh.telephony.ovh_pabx_dialplan_extension_condition_screen_lists
WHERE billing_account = '{{ billing_account }}' --required
AND condition_id = '{{ condition_id }}' --required
AND dialplan_id = '{{ dialplan_id }}' --required
AND extension_id = '{{ extension_id }}' --required
AND service_name = '{{ service_name }}' --required
;