aliases
Creates, updates, deletes, gets or lists an aliases resource.
Overview​
| Name | aliases |
| Type | Resource |
| Id | ovh.telephony.aliases |
Fields​
The following fields are returned by SELECT queries:
- get
- list
successful operation
| Name | Datatype | Description |
|---|---|---|
service_name | string | (wire: serviceName) |
iam | object | IAM resource metadata |
Telephony service
| Name | Datatype | Description |
|---|---|---|
service_name | string | (wire: serviceName) |
iam | object | IAM resource metadata |
Methods​
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
get | select | service_name | Get a number service | |
list | select | iam_tags, x_pagination_mode | List numbers | |
change_contact | exec | serviceName | Change service contacts. Starts a procedure to change the admin, tech or billing contact of the service. |
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"}}) |
serviceName | string | Your line number |
service_name | string | Your line number (wire: serviceName) |
iam_tags | object | Filter resources on IAM tags (wire: iamTags) |
x_pagination_mode | string | Sent as CachedObjectList-Pages by default so the list returns the full objects rather than their identifiers. (wire: X-Pagination-Mode) |
SELECT examples​
- get
- list
Get a number service
SELECT
service_name,
iam
FROM ovh.telephony.aliases
WHERE service_name = '{{ service_name }}' -- required
;
List numbers
SELECT
service_name,
iam
FROM ovh.telephony.aliases
WHERE iam_tags = '{{ iam_tags }}'
AND x_pagination_mode = '{{ x_pagination_mode }}'
;
Lifecycle Methods​
EXEC variables use wire (API) names.
- change_contact
Change service contacts. Starts a procedure to change the admin, tech or billing contact of the service.
EXEC ovh.telephony.aliases.change_contact
@serviceName='{{ serviceName }}' --required
@@json=
'{
"contactAdmin": "{{ contactAdmin }}",
"contactBilling": "{{ contactBilling }}",
"contactTech": "{{ contactTech }}"
}'
;