SSH Config
GET
CoderSessionTokenheader
Coder-Session-Token<token>OK
application/json- response
hostname_prefix?stringHostnamePrefix is the prefix we append to workspace names for SSH hostnames. Deprecated: use HostnameSuffix instead.
hostname_suffix?stringHostnameSuffix is the suffix to append to workspace names for SSH hostnames.
ssh_config_options?The samples read CODER_URL and CODER_SESSION_TOKEN: set up your environment.
curl -X GET \ "$CODER_URL/api/v2/deployment/ssh" \ -H "Coder-Session-Token: $CODER_SESSION_TOKEN"Example Response200
{ "hostname_prefix": "string", "hostname_suffix": "string", "ssh_config_options": { "property1": "string", "property2": "string" }}