Get Audit Logs
get audit logs based on filters specified in query
Request
URLURL
https://vrni.example.com/api/ni/logs/audit
Request Body
Request Body
AuditRequest of type(s) application/json
Required
Query Filters
(The request body class is missing description)
{
"cursor": "MTA=",
"entity_id": "18230:3:187309184",
"entity_type": "VCenterDataSource",
"ip_address": "192.168.0.1",
"operation": "UPDATE",
"response": "string",
"size": 0,
"time_range": {
"end_time": 1597247999,
"start_time": 1597247025
},
"user_name": "admin@local"
}
string
cursor
Optional
Cursor for the next page of logs
string
entity_id
Optional
Entity ID of object being changed
string
entity_type
Optional
Entity Type of object being changed
string
ip_address
Optional
Client IP that is making the change
string
operation
Optional
Operation on object being changed
string
response
Optional
Response from vRNI, whether it’s successfull or not
integer
size
Optional
This property has no documentation
string
user_name
Optional
Username making the change
Response
Response
Response BodyResponse Body
200 OK returns
AuditListResponse of type(s) application/json
{
"cursor": "ML12eu02==",
"end_time": 1504739809,
"results": [
{
"entity_id": "string",
"entity_type": "string",
"ip_address": "string",
"operation": "string",
"response": "string",
"timestamp": 0,
"user_name": "string",
"value": "string"
}
],
"start_time": 1504739809
}
string
cursor
Optional
Cursor for the next page of logs
integer
end_time
Optional
End timestamp of the window of the objects returned
integer
start_time
Optional
Start timestamp of the window of the objects returned
cURL Command
curl -X POST -H "Content-Type: application/json" -d '{"cursor":"MTA=","entity_id":"18230:3:187309184","entity_type":"VCenterDataSource","ip_address":"192.168.0.1","operation":"UPDATE","response":"string","size":0,"time_range":{"end_time":1597247999,"start_time":1597247025},"user_name":"admin@local"}' https://vrni.example.com/api/ni/logs/audit
Errors
401
Unauthorized
500
Internal Error