Events

Get Event

Lookup an event by its event ID

get/events/{eventId}

Path parameters

eventIdstring required

Event ID of the event for lookup

Headers

x-anchore-accountstring

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

Response

Single event record

generated_uuidstring
created_atstring date-time

Example response

{
  "generated_uuid": "generated_uuid",
  "created_at": "2000-01-23T04:56:07.000+00:00",
  "event": {
    "resource": {
      "user_id": "user_id",
      "id": "id",
      "type": "type"
    },
    "level": "level",
    "details": "{}",
    "source": {
      "base_url": "base_url",
      "hostid": "hostid",
      "servicename": "servicename",
      "request_id": "request_id"
    },
    "type": "type",
    "category": "category",
    "message": "message",
    "timestamp": "2000-01-23T04:56:07.000+00:00"
  }
}

Changes

Changed in 2 of the 5 revisions of this API.611

  • 38e5705e0b2131See the full diff
    • the event response's property type/format changed from / to object/ for status 200

      response-property-type-changed

    • the event/resource response's property type/format changed from / to object/ for status 200

      response-property-type-changed

    • the event/source response's property type/format changed from / to object/ for status 200

      response-property-type-changed

    • added the optional property event/category to the response with the 200 status

      response-optional-property-added

    This revision also has 6 changes that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog

    • the event response's property type/format changed from object/ to / for status 200

      response-property-type-changed

    • the event/resource response's property type/format changed from object/ to / for status 200

      response-property-type-changed

    • the event/source response's property type/format changed from object/ to / for status 200

      response-property-type-changed

    • removed the optional property event/category from the response with the 200 status

      response-optional-property-removed

    This revision also has 75 changes that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog