Platform O&M/Cloud Monitoring/Monitoring and Alarm/SNS/ZWatch Operations/Audit Operations
GETAudit OperationsSince 2.3SynchronousAuth Required
GetAuditData
GetAuditData
Execution Availability
Try It Out
Submit a mock request using the current auth context and example-driven inputs.
Query Parameters
Request Inputs
Query Parameters
startTimeLongOptional. The start time.
endTimeLongOptional. The end time.
limitIntegerOptional. The maximum number of returned records.
labelsListOptional. The filter label list.
auditTypeAuditTypeOptional. The audit type.
Responses
Endpoint
GET/zstack/v1/zwatch/audits
/zstack/v1/zwatch/audits
Request Example
curl -X GET 'http://{host}/zstack/v1/zwatch/audits?startTime=1&endTime=1&limit=1&labels=<labels>&auditType=<auditType>&systemTags=<systemTags>&userTags=<userTags>' -H 'Authorization: OAuth {sessionUuid}'
Response Example
200{ "audits": [ { "resourceUuid": "b1ca3fab6ebc4302ad9249d5402cb06c", "resourceType": "VmInstanceVO", "clientIp": "172.0.0.1", "clientBrowser": "Chrome/69.0.3497.81", "apiName": "org.zstack.header.vm.APISetVmRDPMsg", "operatorAccountUuid": "36c27e8ff05c4780bf6d2fa65700f22e", "duration": 22.0, "requestUuid": "d78093c0b2fb3850b3ce563b3a0b029d", "responseUuid": "08cf3fd2c4614811b4acc0620e20a98e", "sessionUuid": "05e5c663eb794faab5c5606c38103a17", "responseDump": "{\"success\":true}", "time": 1.512037844556E12 } ] }Change History
This API has no change history records yet.
