Skip to main content

kobana dashboards audit-logs

Commands of kobana dashboards audit-logs. Every global option (Global options) applies here.

CommandHTTPDescription
audit-logs summaryGET /v1/audit_logs/summaryAudit activity summary
audit-logs listGET /v1/audit_logsList audit logs
audit-logs getGET /v1/audit_logs/{id}Get an audit log

audit-logs summary​

Audit activity summary

kobana dashboards audit-logs summary [OPTIONS]

GET /v1/audit_logs/summary

Activity of the last hours hours: total entries, the 10 most frequent actions and the 20 most recent entries. Requires the audit export permission.

Query parameters

NameTypeRequiredDescription
hoursnumbernoWindow size in hours, 1 to 8760. Default 24.

Headers

NameTypeRequiredDescription
X-Workspace-IdstringnoWorkspace the call acts on: the id or the public_id shown under Workspaces on the dashboard. Inside the token's organization, data lives in workspaces. It may be omitted while the organization has a single workspace; with two or more, leaving it out returns 400 workspace_required. A workspace outside the organization returns 403 unknown_workspace. With a person token, only the workspaces that person has access to are reachable (organization owners reach all of them); any other returns 403 workspace_access_denied.

Responses

HTTPDescription
200Activity summary.
400Bad request: malformed body, missing required field or a filter with an invalid value.
404Resource not found in the current organization.

audit-logs list​

List audit logs

kobana dashboards audit-logs list [OPTIONS]

GET /v1/audit_logs

Audit trail of the workspace and of the organization, newest first. The trail cannot be changed.

Query parameters

NameTypeRequiredDescription
pageintegernoPage (starts at 1). Default: 1.
per_pageintegernoItems per page. Default: 20. Maximum: 100.
sort_bystringnoSort field. Default depends on the resource.
sort_orderstringnoSort direction. Default: desc. Values: asc, desc.
user_idstringnoExact user identifier.
actionstringnoExact action (e.g. webhook.created).
resource_typestringnoExact resource type (e.g. webhook).
resource_idstringnoExact resource ID.
searchstringnoSubstring of the action, resource type, user ID or user e-mail, case-insensitive.
date_fromstringnoLower bound of created_at (ISO 8601 date or date-time).
date_tostringnoUpper bound of created_at (ISO 8601 date or date-time). A bare date covers the whole day (UTC).

Headers

NameTypeRequiredDescription
X-Workspace-IdstringnoWorkspace the call acts on: the id or the public_id shown under Workspaces on the dashboard. Inside the token's organization, data lives in workspaces. It may be omitted while the organization has a single workspace; with two or more, leaving it out returns 400 workspace_required. A workspace outside the organization returns 403 unknown_workspace. With a person token, only the workspaces that person has access to are reachable (organization owners reach all of them); any other returns 403 workspace_access_denied.

Responses

HTTPDescription
200A page of audit entries.
400Bad request: malformed body, missing required field or a filter with an invalid value.
404Resource not found in the current organization.

audit-logs get​

Get an audit log

kobana dashboards audit-logs get [ID] [OPTIONS]

GET /v1/audit_logs/{id}

Returns one audit entry with its previous and new values.

Path arguments: id

Headers

NameTypeRequiredDescription
X-Workspace-IdstringnoWorkspace the call acts on: the id or the public_id shown under Workspaces on the dashboard. Inside the token's organization, data lives in workspaces. It may be omitted while the organization has a single workspace; with two or more, leaving it out returns 400 workspace_required. A workspace outside the organization returns 403 unknown_workspace. With a person token, only the workspaces that person has access to are reachable (organization owners reach all of them); any other returns 403 workspace_access_denied.

Responses

HTTPDescription
200The audit entry.
404Resource not found in the current organization.