Skip to content
Skip to Content
Coder Docs

Get agent firewall session by ID

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

Authorization

CoderSessionToken
headerCoder-Session-Token<token>

Path Parameters

id*string

Agent firewall session ID

Formatuuid

Response Body

OK

application/json
  1. response
confined_process?string
id?string
Formatuuid
owner_id?string
Formatuuid
started_at?string
Formatdate-time
workspace_id?string
Formatuuid

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

curl -X GET \	"$CODER_URL/api/v2/agent-firewall/sessions/{id}" \	-H "Coder-Session-Token: $CODER_SESSION_TOKEN"
Example Response200
{  "confined_process": "string",  "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",  "owner_id": "8826ee2e-7933-4665-aef2-2393f84a0d05",  "started_at": "2019-08-24T14:15:22Z",  "workspace_id": "0967198e-ec7b-4c6b-b4d3-f71244cadbe9"}