trunk_channels_packs_repartitions
Creates, updates, deletes, gets or lists a trunk_channels_packs_repartitions resource.
Overview​
| Name | trunk_channels_packs_repartitions |
| Type | Resource |
| Id | ovh.telephony.trunk_channels_packs_repartitions |
Fields​
The following fields are returned by SELECT queries:
- get
successful operation
| Name | Datatype | Description |
|---|---|---|
optimized_channels_quantity | integer | The optimized quantity of channels to order (wire: optimizedChannelsQuantity) |
packs_repartition | array | The repartition of the packs (wire: packsRepartition) |
total_price | object | The total price of the channels packs combination (wire: totalPrice) |
Methods​
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
get | select | billing_account, quantity, service_name | Get the best channel packs |
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) |
quantity | integer | Channels quantity to get the best repartition on |
service_name | string | Name of the service (wire: serviceName) |
SELECT examples​
- get
Get the best channel packs
SELECT
optimized_channels_quantity,
packs_repartition,
total_price
FROM ovh.telephony.trunk_channels_packs_repartitions
WHERE billing_account = '{{ billing_account }}' -- required
AND quantity = '{{ quantity }}' -- required
AND service_name = '{{ service_name }}' -- required
;