voicemail_settings
Creates, updates, deletes, gets or lists a voicemail_settings resource.
Overview​
| Name | voicemail_settings |
| Type | Resource |
| Id | ovh.telephony.voicemail_settings |
Fields​
The following fields are returned by SELECT queries:
- get
successful operation
| Name | Datatype | Description |
|---|---|---|
full_greeting_sound_id | integer | Sound ID of the long greeeting (wire: fullGreetingSoundId) |
short_greeting_sound_id | integer | Sound ID of the short greeting played before an automated message (wire: shortGreetingSoundId) |
temporary_greeting_sound_id | integer | Sound ID of the temporary greeeting (wire: temporaryGreetingSoundId) |
from_name | string | Name from which emails will be sent (wire: fromName) |
annouce_message | string | Name of the voicemail panel announce file (wire: annouceMessage) |
audio_format | string | Format of the voicemail audio file attached to emails (aiff, au, flac, mp3, ogg, wav) (wire: audioFormat) |
do_not_record | boolean | Don't allow callers to leave voicemails (wire: doNotRecord) |
force_password | boolean | Force password request to access the voicemail panel (wire: forcePassword) |
from_email | string | Email address from which emails will be sent (wire: fromEmail) |
greeting_type | string | Type of the greeting to play (default, full, short) (wire: greetingType) |
is_new_version | boolean | Current voicemail version (wire: isNewVersion) |
keep_message | boolean | Don't delete voicemails after they've been sent by email (wire: keepMessage) |
redirection_emails | array | Email addresses to notify when a new voicemail is left (wire: redirectionEmails) |
temporary_greeting_activated | boolean | Play the temporary greeting instead of the regular one (wire: temporaryGreetingActivated) |
unread_messages | integer | Quantity of unread voicemails (wire: unreadMessages) |
Methods​
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
get | select | billing_account, service_name | Get the voicemail settings | |
update | update | billing_account, service_name | Update the voicemail settings | |
change_password | exec | billingAccount, serviceName, password | Change the voicemail password | |
change_routing | exec | billingAccount, serviceName, routing | Enable 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.
| 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"}}) |
billingAccount | string | The name of your billingAccount |
billing_account | string | The name of your billingAccount (wire: billingAccount) |
serviceName | string | |
service_name | string | (wire: serviceName) |
SELECT examples​
- get
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
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_password
- change_routing
Change the voicemail password
EXEC ovh.telephony.voicemail_settings.change_password
@billingAccount='{{ billingAccount }}' --required,
@serviceName='{{ serviceName }}' --required
@@json=
'{
"password": "{{ password }}"
}'
;
Enable or disable the voicemail
EXEC ovh.telephony.voicemail_settings.change_routing
@billingAccount='{{ billingAccount }}' --required,
@serviceName='{{ serviceName }}' --required
@@json=
'{
"routing": "{{ routing }}"
}'
;