Get Audit Logs
POST/audit/api/v1/log
Retrieves paginated audit logs based on the provided filter criteria.
Rate Limits
The following rate limits apply:
- Request rate limit: 10/sec
- Burst limit: 10/sec
Request
- application/json
Body
required
- RelativeTimeRangeValue
- AbsoluteTimeRangeValue
- ToNowTimeRangeValue
- Array [
- ]
timeRange objectrequired
The time range for the audit log filter
Possible values: [relative
, absolute
, to_now
]
Time Type
value object required
Time Range Value
Time Amount for 'relative' Time Range
Possible values: [minute
, hour
, day
, week
, month
, year
]
Time Unit for 'relative' Time Range. 'login' not supported here
Start Time for 'absolute' Time Range
End Time for 'absolute' Time Range
string
Possible values: [login
]
filters object[]
List of audit log filters
Default value: 500
The maximum number of results to return per page. Valid Range: [100, 500]
The optional token to retrieve the next page of results
Responses
- 200
- 400
- 401
- 403
- 429
Successful Operation
- application/json
- Schema
- Example (from schema)
Schema
- Array [
- ]
value object[]
The list of audit logs that match the request
The time stamp of the log entry
The IP address of associated with the performed the action
Possible values: [CREATE
, READ
, UPDATE
, DELETE
, LOGIN
]
Represents the type of action performed on a resource by a given user or system
The name of the resource associated with the action
The type of the resource associated with the action
The result of the action performed
The user associated with the action
The token to use to retrieve the next page of results
{
"value": [
{
"timestamp": 1623733133000,
"action": "User foo@boo.com logged in via password",
"ipAddress": "127.0.0.1",
"actionType": "LOGIN",
"resourceName": "foo@boo.com",
"resourceType": "Login",
"result": "Success",
"user": "foo@boo.com"
}
],
"nextPageToken": "string"
}
Bad Request
- application/json
- Schema
- Example (from schema)
Schema
error object
The actual error object
Error Codes: BadRequest(400), Unauthorized(401), Forbidden(403), TooManyRequests(429).
A human-readable representation of the error.
The target of the error
An array of details about specific errors that led to this reported error
{
"error": {
"code": "string",
"message": "string",
"target": "string",
"details": [
null
]
}
}
Unauthorized
- application/json
- Schema
- Example (from schema)
Schema
error object
The actual error object
Error Codes: BadRequest(400), Unauthorized(401), Forbidden(403), TooManyRequests(429).
A human-readable representation of the error.
The target of the error
An array of details about specific errors that led to this reported error
{
"error": {
"code": "string",
"message": "string",
"target": "string",
"details": [
null
]
}
}
Forbidden
- application/json
- Schema
- Example (from schema)
Schema
error object
The actual error object
Error Codes: BadRequest(400), Unauthorized(401), Forbidden(403), TooManyRequests(429).
A human-readable representation of the error.
The target of the error
An array of details about specific errors that led to this reported error
{
"error": {
"code": "string",
"message": "string",
"target": "string",
"details": [
null
]
}
}
Too Many Requests
- application/json
- Schema
- Example (from schema)
Schema
error object
The actual error object
Error Codes: BadRequest(400), Unauthorized(401), Forbidden(403), TooManyRequests(429).
A human-readable representation of the error.
The target of the error
An array of details about specific errors that led to this reported error
{
"error": {
"code": "string",
"message": "string",
"target": "string",
"details": [
null
]
}
}