v1

latestSwagger 2.0Apache 2.02026-07-13112149159.3 KB
Events

List Events

Returns a paginated list of events in the descending order of their occurrence. Optional query parameters may be used for filtering results

get/events

Query parameters

source_servicenamestring

Filter events by the originating service

source_hostidstring

Filter events by the originating host ID

event_typestring

Filter events by a prefix match on the event type (e.g. "user.image.")

resource_typestring

Filter events by the type of resource - tag, imageDigest, repository etc

resource_idstring

Filter events by the id of the resource

levelstring

Filter events by the level - INFO or ERROR

sincestring

Return events that occurred after the timestamp

beforestring

Return events that occurred before the timestamp

pageinteger

Pagination controls - return the nth page of results. Defaults to first page if left empty

limitinteger

Number of events in the result set. Defaults to 100 if left empty

Headers

x-anchore-accountstring

An account name to change the resource scope of the request to that account, if permissions allow (admin only)

Response

Paginated list of event records and the next token

next_pageboolean

Boolean flag, True indicates there are more events and False otherwise

item_countinteger

Number of events in this page

pageinteger

Page number of this result set