Get Audit Logs
get audit logs based on filters specified in query
Request
URI
POST
https://vrni.example.com/api/ni/logs/audit
COPY
Request Body
Query Filters
AuditRequest
of type(s)
application/json
Required
{
"username": "admin@local",
"operation": "LOGIN",
"time_range": {
"start_time": 1534410000,
"end_time": 1534410559
},
"size": 10,
"cursor": "string"
}
string
user_name
Optional
user_name
string
ip_address
Optional
ip_address
string
entity_type
Optional
entity_type
string
entity_id
Optional
entity_id
string
operation
Optional
operation
string
response
Optional
response
integer As int32
As int32
size
Optional
size
string
cursor
Optional
cursor
Responses
200
OK
Returns
AuditListResponse
of type(s)
application/json
{
"results": [
{
"ip_address": "string",
"user_name": "string",
"entity_type": "string",
"entity_id": "string",
"operation": "string",
"response": "string",
"value": "string",
"timestamp": 0
}
],
"cursor": "ML12eu02==",
"start_time": 1504739809,
"end_time": 1504739809
}
string
cursor
Optional
cursor
integer As int64
As int64
start_time
Optional
start_time
integer As int64
As int64
end_time
Optional
end_time
400
Bad Request
Returns
ApiError
of type(s)
application/json
{
"code": 0,
"message": "string",
"details": [
{
"code": 0,
"message": "string",
"target": [
"string"
]
}
]
}
integer As int32
As int32
code
Optional
code
string
message
Optional
message
401
Unauthorized
Operation doesn't return any data structure
500
Internal Error
Operation doesn't return any data structure
Logs Operations
POST
Get Audit Logs