available_devices
Creates, updates, deletes, gets or lists an available_devices resource.
Overview​
| Name | available_devices |
| Type | Resource |
| Id | ovh.telephony.available_devices |
Fields​
The following fields are returned by SELECT queries:
- list
A phone device belonging to this billing account, with its currently assigned lines
| Name | Datatype | Description |
|---|---|---|
available_slots | integer | Number of line slots still available on this device (wire: availableSlots) |
brand | string | Brand of the device |
description | string | Public description of the device |
lines | array | Lines currently assigned to this device |
lines_count | integer | Number of lines currently assigned to this device (wire: linesCount) |
mac_address | string | MAC address of the device (wire: macAddress) |
max_lines | integer | Maximum number of lines the device can handle (wire: maxLines) |
Methods​
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
list | select | billing_account | List 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.
| Name | Datatype | Description |
|---|---|---|
api_host | string | The 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_account | string | The name of your billingAccount (wire: billingAccount) |
SELECT examples​
- list
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
;