Documentation Reference REST API reference API: events
Reference For: developers
API: events
Operations of the events tag of the native REST API.
Events
GET /v1/events
Lists events, oldest first or with order=desc newest first; after takes the next cursor of the previous page. Events of deleted entities stay listed (with the entity name they were logged with) for callers with System.View on the root.
CLI kyvernon events list
Parameters
Name In Type Required Description targetquery string or nullOnly events on this target. recursivequery boolean or nullInclude descendants of target. eventTypequery string or nullComma-separated event types. userquery string or nullOnly this user. chainIdquery string or nullOnly this chain id. beginquery string or nullEvents at or after (RFC 3339). endquery string or nullEvents at or before (RFC 3339). minSeverityquery string or nullMinimum severity (info, warning, error). afterIdquery integer (int64) or nullCollector cursor: only events with id number greater than this. orderquery string or nullasc (default, oldest first) or desc (newest first).limitquery integer or nullMaximum items. afterquery string or nullCursor: the next of the previous page (in the same order).
Responses
POST /v1/events
Injects a typed event into the native event log (PostEvent).
CLI kyvernon events post --body <json>
Request body
application/json: PostEventRequest
Name Type Required Description attributesobjectExtra attributes. chainIdstring or nullCorrelation id; a new id is allocated when omitted. entityIdstring or nullOptional target inventory object id. eventTypestringyes Event type in vSphere style (GeneralUserEvent, EventEx, …). messagestring or nullFree-form message text (stored as message arg msg when set). messageIdstring or nullLocalisable message key; defaults to event.user when message is set, else event.posted. severitySeverityView or null
Responses
POST /v1/events/user
Appends a user event on an inventory entity (LogUserEvent).
CLI kyvernon events log <entity> <message>
Request body
application/json: LogUserEventRequest
Name Type Required Description entityIdstringyes Target inventory object id. messagestringyes Free-form message text shown to operators.
Responses
Guides
Previous API: datastores Next API: firewall
Version 0.1.