Skip to main content

service_voice_consumptions

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

Overview​

Nameservice_voice_consumptions
TypeResource
Idovh.telephony.service_voice_consumptions

Fields​

The following fields are returned by SELECT queries:

successful operation

NameDatatypeDescription
consumption_idinteger (wire: consumptionId)
calledstring (phone-number)Phone number
callingstring (phone-number)Phone number
country_suffixstringCountry suffix destination (wire: countrySuffix)
creation_datetimestring (date-time) (wire: creationDatetime)
designationstringDescription of the destination
destination_typestringConsumption destination type (landline, mobile, special) (wire: destinationType)
dialedstring (phone-number)Phone number
durationinteger
hangup_naturestringInformation about hangup cause (wire: hangupNature)
plan_typestringConsumption plan type (outplan, priceplan) (wire: planType)
price_without_taxobjectPrice with it's currency and textual representation (wire: priceWithoutTax)
way_typestringConsumption way type (incoming, outgoing, transfer) (wire: wayType)

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectbilling_account, consumption_id, service_nameGet a call record
listselectbilling_account, service_namecreation_datetime.from, creation_datetime.to, destination_type, plan_type, way_type, x_pagination_modeList call records

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)
consumption_idinteger (wire: consumptionId)
service_namestring (wire: serviceName)
creation_datetime.fromstring (date-time)Filter the value of creationDatetime property (>=) (wire: creationDatetime.from)
creation_datetime.tostring (date-time)Filter the value of creationDatetime property (<=) (wire: creationDatetime.to)
destination_typestringFilter the value of destinationType property (=) (wire: destinationType)
plan_typestringFilter the value of planType property (=) (wire: planType)
way_typestringFilter the value of wayType property (=) (wire: wayType)
x_pagination_modestringSent as CachedObjectList-Pages by default so the list returns the full objects rather than their identifiers. (wire: X-Pagination-Mode)

SELECT examples​

Get a call record

SELECT
consumption_id,
called,
calling,
country_suffix,
creation_datetime,
designation,
destination_type,
dialed,
duration,
hangup_nature,
plan_type,
price_without_tax,
way_type
FROM ovh.telephony.service_voice_consumptions
WHERE billing_account = '{{ billing_account }}' -- required
AND consumption_id = '{{ consumption_id }}' -- required
AND service_name = '{{ service_name }}' -- required
;