Skip to content
Skip to Content
Coder Docs

Get agent firewall session logs

GET
/api/v2/agent-firewall/sessions/{id}/logs

Authorization

CoderSessionToken
headerCoder-Session-Token<token>

Path Parameters

id*string

Agent firewall session ID

Formatuuid

Query Parameters

seq_after?integer

Inclusive lower bound on sequence number

seq_before?integer

Exclusive upper bound on sequence number

limit?integer

Maximum number of logs to return (default 100)

Response Body

OK

application/json
  1. response
results?array<>

The samples read CODER_URL and CODER_SESSION_TOKEN: set up your environment.

curl -X GET \	"$CODER_URL/api/v2/agent-firewall/sessions/{id}/logs" \	-H "Coder-Session-Token: $CODER_SESSION_TOKEN"
Example Response200
{  "results": [    {      "allowed": true,      "captured_at": "2019-08-24T14:15:22Z",      "created_at": "2019-08-24T14:15:22Z",      "detail": "string",      "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",      "matched_rule": "string",      "method": "string",      "proto": "string",      "sequence_number": 0,      "session_id": "1ffd059c-17ea-40a8-8aef-70fd0307db82"    }  ]}