Last updated
curl -L 'https://console.<DOMAIN>/api/v1/audit-logs' \
-H 'Authorization: Bearer <ACCESS_TOKEN>' \
-H 'Content-Type: application/json' \
-G \
--data-urlencode "startTime=2024-06-01T00:00:00Z" \
--data-urlencode "endTime=2024-06-08T00:00:00Z" \
--data-urlencode "resourceTypes=TENANT,CLUSTER" \
--data-urlencode "eventTypes=CREATE,DELETE" \
--data-urlencode "sort=desc"{
"items": [
{
"timestamp": "2024-06-08T10:30:00Z",
"eventType": "CREATE",
"resourceType": "TENANT",
"resourceId": "tenant-a",
"userId": "admin@hostorg.com",
"details": "Tenant created via Management Interface API"
},
{
"timestamp": "2024-06-07T12:15:00Z",
"eventType": "DELETE",
"resourceType": "CLUSTER",
"resourceId": "cluster-b",
"userId": "ops@hostorg.com",
"details": "Cluster deleted via host org automation"
}
],
"page": 1,
"pageSize": 50,
"total": 2
}