Kaspersky Research Sandbox provides an API to obtain audit information.
All audit events can be downloaded via the API in case of a full security audit.
This feature is available only for Kaspersky Research Sandbox users with administrator privileges (Role=Admin
).
Request
Request method: GET
Endpoint: https://<server name>/api/v1/audit?<parameters>
Parameters
Obtaining audit information parameters
Parameter |
Data type |
Occurrence |
Description |
---|---|---|---|
|
string <date-time> |
Optional |
Information about user actions from the date and time specified according to RFC 3339 standards will be obtained. For example, If this parameter is not specified, information about all user actions that occurred starting from Kaspersky Research Sandbox installation will be obtained. |
|
string <date-time> |
Optional |
Information about user actions until the date and time specified according to RFC 3339 standards will be obtained. For example, If this parameter is not specified, information about all user actions that occurred until the |
|
string |
Optional |
User actions, for which you want to obtain audit information. If this parameter is not specified, information about all user actions will be obtained. Available values:
|
|
integer |
Optional |
Number of records to obtain. Available values: Default value: If this parameter is not specified or |
|
boolean |
Optional |
Sorts entries in ascending or descending order:
|
cURL command example: $ curl -u <user name> --request GET https://<server name>/api/v1/audit?from=2018-10-30T15:04:05%2B03:00 You will be asked to enter your password. The password is not displayed while you type it. |
Responses
Endpoint returns a JSON object that contains audit information about user actions. Objects are sorted by the Ts
value in descending order.
200 OK
Audit information obtained successfully.
200 OK response parameters
Parameter |
Data type |
Description |
---|---|---|
|
string |
Audit record ID. |
|
string <date-time> |
Date and time when the audit information was saved, according to RFC 3339 standard. |
|
string |
User action type (for example, |
|
string |
User name (login) of the Kaspersky Research Sandbox user account, for which the audit information is obtained. |
|
array of objects |
Specific data for each type (action) of audit record. |
200 OK response example: [ { "Id": "string", "Ts": "2018-10-20T15:04:05Z", "Action": "string", "Username": "string", "Data": { "AuthResult": "success", "Login": "string", "PassHash": "*" } ] |
400 Bad Request
Failed to obtain audit information due to incorrect query.
400 Bad Request response parameters
Parameter |
Data type |
Description |
---|---|---|
|
string |
Error ID. |
|
string |
Error description. |
|
string |
Additional information, if available. |
Error examples: Incorrect {"code":42,"message":"invalid value","meta":"username"} Incorrect {"code":42,"message":"invalid value","meta":"limit"} |
401 Unauthorized
Failed to obtain audit information due to incorrect user credentials.
500 Internal Server Error
Failed to obtain audit information due to an internal server error.
Page top