API reference
Audit categories
The audit categories an audit action falls in, to filter the audit trail by.
Its operations need the scope audit.view.
List audit categories
GET/v1/audit-categories
Returns the categories an audit action can have, grouped as the console’s Audit page lists its resource types. Use a category’s slug as the category filter of the audit actions. Pages by page and per_page (limit is the same as per_page); every page carries current_page, per_page, last_page and total.
Needs the scope audit.view.
Query parameters
- limitinteger or nullOptional
The same as
per_page, kept for existing clients. - include_totalstring or nullOptional
Ignored:
totalis always present.Values:truefalse10(an open set: new values may be added) - per_pageinteger or nullOptional
The page size, from 1 to 100.
- pageinteger or nullOptional
The page to read, from 1; 1 when omitted. A page past the last answers no rows.
Returns
200 OK:
The audit categories.
Each item of the page:
- slugstring
The category’s key, the
categoryfilter of the audit actions, such asdatabase_instance. - namestring
The category’s name.
- groupstring or null
The group the console lists the category under, such as
Monitoring; null when it has none.
Each failure is a problem document with a stable code; the response panel's status selector shows each one this operation can answer, and errors lists them all.