Retrieves the list of audit logs
GET/v1/edge-mgmt/edgehosts/current/audits
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 resource name, to retrieve the specific resource audit logs
Possible values: [create
, update
, delete
, activity
, action
]
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
Responses
- 200
- 404
- 500
OK
- application/json
- Schema
- Example (from schema)
Schema
Array [
]
items
object[]
required
List of audit message
metadata
CreationTimestamp is a timestamp representing the server time when this object was created.
edge host id
spec
Audit specifications
Possible values: [create
, update
, delete
, action
, activity
]
actor
Audit actor object
Possible values: [user
, system
]
id of actor
Audit action message
resource
Audit resource object
Audit resource type
Audit resource name
Audit resource id
listmeta
object
ListMeta describes metadata for the resource listing
Next token for the pagination. Next token is equal to empty string indicates end of result set.
Number of records feteched
The next offset for the pagination. Starting index for which next request will be placed.
{
"items": [
{
"metadata": {
"createTimestamp": "2024-07-29T15:51:28.071Z",
"edgeHostId": "string"
},
"spec": {
"actionType": "create",
"actor": {
"actorType": "user",
"uid": "string"
},
"message": "string",
"resource": {
"kind": "string",
"name": "string",
"uid": "string"
}
}
}
],
"listmeta": {
"continue": "string",
"limit": 0,
"offset": 0
}
}
Not Found
- application/json
- Schema
- Example (from schema)
Schema
{
"message": "string"
}
Internal server error
- application/json
- Schema
- Example (from schema)
Schema
{
"code": "string",
"details": {},
"message": "string",
"ref": "string"
}