Skip to main content

voicemail_greetings

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

Overview​

Namevoicemail_greetings
TypeResource
Idovh.telephony.voicemail_greetings

Fields​

The following fields are returned by SELECT queries:

successful operation

NameDatatypeDescription
idintegerUniq customized greeting identifier
calleestring (phone-number)Callee number in international format
dirstringCustomized greeting voicemail directory (busy, greet, temp, unavail)

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectbilling_account, id, service_nameGet a greeting
listselectbilling_account, service_namedir, x_pagination_modeList greetings
createinsertbilling_account, service_name, dir, document_idUpload a greeting
deletedeletebilling_account, id, service_nameDelete a greeting
moveexecbillingAccount, id, serviceName, dirMove a greeting

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"}})
billingAccountstringThe name of your billingAccount
billing_accountstringThe name of your billingAccount (wire: billingAccount)
idintegerId of the object
serviceNamestring
service_namestring (wire: serviceName)
dirstringFilter the value of dir property (=)
x_pagination_modestringSent as CachedObjectList-Pages by default so the list returns the full objects rather than their identifiers. (wire: X-Pagination-Mode)

SELECT examples​

Get a greeting

SELECT
id,
callee,
dir
FROM ovh.telephony.voicemail_greetings
WHERE billing_account = '{{ billing_account }}' -- required
AND id = '{{ id }}' -- required
AND service_name = '{{ service_name }}' -- required
;

INSERT examples​

Upload a greeting

INSERT INTO ovh.telephony.voicemail_greetings (
dir,
document_id,
billing_account,
service_name
)
SELECT
'{{ dir }}' /* required */,
'{{ document_id }}' /* required */,
'{{ billing_account }}',
'{{ service_name }}'
;

DELETE examples​

Delete a greeting

DELETE FROM ovh.telephony.voicemail_greetings
WHERE billing_account = '{{ billing_account }}' --required
AND id = '{{ id }}' --required
AND service_name = '{{ service_name }}' --required
;

Lifecycle Methods​

EXEC variables use wire (API) names.

Move a greeting

EXEC ovh.telephony.voicemail_greetings.move
@billingAccount='{{ billingAccount }}' --required,
@id='{{ id }}' --required,
@serviceName='{{ serviceName }}' --required
@@json=
'{
"dir": "{{ dir }}"
}'
;