searchSiteDeviceEvents

GET https://{{host}}/api/v1/sites/:site_id/devices/events/search

Filter Options

ParameterTypeDescription
device_typestringap, switch, gateway
macstringdevice mac
modelstringdevice model
textstringevent message
timestampstringevent time
typestringsee [Event Types Definition]
last_bystringReturn last/recent event for passed in field (e.g. port_id)

RESPONSES

status: OK

{"results":[{"timestamp":1685566764.144,"org_id":"98272e44-d31d-4e9a-b52d-18ae2183446e","site_id":"b60a57e3-dd74-4da3-af12-02987a141665","port_id":"xe-2/2/2","type":"SW_PORT_UP","model":"EX4300-48MP","device_type":"switch","text":"SNMP_TRAP_LINK_UP: ifIndex 894, ifAdminStatus up(1), ifOperStatus up(1), ifName xe-2/2/2","version":"21.4R3-S3.4","mac":"c042d0f52a00"}],"total":234266}