Skip to main content

line_records

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

Overview​

Nameline_records
TypeResource
Idovh.telephony.line_records

Fields​

The following fields are returned by SELECT queries:

successful operation

NameDatatypeDescription
idinteger
caller_id_namestringThe caller name of the recorded call (wire: callerIdName)
agentstringThe agent number of the recorded call
call_endstring (date-time)The end date of the recorded call (wire: callEnd)
call_startstring (date-time)The begin date of the recorded call (wire: callStart)
caller_id_numberstringThe caller number of the recorded call (wire: callerIdNumber)
destination_numberstringThe destination number of the recorded call (wire: destinationNumber)
durationintegerThe duration in seconds of the recorded call
file_urlstringThe record sound url (wire: fileUrl)

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectbilling_account, id, service_nameGet a call recording
listselectbilling_account, service_namex_pagination_modeList call recordings
deletedeletebilling_account, id, service_nameDelete a call recording

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)
idintegerId of the object
service_namestring (wire: serviceName)
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 recording

SELECT
id,
caller_id_name,
agent,
call_end,
call_start,
caller_id_number,
destination_number,
duration,
file_url
FROM ovh.telephony.line_records
WHERE billing_account = '{{ billing_account }}' -- required
AND id = '{{ id }}' -- required
AND service_name = '{{ service_name }}' -- required
;

DELETE examples​

Delete a call recording

DELETE FROM ovh.telephony.line_records
WHERE billing_account = '{{ billing_account }}' --required
AND id = '{{ id }}' --required
AND service_name = '{{ service_name }}' --required
;