ovh_pabx_sounds
Creates, updates, deletes, gets or lists an ovh_pabx_sounds resource.
Overview​
| Name | ovh_pabx_sounds |
| Type | Resource |
| Id | ovh.telephony.ovh_pabx_sounds |
Fields​
The following fields are returned by SELECT queries:
- get
- list
successful operation
| Name | Datatype | Description |
|---|---|---|
name | string | The sound filename |
sound_id | integer | (wire: soundId) |
The PABX sounds
| Name | Datatype | Description |
|---|---|---|
name | string | The sound filename |
sound_id | integer | (wire: soundId) |
Methods​
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
get | select | billing_account, service_name, sound_id | Get a sound | |
list | select | billing_account, service_name | x_pagination_mode | List sounds |
delete | delete | billing_account, service_name, sound_id | Delete a sound |
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"}}) |
billing_account | string | The name of your billingAccount (wire: billingAccount) |
service_name | string | (wire: serviceName) |
sound_id | integer | (wire: soundId) |
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 sound
SELECT
name,
sound_id
FROM ovh.telephony.ovh_pabx_sounds
WHERE billing_account = '{{ billing_account }}' -- required
AND service_name = '{{ service_name }}' -- required
AND sound_id = '{{ sound_id }}' -- required
;
List sounds
SELECT
name,
sound_id
FROM ovh.telephony.ovh_pabx_sounds
WHERE billing_account = '{{ billing_account }}' -- required
AND service_name = '{{ service_name }}' -- required
AND x_pagination_mode = '{{ x_pagination_mode }}'
;
DELETE examples​
- delete
Delete a sound
DELETE FROM ovh.telephony.ovh_pabx_sounds
WHERE billing_account = '{{ billing_account }}' --required
AND service_name = '{{ service_name }}' --required
AND sound_id = '{{ sound_id }}' --required
;