endpoint

List endpoint events

<Info icon="fa-light fa-lock" className="permission-callout"> <div className="permission-callout__header"><span className="permission-callout__title"><span className="permission-callout__label">Required permissions</span> <span className="fern-docs-badge small blue subtle rounded-full permission-callout__beta">Beta</span></span> <span className="permission-callout__learn-more">[Learn more](/developers/api-guidelines/permissions#how-permissions-work)</span></div>

Endpoint.Event + List

<div className="permission-callout__roles"><span className="permission-callout__roles-label">Roles:</span> <Badge intent="info">Administrator</Badge> <Badge intent="info">User</Badge> <Badge intent="info">Observer</Badge></div> </Info>

Returns the list of events, filtered, sorted and paged according to query parameters.

<Info> A full list of events is found in section "Retrieve Event Types" (`/api/v1/event/type`). </Info> <Error> This API endpoint deviates from the specified conventions and may not return the same HTTP Codes as the higher layer call (`/api/v1/endpoint/{endpoint_id}`). In case the requested `{endpoint_id}` doesn't exist or is not accessible for the user, **HTTP 200** will be returned with empty **[]** as long as the provided `{endpoint_id}` is a number and all parameters are valid.

Please take that into consideration when building automation on top of the error behaviour of this endpoint. </Error>

get/api/v1/endpoint/{endpoint_id}/event

Request

  • Base URL: https://cdn.emnify.net
  • URL: https://cdn.emnify.net/api/v1/endpoint/{endpoint_id}/event
  • Auth: HTTP bearer

Path parameters

endpoint_idinteger required

Numeric ID of an endpoint

Query parameters

pageinteger

Current page number

per_pageinteger

Defines the number of items per page

sortstring

Sort properties according to a comma separated list of accepted fields. Valid fields are:

  • id - (event id)
  • timestamp - (event timestamp)
  • source - (event source)
  • severity - (event severity)
  • alert - (alert status)
  • organisation - (organisation name)
  • user - (user id)
  • endpoint - (endpoint name)
  • tags - (endpoint tags)
  • ip_address - (endpoint ip_address)
  • iccid - (sim iccid)
  • imsi - (sim imsi)
  • type - (event type)
qstring

Filter parameter in <filter>:<value> format. Multiple filters must be a comma-separated list of the following fields:

  • from (date, format YYYY-MM-DDTHH:mm:ssZ, only valid with until)
  • until (date, format YYYY-MM-DDTHH:mm:ssZ, only valid with from)
  • type (event_type, numerical)
  • source (event_type, numerical, e.g. 0 = Network), 1 = Policy Control, 2 = API)
  • severity (event_severity, numerical, e.g. 0 = Info, 1 = Warn), 2 = Critical)
  • alert (boolean, e.g. true, false)
  • description (event description, string)
  • organisation (organisation name, string)
  • user (user name, string)
  • endpoint (endpoint name, string)
  • tags (endpoint tags, string)
  • tag_id (endpoint tag ID, numerical, matches events whose endpoint has the tag. Tag IDs are listed in the endpoint's tag_assignments)
  • ip_address (endpoint IP address, valid IPv4/IPv6 address)
  • imei (endpoint imei, numerical string)
  • iccid (sim iccid, numerical string)
  • imsi (sim imsi, numerical string)
  • timestamp (date, format YYYY-MM-DDTHH:mm:ssZ, for querying events of 1 day, deprecated in future)
  • iccid_with_luhn (sim iccid with Luhn, numerical string)
  • network (endpoint network, string, e.g. Telekom)
  • rat (event pdp context rat type, numerical string, e.g. 6)
  • country (endpoint country, string, e.g. Germany)

Some filters can accept up to 6 values which must be separated by the pipe symbol (|) or url-encoded as (%7C):

  • iccid (q: iccid:1234567890123456789|8988303000123456789)
  • iccid_with_luhn (q: iccid_with_luhn:12345678901234567891|89883030001234567891)
  • endpoint (q: endpoint:example_endpoint_name|another_endpoint_name)
  • type (q: type:example_event_type|another_event_type)
  • network (q: network:example_network|another_network)
  • rat (q: rat:example_rat|another_rat)
  • country (q: country:example_country|another_country)
  • tag_id (q: tag_id:7|12, matches events whose endpoint has any of the tags)

Response

Successfully returned a list of events

timestampstring
alertboolean
descriptionstring
idinteger
event_typeApiV1EndpointEndpointIdEventGetResponsesContentApplicationJsonSchemaItemsEventType
event_sourceApiV1EndpointEndpointIdEventGetResponsesContentApplicationJsonSchemaItemsEventSource
event_severityApiV1EndpointEndpointIdEventGetResponsesContentApplicationJsonSchemaItemsEventSeverity
organisationApiV1EndpointEndpointIdEventGetResponsesContentApplicationJsonSchemaItemsOrganisation
endpointApiV1EndpointEndpointIdEventGetResponsesContentApplicationJsonSchemaItemsEndpoint
simApiV1EndpointEndpointIdEventGetResponsesContentApplicationJsonSchemaItemsSim
imsiApiV1EndpointEndpointIdEventGetResponsesContentApplicationJsonSchemaItemsImsi

Changes

No recorded changes to this operation across all 1 revision of this API.