Skip to main content

fax_screen_lists

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

Overview​

Namefax_screen_lists
TypeResource
Idovh.telephony.fax_screen_lists

Fields​

The following fields are returned by SELECT queries:

successful operation

NameDatatypeDescription
service_namestring (wire: serviceName)
blacklisted_numbersarrayList of numbers not allowed to send a fax (wire: blacklistedNumbers)
blacklisted_tsiarrayList of logins (TSI or ID) not allowed to send a fax (wire: blacklistedTSI)
call_numberstringNumber of the fax service (wire: callNumber)
country_codestringCountry code of the fax service (wire: countryCode)
filtering_liststringWhich list is active (blackist, whitelist or none) (, blacklist, no, whitelist) (wire: filteringList)
whitelisted_numbersarrayList of numbers allowed to send a fax (wire: whitelistedNumbers)
whitelisted_tsiarrayList of logins (TSI or ID) allowed to send a fax (wire: whitelistedTSI)

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectbilling_account, service_nameGet the screen lists. Returns the numbers and logins (TSI) allowed or blocked from sending faxes to the service, and which list is active.
createinsertbilling_account, service_nameCreate the screen lists. Creates the screen lists of the fax service. The active list is whitelist, blacklist or none.
updateupdatebilling_account, service_nameUpdate the screen lists. Updates the allowed and blocked numbers and logins (TSI). The active list is chosen when the screen lists are created.
deletedeletebilling_account, service_nameDelete the screen lists. Deletes all screen lists of the fax service: allowed and blocked numbers and logins (TSI).
resetexecbillingAccount, serviceNameReset the screen lists. Empties the selected screen lists: allowed or blocked numbers, allowed or blocked logins.

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"}})
billingAccountstringThe name of your billingAccount
billing_accountstringThe name of your billingAccount (wire: billingAccount)
serviceNamestring
service_namestring (wire: serviceName)

SELECT examples​

Get the screen lists. Returns the numbers and logins (TSI) allowed or blocked from sending faxes to the service, and which list is active.

SELECT
service_name,
blacklisted_numbers,
blacklisted_tsi,
call_number,
country_code,
filtering_list,
whitelisted_numbers,
whitelisted_tsi
FROM ovh.telephony.fax_screen_lists
WHERE billing_account = '{{ billing_account }}' -- required
AND service_name = '{{ service_name }}' -- required
;

INSERT examples​

Create the screen lists. Creates the screen lists of the fax service. The active list is whitelist, blacklist or none.

INSERT INTO ovh.telephony.fax_screen_lists (
blacklisted_numbers,
blacklisted_tsi,
filtering_list,
whitelisted_numbers,
whitelisted_tsi,
billing_account,
service_name
)
SELECT
'{{ blacklisted_numbers }}',
'{{ blacklisted_tsi }}',
'{{ filtering_list }}',
'{{ whitelisted_numbers }}',
'{{ whitelisted_tsi }}',
'{{ billing_account }}',
'{{ service_name }}'
RETURNING
service_name,
blacklisted_numbers,
blacklisted_tsi,
call_number,
country_code,
filtering_list,
whitelisted_numbers,
whitelisted_tsi
;

UPDATE examples​

Update the screen lists. Updates the allowed and blocked numbers and logins (TSI). The active list is chosen when the screen lists are created.

UPDATE ovh.telephony.fax_screen_lists
SET
blacklisted_numbers = '{{ blacklisted_numbers }}',
blacklisted_tsi = '{{ blacklisted_tsi }}',
whitelisted_numbers = '{{ whitelisted_numbers }}',
whitelisted_tsi = '{{ whitelisted_tsi }}'
WHERE
billing_account = '{{ billing_account }}' --required
AND service_name = '{{ service_name }}' --required;

DELETE examples​

Delete the screen lists. Deletes all screen lists of the fax service: allowed and blocked numbers and logins (TSI).

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

Lifecycle Methods​

EXEC variables use wire (API) names.

Reset the screen lists. Empties the selected screen lists: allowed or blocked numbers, allowed or blocked logins.

EXEC ovh.telephony.fax_screen_lists.reset
@billingAccount='{{ billingAccount }}' --required,
@serviceName='{{ serviceName }}' --required
@@json=
'{
"blacklistedNumbers": {{ blacklistedNumbers }},
"blacklistedTSI": {{ blacklistedTSI }},
"whitelistedNumbers": {{ whitelistedNumbers }},
"whitelistedTSI": {{ whitelistedTSI }}
}'
;