Skip to main content

line_last_registrations

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

Overview​

Nameline_last_registrations
TypeResource
Idovh.telephony.line_last_registrations

Fields​

The following fields are returned by SELECT queries:

Informations about a SIP registration (i.e. IP, port, User-Agent...)

NameDatatypeDescription
datetimestring (date-time)SIP registration's date
domainstringSIP registration's domain
ipstring (ipv4)SIP registration's IP (example: 192.0.2.0)
local_ipstring (ipv4)SIP registration's local device IP (example: 192.0.2.0) (wire: localIp)
local_portintegerSIP registration's local device port (wire: localPort)
portintegerSIP registration's port
user_agentstringSIP registration's User-Agent (wire: userAgent)

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
listselectbilling_account, service_nameList last registrations

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)
service_namestring (wire: serviceName)

SELECT examples​

List last registrations

SELECT
datetime,
domain,
ip,
local_ip,
local_port,
port,
user_agent
FROM ovh.telephony.line_last_registrations
WHERE billing_account = '{{ billing_account }}' -- required
AND service_name = '{{ service_name }}' -- required
;