[{"label":"Latest (6.4.0)","version":"latest"}]
vrealize-network-insight-api

Get Audit Logs

Description

get audit logs based on filters specified in query

Request

Request

URL

URL


post
https://vrni.example.com/api/ni/logs/audit
Copy

Request Body

Request Body

AuditRequest of type(s) application/json Required

Query Filters

{
    "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

time_range Optional

string
user_name Optional

Username making the change

Response

Response

Response Body

Response 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


array of AuditResponse
results Optional

integer as int64
start_time Optional

Start timestamp of the window of the objects returned

Errors

Errors

400

Bad Request


401

Unauthorized


500

Internal Error

Code Samples

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
Feedback

Was this page helpful?