Retrieves the list of audit logs
GEThttps://api.spectrocloud.com/v1/audits
Authorization: ApiKey
name: ApiKeytype: apiKeydescription: API key authorization where API key can be generated from Palette console under Profile > My API Keysin: header
Retrieves the list of audit logs
Request
Query Parameters
Time is a wrapper around time.Time which supports correct marshaling to YAML and JSON. Wrappers are provided for many of the factory methods that the time package offers.
Time is a wrapper around time.Time which supports correct marshaling to YAML and JSON. Wrappers are provided for many of the factory methods that the time package offers.
Specify the user uid, to retrieve the specific user audit logs
Specify the project uid, to retrieve the specific project audit logs
Specify the tenant uid, to retrieve the specific tenant audit logs
Specify the resource name, to retrieve the specific resource audit logs
Specify the resource uid, to retrieve the specific resource audit logs
Possible values: [create
, update
, delete
, publish
, deploy
]
Default value: 50
limit is a maximum number of responses to return for a list call. Default and maximum value of the limit is 50.
If more items exist, the server will set the continue
field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results.
offset is the next index number from which the response will start. The response offset value can be used along with continue token for the pagination.
continue token to paginate the subsequent data items
Header Parameters
Scope the request to the specified project uid
Responses
- 200
(empty)
- application/json
- Schema
- Example (from schema)
Schema
items object[]required
listmeta object
{
"items": [
{
"metadata": {
"annotations": {},
"creationTimestamp": "2023-12-01T21:31:48.192Z",
"deletionTimestamp": "2023-12-01T21:31:48.192Z",
"labels": {},
"lastModifiedTimestamp": "2023-12-01T21:31:48.192Z",
"name": "string",
"uid": "string"
},
"spec": {
"actionMsg": "string",
"actionType": "create",
"actor": {
"actorType": "user",
"project": {
"name": "string",
"uid": "string"
},
"serviceName": "string",
"user": {
"emailId": "string",
"firstName": "string",
"lastName": "string",
"org": "string",
"uid": "string"
}
},
"contentMsg": "string",
"resource": {
"kind": "string",
"label": "string",
"name": "string",
"uid": "string"
},
"userMsg": "string"
}
}
],
"listmeta": {
"continue": "string",
"count": 0,
"limit": 0,
"offset": 0
}
}
- curl
- python
- go
- nodejs
- java
- CURL
curl -L -X GET 'https://api.spectrocloud.com/v1/audits' \
-H 'Accept: application/json' \
-H 'ApiKey: <API_KEY_VALUE>'