number_specific_numbers
Creates, updates, deletes, gets or lists a number_specific_numbers resource.
Overview​
| Name | number_specific_numbers |
| Type | Resource |
| Id | ovh.telephony.number_specific_numbers |
Fields​
The following fields are returned by SELECT queries:
- list
Specific number available
| Name | Datatype | Description |
|---|---|---|
is_premium | boolean | Set if number is premium (wire: isPremium) |
number | string (phone-number) | The number |
Methods​
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
list | select | country, type | range, zone | Get 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.
| Name | Datatype | Description |
|---|---|---|
api_host | string | The 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"}}) |
country | string | The country |
type | string | The type of number |
range | string | The range (special number) |
zone | string | The zone (geographic number) |
SELECT examples​
- list
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 }}'
;