Auditlog API

This page provides a reference of the available operations in the Auditlog API.

All operations must be prefixed with the correct datacenter URL for your tenant. All requests must be authenticated via an API key.

The following operations are available:

Get auditlog

Returns an array of auditlog items.

Request

GET {datacenter}/auditlog

Response
200 - OK - Success response

The operation returns an array of JSON objects. Each object corresponds to one auditlog entry.

Examples

Get auditlog entry

Returns the auditlog entry with the specified ID.

Request

GET {datacenter}/auditlog/{id}

Response
200 - OK - Success response

The operation returns the auditlog entry with the specified ID as a JSON object.

Example

Get computer auditlog

Returns the auditlog entries for the specified computer.

Request
GET {datacenter}/computers/{computer}/auditlog
Response

200 - OK - Success response

The operation returns an array of JSON objects. Each object corresponds to one auditlog entry.

Example

Get user auditlog

Returns the auditlog entries for the computers of the specified user.

Note: The user is matched against the last user who logged in to the computer, as reported in the inventory. It is not matched against the user who made the request (user.account or user.fullName in the response). The result can therefore contain entries made by other users on the same computer, and miss entries the specified user made on other computers.

Request

GET {datacenter}/users/{user}/auditlog

Response

200 - OK - Success response

The operation returns an array of JSON objects. Each object corresponds to one auditlog entry.

Example

Get delta

Returns the new and changed entries since the last call, as well as a timestamp to pass to the next call. This can be used to incrementally fetch changed entries.

  1. Call the operation once without deltaTime. This first call returns the first page of entries, like Get auditlog, together with a timeNow value.

  2. Save the timeNow value and pass it as deltaTime in the next call. The response contains the entries that changed since then, and a new timeNow value for the following call.

When deltaTime is set:

  • All changed entries are returned, newest first. The take and last parameters are ignored.

  • All other filters are applied, and timeNow is calculated over the filtered entries. Use the same filters in every call. If you change the filters between calls, you can miss changes.

Request
GET {datacenter}/auditlog/delta
Response

200 - OK - Success response

The operation returns an object consisting of an array of JSON objects and the timestamp of the last change to the auditlog. Each object in the array corresponds to one auditlog entry.

Examples