Skip to content
Skip to Content
Coder Docs

Get workspace proxy

GET
/api/v2/workspaceproxies/{workspaceproxy}

Authorization

CoderSessionToken
headerCoder-Session-Token<token>

Path Parameters

workspaceproxy*string

Proxy ID or name

Formatuuid

Response Body

OK

application/json
  1. response
created_at?string
Formatdate-time
deleted?boolean
derp_enabled?boolean
derp_only?boolean
display_name?string
healthy?boolean
icon_url?string
id?string
Formatuuid
name?string
path_app_url?string

PathAppURL is the URL to the base path for path apps. Optional unless wildcard_hostname is set. E.g. https://us.example.com

status?

Status is the latest status check of the proxy. This will be empty for deleted proxies. This value can be used to determine if a workspace proxy is healthy and ready to use.

updated_at?string
Formatdate-time
version?string
wildcard_hostname?string

WildcardHostname is the wildcard hostname for subdomain apps. E.g. *.us.example.com E.g. *--suffix.au.example.com Optional. Does not need to be on the same domain as PathAppURL.

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

curl -X GET \	"$CODER_URL/api/v2/workspaceproxies/{workspaceproxy}" \	-H "Coder-Session-Token: $CODER_SESSION_TOKEN"
Example Response200
{  "created_at": "2019-08-24T14:15:22Z",  "deleted": true,  "derp_enabled": true,  "derp_only": true,  "display_name": "string",  "healthy": true,  "icon_url": "string",  "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",  "name": "string",  "path_app_url": "string",  "status": {    "checked_at": "2019-08-24T14:15:22Z",    "report": {      "errors": [        "string"      ],      "warnings": [        "string"      ]    },    "status": "ok"  },  "updated_at": "2019-08-24T14:15:22Z",  "version": "string",  "wildcard_hostname": "string"}