[{"label":"Latest (6.4.0)","version":"latest"}]
vrealize-network-insight-api
Get Audit Logs
Descriptionget audit logs based on filters specified in query
Request
URLURL
https://vrni.example.com/api/ni/logs/audit
Request Body
Request Body
{
"cursor": "string",
"entity_id": "18230:3:187309184",
"entity_type": "VCenterDataSource",
"ip_address": "192.168.0.1",
"operation": "LOGIN",
"size": 10,
"time_range": {
"end_time": 1534410559,
"start_time": 1534410000
},
"user_name": "admin@local",
"username": "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 as int32
size
Optional
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,
"start_time": 1504739809
}
string
cursor
Optional
Cursor for the next page of logs
integer as int64
end_time
Optional
End timestamp of the window of the objects returned
integer as int64
start_time
Optional
Start timestamp of the window of the objects returned
Errors
ApiError
400
Bad Request
401
Unauthorized
500
Internal Error
Code Samples
cURL Command
curl -X POST -H "Content-Type: application/json" -d '{"cursor":"string","entity_id":"18230:3:187309184","entity_type":"VCenterDataSource","ip_address":"192.168.0.1","operation":"LOGIN","size":10,"time_range":{"end_time":1534410559,"start_time":1534410000},"user_name":"admin@local","username":"admin@local"}' https://vrni.example.com/api/ni/logs/audit
[{"label":"Latest (6.4.0)","version":"latest"}]
vrealize-network-insight-api
On This Page
Logs Operations
post