Skip to main content

ovh_pabx_menu_entries

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

Overview​

Nameovh_pabx_menu_entries
TypeResource
Idovh.telephony.ovh_pabx_menu_entries

Fields​

The following fields are returned by SELECT queries:

successful operation

NameDatatypeDescription
entry_idinteger (wire: entryId)
actionstringThe action triggered by the DTMF (bridge, callcenter, menuBack, menuExit, menuSub, menuTop, playback, readDtmf, setCallerName)
action_paramstringThe additionnal parameter of the action (wire: actionParam)
dtmfstringThe DTMF that triggers the action
positionintegerThe position of the entry in the menu

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectbilling_account, entry_id, menu_id, service_nameGet a menu entry
listselectbilling_account, menu_id, service_namex_pagination_modeList menu entries
createinsertbilling_account, menu_id, service_name, action, dtmf, positionCreate a menu entry
updateupdatebilling_account, entry_id, menu_id, service_nameUpdate a menu entry
deletedeletebilling_account, entry_id, menu_id, service_nameDelete a menu entry

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)
entry_idinteger (wire: entryId)
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 entry

SELECT
entry_id,
action,
action_param,
dtmf,
position
FROM ovh.telephony.ovh_pabx_menu_entries
WHERE billing_account = '{{ billing_account }}' -- required
AND entry_id = '{{ entry_id }}' -- required
AND menu_id = '{{ menu_id }}' -- required
AND service_name = '{{ service_name }}' -- required
;

INSERT examples​

Create a menu entry

INSERT INTO ovh.telephony.ovh_pabx_menu_entries (
action,
action_param,
dtmf,
position,
billing_account,
menu_id,
service_name
)
SELECT
'{{ action }}' /* required */,
'{{ action_param }}',
'{{ dtmf }}' /* required */,
{{ position }} /* required */,
'{{ billing_account }}',
'{{ menu_id }}',
'{{ service_name }}'
RETURNING
entry_id,
action,
action_param,
dtmf,
position
;

UPDATE examples​

Update a menu entry

UPDATE ovh.telephony.ovh_pabx_menu_entries
SET
action = '{{ action }}',
action_param = '{{ action_param }}',
dtmf = '{{ dtmf }}'
WHERE
billing_account = '{{ billing_account }}' --required
AND entry_id = '{{ entry_id }}' --required
AND menu_id = '{{ menu_id }}' --required
AND service_name = '{{ service_name }}' --required;

DELETE examples​

Delete a menu entry

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