UtilitiesPCAPs
getSiteFlowCaptureStatus
Get the current flow capture session status for the site. Returns an empty object when no session is active.
Authorization<token>
Preferred authentication method for automation and integrations. Send the API token in the HTTP Authorization header.
Format:
Authorization: Token {apitoken}
Notes:
- An API token generated for a specific admin has the same privileges as that admin
- An API token is automatically removed if it is not used for more than 90 days
- SSO admins cannot generate admin API tokens. Use organization API tokens when scoped Org/Site privileges are needed.
In: header
Path Parameters
site_id*string
Format
uuidResponse Body
curl -X GET "https://example.com/api/v1/sites/000000ab-00ab-00ab-00ab-0000000000ab/flow_capture"{ "capture_filter": { "dst_ip": "string", "dst_port": 0, "protocol": "tcp", "src_ip": "string", "src_port": 0 }, "duration": 0, "enabled": true, "expiry": 0, "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "invalid_switches": {}, "org_id": "a97c1b22-a4e9-411e-9bfd-d8695a0f9e61", "site_id": "441a1214-6928-442a-8e92-e1d34b8ec6a6", "switch_count": 0, "timestamp": 0}stopSitePacketCapture DELETE
Stop current capture
startSiteFlowCapture POST
Start a flow capture session on one or more online switches running JMA firmware. The same filter is applied to every switch. Only one packet or flow capture session can be active per site at a time. The captured flow records are streamed over websocket rather than returned in the HTTP response. #### Subscribe to Flow Capture outputs `WS /api-ws/v1/stream`