Skip to main content

trunk_channels_packs_repartitions

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

Overview​

Nametrunk_channels_packs_repartitions
TypeResource
Idovh.telephony.trunk_channels_packs_repartitions

Fields​

The following fields are returned by SELECT queries:

successful operation

NameDatatypeDescription
optimized_channels_quantityintegerThe optimized quantity of channels to order (wire: optimizedChannelsQuantity)
packs_repartitionarrayThe repartition of the packs (wire: packsRepartition)
total_priceobjectThe total price of the channels packs combination (wire: totalPrice)

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectbilling_account, quantity, service_nameGet 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.

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)
quantityintegerChannels quantity to get the best repartition on
service_namestringName of the service (wire: serviceName)

SELECT examples​

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
;