Skip to main content

logs

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

Overview​

Namelogs
TypeResource
Idovh.dedicated_server.logs

Fields​

The following fields are returned by SELECT queries:

successful operation

NameDatatypeDescription
cache_datestring (date-time)Cache store timestamp (wire: cacheDate)
countintegerTotal amount of lines
dataarrayLogs

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectdatacenter, limit, page, serverList public server logs. Returns public log entries for servers, page by page, optionally restricted to one server or one datacenter. Each entry gives the server name, a short text and a timestamp. This route is deprecated. (Deprecated, will be removed)

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"}})
datacenterstringRestrict on the given datacenter
limitintegerAmount of rows per page
pageintegerPage to display
serverstringRestrict on the given server

SELECT examples​

List public server logs. Returns public log entries for servers, page by page, optionally restricted to one server or one datacenter. Each entry gives the server name, a short text and a timestamp. This route is deprecated. (Deprecated, will be removed)

SELECT
cache_date,
count,
data
FROM ovh.dedicated_server.logs
WHERE datacenter = '{{ datacenter }}'
AND limit = '{{ limit }}'
AND page = '{{ page }}'
AND server = '{{ server }}'
;