Logs

Workspaces Policies Decision Logs List

List policy decision logs.

Request

gethttps://api.cloudsmith.io/v2/workspaces/{workspace}/policies/decision_logs
Path params
workspace
string
required
Query params
correlation_id
string
Filter by `correlation_id`.
ended_after
string
Filter by `ended_at`. This operates as an inclusive lower bound (greater than or equal to).
ended_before
string
Filter by `ended_at`. This operates as an exclusive upper bound (less than).
match
boolean
Filter by whether the policy matched the package.
package
string
Filter by package identifier (`slug_perm`).
package_format
string
Filter by package format.
page
integer
A page number within the paginated result set.
page_size
integer
Number of results to return per page.
policy
string
Filter by policy identifier (`slug_perm`).
repository
string
Filter by repository identifier (`slug_perm`).
sort
string
A comma-separated string of fields to sort by. Legal fields are: `started_at`, `ended_at`. Descending order can be expressed by prepending `-` to a field name.
started_after
string
Filter by `started_at`. This operates as an inclusive lower bound (greater than or equal to).
started_before
string
Filter by `started_at`. This operates as an exclusive upper bound (less than).

Response

Responses

Response body

object

object

results
array of objects
required