Skip to main content

screen_screen_lists

Creates, updates, deletes, gets or lists a screen_screen_lists resource.

Overview​

Namescreen_screen_lists
TypeResource
Idovh.telephony.screen_screen_lists

Fields​

The following fields are returned by SELECT queries:

successful operation

NameDatatypeDescription
idinteger
call_numberstring (wire: callNumber)
naturestringNature of screen list (fax, international, services, special, voicemail)
statusstring
typestringType of screen list (incomingBlackList, incomingWhiteList, outgoingBlackList, outgoingWhiteList)

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectbilling_account, id, service_nameGet a filtering rule
listselectbilling_account, service_namex_pagination_modeList filtering rules
createinsertbilling_account, service_name, nature, typeCreate a filtering rule
deletedeletebilling_account, id, service_nameDelete a filtering rule

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)
idintegerId of the object
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 rule

SELECT
id,
call_number,
nature,
status,
type
FROM ovh.telephony.screen_screen_lists
WHERE billing_account = '{{ billing_account }}' -- required
AND id = '{{ id }}' -- required
AND service_name = '{{ service_name }}' -- required
;

INSERT examples​

Create a filtering rule

INSERT INTO ovh.telephony.screen_screen_lists (
call_number,
nature,
type,
billing_account,
service_name
)
SELECT
'{{ call_number }}',
'{{ nature }}' /* required */,
'{{ type }}' /* required */,
'{{ billing_account }}',
'{{ service_name }}'
;

DELETE examples​

Delete a filtering rule

DELETE FROM ovh.telephony.screen_screen_lists
WHERE billing_account = '{{ billing_account }}' --required
AND id = '{{ id }}' --required
AND service_name = '{{ service_name }}' --required
;