Skip to main content

ovh_pabx_menus

Creates, updates, deletes, gets or lists an ovh_pabx_menus resource.

Overview​

Nameovh_pabx_menus
TypeResource
Idovh.telephony.ovh_pabx_menus

Fields​

The following fields are returned by SELECT queries:

successful operation

NameDatatypeDescription
namestringThe name of the menu
menu_idinteger (wire: menuId)
greet_soundintegerThe id of the OvhPabxSound played to greet (wire: greetSound)
greet_sound_ttsintegerThe text to speech sound played to greet (wire: greetSoundTts)
inter_digit_timeoutintegerThe timeout in milliseconds before considering the DTMF entry as done (wire: interDigitTimeout)
invalid_soundintegerThe id of the OvhPabxSound played when the caller uses an invalid DTMF (wire: invalidSound)
invalid_sound_ttsintegerThe text to speech sound played when the caller uses an invalid DTMF (wire: invalidSoundTts)
timeoutintegerThe timeout in milliseconds before ending the menu when no DTMF is received

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectbilling_account, menu_id, service_nameGet a menu
listselectbilling_account, service_namex_pagination_modeList menus
createinsertbilling_account, service_name, nameCreate a menu
updateupdatebilling_account, menu_id, service_nameUpdate a menu
deletedeletebilling_account, menu_id, service_nameDelete a menu

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"}})
billing_accountstringThe name of your billingAccount (wire: billingAccount)
menu_idinteger (wire: menuId)
service_namestring (wire: serviceName)
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 menu

SELECT
name,
menu_id,
greet_sound,
greet_sound_tts,
inter_digit_timeout,
invalid_sound,
invalid_sound_tts,
timeout
FROM ovh.telephony.ovh_pabx_menus
WHERE billing_account = '{{ billing_account }}' -- required
AND menu_id = '{{ menu_id }}' -- required
AND service_name = '{{ service_name }}' -- required
;

INSERT examples​

Create a menu

INSERT INTO ovh.telephony.ovh_pabx_menus (
greet_sound,
greet_sound_tts,
inter_digit_timeout,
invalid_sound,
invalid_sound_tts,
name,
timeout,
billing_account,
service_name
)
SELECT
{{ greet_sound }},
{{ greet_sound_tts }},
{{ inter_digit_timeout }},
{{ invalid_sound }},
{{ invalid_sound_tts }},
'{{ name }}' /* required */,
{{ timeout }},
'{{ billing_account }}',
'{{ service_name }}'
RETURNING
name,
menu_id,
greet_sound,
greet_sound_tts,
inter_digit_timeout,
invalid_sound,
invalid_sound_tts,
timeout
;

UPDATE examples​

Update a menu

UPDATE ovh.telephony.ovh_pabx_menus
SET
greet_sound = {{ greet_sound }},
greet_sound_tts = {{ greet_sound_tts }},
inter_digit_timeout = {{ inter_digit_timeout }},
invalid_sound = {{ invalid_sound }},
invalid_sound_tts = {{ invalid_sound_tts }},
name = '{{ name }}',
timeout = {{ timeout }}
WHERE
billing_account = '{{ billing_account }}' --required
AND menu_id = '{{ menu_id }}' --required
AND service_name = '{{ service_name }}' --required;

DELETE examples​

Delete a menu

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