List audit logs
Returns a list of audit log rows according to the query parameters. Note that this endpoint is paginated by default and the list is limited in results.
Pagination Upcloud-Total-Count header is included in the response to indicate the total number of audit logs available with the current query parameters (excluding limit and offset). The total count can be used for a number of pagination strategies. limit and offset query parameters can be used to finally paginate the results.
Request
- Base URL: https://api.upcloud.com
- URL: https://api.upcloud.com/1.3/audit-logs
- Auth: HTTP bearer
Query parameters
Search string
Filter audit logs using a keyword such as account username, resource ID or IP address.
Number of results to return
Number of results to return (max 100, default 50)
Page for retrieved results. Note: 0 and 1 retrieve the same first page results. (default 0)
Offset for retrieved results. (default 0)
List of actions to filter by
[ "create", "update", "delete" ]
List of origins to filter by
[ "api", "gui" ]
List of resource types to filter by
[ "server", "storage", "network" ]
List audit logs created after the given timestamp (including the time of timestamp). Format: ISO timestamp eg. 2024-01-01T23:45:56Z
List audit logs created before the given timestamp (including the time of timestamp). Format: ISO timestamp eg. 2024-01-01T23:45:56Z
Response
Successful response
Example response
{
"audit_logs": []
}Changes
No recorded changes to this operation across all 1 revision of this API.