Skip to main content

line_phones

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

Overview​

Nameline_phones
TypeResource
Idovh.telephony.line_phones

Fields​

The following fields are returned by SELECT queries:

successful operation

NameDatatypeDescription
brandstringBrand name
descriptionstringThe phone description
mac_addressstringMac Address (wire: macAddress)
max_simultaneous_callsintegerMaximum simultaneous calls managed by the phone (wire: maxSimultaneousCalls)
maxlineintegerMaximum number of lines managed by a phone
mgcp_ip_restrictionstring (ipv4)The ip restriction of your MGCP phone (example: 192.0.2.0) (wire: mgcpIpRestriction)
phone_configurationarrayCurrent phone properties (wire: phoneConfiguration)
protocolstringPhone protocol (mgcp, sip)
user_passwordstring (password)The phone user password (wire: userPassword)

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectbilling_account, service_nameGet the phone
updateupdatebilling_account, service_nameUpdate the phone
change_phone_configurationexecbillingAccount, serviceNameChange the phone configuration
rebootexecbillingAccount, serviceNameReboot the phone
refresh_screenexecbillingAccount, serviceNameRefresh the phone screen
reset_configexecbillingAccount, serviceName, ipReset the phone configuration

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 phone

SELECT
brand,
description,
mac_address,
max_simultaneous_calls,
maxline,
mgcp_ip_restriction,
phone_configuration,
protocol,
user_password
FROM ovh.telephony.line_phones
WHERE billing_account = '{{ billing_account }}' -- required
AND service_name = '{{ service_name }}' -- required
;

UPDATE examples​

Update the phone

UPDATE ovh.telephony.line_phones
SET
mgcp_ip_restriction = '{{ mgcp_ip_restriction }}'
WHERE
billing_account = '{{ billing_account }}' --required
AND service_name = '{{ service_name }}' --required;

Lifecycle Methods​

EXEC variables use wire (API) names.

Change the phone configuration

EXEC ovh.telephony.line_phones.change_phone_configuration
@billingAccount='{{ billingAccount }}' --required,
@serviceName='{{ serviceName }}' --required
@@json=
'{
"autoReboot": {{ autoReboot }},
"newConfigurations": "{{ newConfigurations }}"
}'
;