Skip to main content

voicemail_settings

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

Overview​

Namevoicemail_settings
TypeResource
Idovh.telephony.voicemail_settings

Fields​

The following fields are returned by SELECT queries:

successful operation

NameDatatypeDescription
full_greeting_sound_idintegerSound ID of the long greeeting (wire: fullGreetingSoundId)
short_greeting_sound_idintegerSound ID of the short greeting played before an automated message (wire: shortGreetingSoundId)
temporary_greeting_sound_idintegerSound ID of the temporary greeeting (wire: temporaryGreetingSoundId)
from_namestringName from which emails will be sent (wire: fromName)
annouce_messagestringName of the voicemail panel announce file (wire: annouceMessage)
audio_formatstringFormat of the voicemail audio file attached to emails (aiff, au, flac, mp3, ogg, wav) (wire: audioFormat)
do_not_recordbooleanDon't allow callers to leave voicemails (wire: doNotRecord)
force_passwordbooleanForce password request to access the voicemail panel (wire: forcePassword)
from_emailstringEmail address from which emails will be sent (wire: fromEmail)
greeting_typestringType of the greeting to play (default, full, short) (wire: greetingType)
is_new_versionbooleanCurrent voicemail version (wire: isNewVersion)
keep_messagebooleanDon't delete voicemails after they've been sent by email (wire: keepMessage)
redirection_emailsarrayEmail addresses to notify when a new voicemail is left (wire: redirectionEmails)
temporary_greeting_activatedbooleanPlay the temporary greeting instead of the regular one (wire: temporaryGreetingActivated)
unread_messagesintegerQuantity of unread voicemails (wire: unreadMessages)

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectbilling_account, service_nameGet the voicemail settings
updateupdatebilling_account, service_nameUpdate the voicemail settings
change_passwordexecbillingAccount, serviceName, passwordChange the voicemail password
change_routingexecbillingAccount, serviceName, routingEnable or disable the voicemail

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)
serviceNamestring
service_namestring (wire: serviceName)

SELECT examples​

Get the voicemail settings

SELECT
full_greeting_sound_id,
short_greeting_sound_id,
temporary_greeting_sound_id,
from_name,
annouce_message,
audio_format,
do_not_record,
force_password,
from_email,
greeting_type,
is_new_version,
keep_message,
redirection_emails,
temporary_greeting_activated,
unread_messages
FROM ovh.telephony.voicemail_settings
WHERE billing_account = '{{ billing_account }}' -- required
AND service_name = '{{ service_name }}' -- required
;

UPDATE examples​

Update the voicemail settings

UPDATE ovh.telephony.voicemail_settings
SET
audio_format = '{{ audio_format }}',
do_not_record = {{ do_not_record }},
force_password = {{ force_password }},
from_email = '{{ from_email }}',
from_name = '{{ from_name }}',
full_greeting_sound_id = {{ full_greeting_sound_id }},
greeting_type = '{{ greeting_type }}',
keep_message = {{ keep_message }},
redirection_emails = '{{ redirection_emails }}',
short_greeting_sound_id = {{ short_greeting_sound_id }},
temporary_greeting_activated = {{ temporary_greeting_activated }},
temporary_greeting_sound_id = {{ temporary_greeting_sound_id }}
WHERE
billing_account = '{{ billing_account }}' --required
AND service_name = '{{ service_name }}' --required;

Lifecycle Methods​

EXEC variables use wire (API) names.

Change the voicemail password

EXEC ovh.telephony.voicemail_settings.change_password
@billingAccount='{{ billingAccount }}' --required,
@serviceName='{{ serviceName }}' --required
@@json=
'{
"password": "{{ password }}"
}'
;