Skip to main content

line_softphone_devices

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

Overview​

Nameline_softphone_devices
TypeResource
Idovh.telephony.line_softphone_devices

Fields​

The following fields are returned by SELECT queries:

List of softphone devices

NameDatatypeDescription
idstringDevice ID
namestringDevice name
osstringDevice operating system
update_timestring (date-time)Last device register date (wire: updateTime)
user_agentstringDevice user agent (wire: userAgent)

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
listselectbilling_account, service_nameReturns the softphone devices registered on the line: name, operating system, user agent and last registration date.
deletedeletebilling_account, device_id, service_nameDeletes a softphone device registered on the line.
disconnectexecbillingAccount, serviceNameDisconnects every softphone device registered on the line.

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)
device_idstringDevice ID (wire: deviceId)
serviceNamestring
service_namestring (wire: serviceName)

SELECT examples​

Returns the softphone devices registered on the line: name, operating system, user agent and last registration date.

SELECT
id,
name,
os,
update_time,
user_agent
FROM ovh.telephony.line_softphone_devices
WHERE billing_account = '{{ billing_account }}' -- required
AND service_name = '{{ service_name }}' -- required
;

DELETE examples​

Deletes a softphone device registered on the line.

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

Lifecycle Methods​

EXEC variables use wire (API) names.

Disconnects every softphone device registered on the line.

EXEC ovh.telephony.line_softphone_devices.disconnect
@billingAccount='{{ billingAccount }}' --required,
@serviceName='{{ serviceName }}' --required
;