Skip to main content

voicemail_directories

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

Overview​

Namevoicemail_directories
TypeResource
Idovh.telephony.voicemail_directories

Fields​

The following fields are returned by SELECT queries:

successful operation

NameDatatypeDescription
idintegerUniq voicemail message identifier
calleestring (phone-number)Callee number in international format
callerstring (phone-number)Caller number in international format
creation_datetimestring (date-time)Message datetime creation (wire: creationDatetime)
dirstringVoicemessage directory (family, friends, inbox, old, urgent, work)
durationintegerMessage duration (in seconds)

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectbilling_account, id, service_nameGet a voicemail message
listselectbilling_account, service_namedir, x_pagination_modeList voicemail messages
deletedeletebilling_account, id, service_nameDelete a voicemail message
moveexecbillingAccount, id, serviceName, dirMove a voicemail message

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 voicemail message

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

DELETE examples​

Delete a voicemail message

DELETE FROM ovh.telephony.voicemail_directories
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 voicemail message

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