Skip to main content

number_specific_numbers

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

Overview​

Namenumber_specific_numbers
TypeResource
Idovh.telephony.number_specific_numbers

Fields​

The following fields are returned by SELECT queries:

Specific number available

NameDatatypeDescription
is_premiumbooleanSet if number is premium (wire: isPremium)
numberstring (phone-number)The number

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
listselectcountry, typerange, zoneGet all available specific number from a country

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"}})
countrystringThe country
typestringThe type of number
rangestringThe range (special number)
zonestringThe zone (geographic number)

SELECT examples​

Get all available specific number from a country

SELECT
is_premium,
number
FROM ovh.telephony.number_specific_numbers
WHERE country = '{{ country }}' -- required
AND type = '{{ type }}' -- required
AND range = '{{ range }}'
AND zone = '{{ zone }}'
;