line_offer_phones
Creates, updates, deletes, gets or lists a line_offer_phones resource.
Overview​
| Name | line_offer_phones |
| Type | Resource |
| Id | ovh.telephony.line_offer_phones |
Fields​
The following fields are returned by SELECT queries:
- list
Informations related to phone capabilities
| Name | Datatype | Description |
|---|---|---|
brand | string | Brand name of the phone |
description | string | The phone description |
fees | object | Setup fees |
maxline | integer | Maximum number of lines managed by a phone |
offer_type | string | Type of purchase (deposit, loan, purchase) (wire: offerType) |
price | object | Telephony price |
protocol | string | Phone protocol (mgcp, sip) |
Methods​
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
list | select | country, offer | Get all available phone brands compatible with lines |
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"}}) |
country | string | The country |
offer | string | The selected offer |
SELECT examples​
- list
Get all available phone brands compatible with lines
SELECT
brand,
description,
fees,
maxline,
offer_type,
price,
protocol
FROM ovh.telephony.line_offer_phones
WHERE country = '{{ country }}' -- required
AND offer = '{{ offer }}' -- required
;