Skip to main content

exceptions

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

Overview​

Nameexceptions
TypeResource
Idovh.sms.exceptions

Fields​

The following fields are returned by SELECT queries:

Sms reach list

NameDatatypeDescription
country_suffixestringThe abreviated country code. (wire: countrySuffixe)
messagesarrayThe exception message
operatorsstringThe list of operators impacted.
restriction_codestringThe type of routing restriction imposed by the operator (ALPHA, BAD_DLR, BLOCKED, CODING, DLR, FLASHONLY, MSISDN) (wire: restrictionCode)
substitutionstringThe substitution sender used to bypass operator filter

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
listselectreceiver, service_nameList sending restrictions for a number. Returns the operator restrictions and substitutions that apply when sending SMS to the given number.

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"}})
receiverstringThe receiver number to check
service_namestringThe internal name of your SMS offer (wire: serviceName)

SELECT examples​

List sending restrictions for a number. Returns the operator restrictions and substitutions that apply when sending SMS to the given number.

SELECT
country_suffixe,
messages,
operators,
restriction_code,
substitution
FROM ovh.sms.exceptions
WHERE receiver = '{{ receiver }}' -- required
AND service_name = '{{ service_name }}' -- required
;