Skip to content
Skip to Content
Coder Docs

Get connection info for workspace agent

GET
/api/v2/workspaceagents/{workspaceagent}/connection

Authorization

CoderSessionToken
headerCoder-Session-Token<token>

Path Parameters

workspaceagent*string

Workspace agent ID

Formatuuid

Response Body

OK

application/json
  1. response
derp_force_websockets?boolean
derp_map?
disable_direct_connections?boolean
hostname_suffix?string

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

curl -X GET \	"$CODER_URL/api/v2/workspaceagents/{workspaceagent}/connection" \	-H "Coder-Session-Token: $CODER_SESSION_TOKEN"
Example Response200
{  "derp_force_websockets": true,  "derp_map": {    "homeParams": {      "regionScore": {        "property1": 0,        "property2": 0      }    },    "omitDefaultRegions": true,    "regions": {      "property1": {        "avoid": true,        "embeddedRelay": true,        "nodes": [          {            "canPort80": true,            "certName": "string",            "derpport": 0,            "forceHTTP": true,            "hostName": "string",            "insecureForTests": true,            "ipv4": "string",            "ipv6": "string",            "name": "string",            "regionID": 0,            "stunonly": true,            "stunport": 0,            "stuntestIP": "string"          }        ],        "regionCode": "string",        "regionID": 0,        "regionName": "string"      },      "property2": {        "avoid": true,        "embeddedRelay": true,        "nodes": [          {            "canPort80": true,            "certName": "string",            "derpport": 0,            "forceHTTP": true,            "hostName": "string",            "insecureForTests": true,            "ipv4": "string",            "ipv6": "string",            "name": "string",            "regionID": 0,            "stunonly": true,            "stunport": 0,            "stuntestIP": "string"          }        ],        "regionCode": "string",        "regionID": 0,        "regionName": "string"      }    }  },  "disable_direct_connections": true,  "hostname_suffix": "string"}