REST APIs to generate audit logs
You can collect the audit log details from swagger rest APIs as well as the SCV plugin user interface.
Given below are the swagger rest APIs:
-
GET 4.1/audit/logs: Get audit data for all logs
-
GET 4.1/audit/logs/{filename}: Get audit data for a specific log file
-
POST 4.1/audit/verify: Trigger audit log verification.
-
GET 4.1/audit/config: Get the audit and syslog server config
-
PUT 4.1/audit/config: Update the audit and syslog server config
To generate audit logs for VMware vSphere client jobs using the SnapCenter Plug-in for VMware vSphere REST APIs, you must use the REST API calls for VMware vSphere.
For each REST API, add https://<server>:<port>/api
at the front of the REST API to form a complete endpoint.
Use the following REST APIs in the Jobs section to get detailed information on jobs:
REST API | Comments |
---|---|
|
returns audit log files with integrity data |
|
get specific audit log file with integrity data |
|
triggers audit verification |
|
updates the syslog server certificate |