Skip to main content

available_devices

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

Overview​

Nameavailable_devices
TypeResource
Idovh.telephony.available_devices

Fields​

The following fields are returned by SELECT queries:

A phone device belonging to this billing account, with its currently assigned lines

NameDatatypeDescription
available_slotsintegerNumber of line slots still available on this device (wire: availableSlots)
brandstringBrand of the device
descriptionstringPublic description of the device
linesarrayLines currently assigned to this device
lines_countintegerNumber of lines currently assigned to this device (wire: linesCount)
mac_addressstringMAC address of the device (wire: macAddress)
max_linesintegerMaximum number of lines the device can handle (wire: maxLines)

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
listselectbilling_accountList phone devices

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)

SELECT examples​

List phone devices

SELECT
available_slots,
brand,
description,
lines,
lines_count,
mac_address,
max_lines
FROM ovh.telephony.available_devices
WHERE billing_account = '{{ billing_account }}' -- required
;