logs
Creates, updates, deletes, gets or lists a logs resource.
Overview​
| Name | logs |
| Type | Resource |
| Id | ovh.dedicated_server.logs |
Fields​
The following fields are returned by SELECT queries:
- get
successful operation
| Name | Datatype | Description |
|---|---|---|
cache_date | string (date-time) | Cache store timestamp (wire: cacheDate) |
count | integer | Total amount of lines |
data | array | Logs |
Methods​
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
get | select | datacenter, limit, page, server | 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) |
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.
| Name | Datatype | Description |
|---|---|---|
api_host | string | The 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"}}) |
datacenter | string | Restrict on the given datacenter |
limit | integer | Amount of rows per page |
page | integer | Page to display |
server | string | Restrict on the given server |
SELECT examples​
- get
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 }}'
;