Post workspace agent log source
POST
CoderSessionTokenheader
Coder-Session-Token<token>Log source request
application/json- body
display_name?stringicon?stringid?stringID is a unique identifier for the log source. It is scoped to a workspace agent, and can be statically defined inside code to prevent duplicate sources from being created for the same agent.
OK
application/json- response
created_at?stringFormat
date-timedisplay_name?stringicon?stringid?stringFormat
uuidworkspace_agent_id?stringFormat
uuidThe samples read CODER_URL and CODER_SESSION_TOKEN: set up your environment.
curl -X POST \ "$CODER_URL/api/v2/workspaceagents/me/log-source" \ -H "Coder-Session-Token: $CODER_SESSION_TOKEN" \ -H "Content-Type: application/json" \ -d '{ "display_name": "string", "icon": "string", "id": "string"}'Example Response200
{ "created_at": "2019-08-24T14:15:22Z", "display_name": "string", "icon": "string", "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "workspace_agent_id": "7ad2e618-fea7-4c1a-b70a-f501566a72f1"}