Skip to main content

line_phone_function_keys

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

Overview​

Nameline_phone_function_keys
TypeResource
Idovh.telephony.line_phone_function_keys

Fields​

The following fields are returned by SELECT queries:

successful operation

NameDatatypeDescription
defaultstringThe default function used by the key
functionstringThe function active on the key
key_numintegerThe number of the function key (wire: keyNum)
labelstringThe key label
parameterstringThe function parameter
typestringThe key type

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectbilling_account, key_num, service_nameGet a function key
listselectbilling_account, service_namex_pagination_modeList function keys
updateupdatebilling_account, key_num, service_nameUpdate a function key

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)
key_numintegerThe number of the function key (wire: keyNum)
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 function key

SELECT
default,
function,
key_num,
label,
parameter,
type
FROM ovh.telephony.line_phone_function_keys
WHERE billing_account = '{{ billing_account }}' -- required
AND key_num = '{{ key_num }}' -- required
AND service_name = '{{ service_name }}' -- required
;

UPDATE examples​

Update a function key

UPDATE ovh.telephony.line_phone_function_keys
SET
function = '{{ function }}',
parameter = '{{ parameter }}'
WHERE
billing_account = '{{ billing_account }}' --required
AND key_num = '{{ key_num }}' --required
AND service_name = '{{ service_name }}' --required;