# Example request using curl curl -X GET http://coder-server:8080/api/v2/workspaces/{workspace}/port-share \ -H 'Accept: application/json' \ -H 'Coder-Session-Token: API_KEY'
GET /workspaces/{workspace}/port-share
workspace
path string(uuid) true Workspace ID Example responses
200 Response
{ "shares": [ { "agent_name": "string", "port": 0, "protocol": "http", "share_level": "owner", "workspace_id": "0967198e-ec7b-4c6b-b4d3-f71244cadbe9" } ] }
To perform this operation, you must be authenticated. Learn more.
Code samples# Example request using curl curl -X POST http://coder-server:8080/api/v2/workspaces/{workspace}/port-share \ -H 'Content-Type: application/json' \ -H 'Accept: application/json' \ -H 'Coder-Session-Token: API_KEY'
POST /workspaces/{workspace}/port-share
Body parameter
{ "agent_name": "string", "port": 0, "protocol": "http", "share_level": "owner" }
200 Response
{ "agent_name": "string", "port": 0, "protocol": "http", "share_level": "owner", "workspace_id": "0967198e-ec7b-4c6b-b4d3-f71244cadbe9" }
To perform this operation, you must be authenticated. Learn more.
Code samples# Example request using curl curl -X DELETE http://coder-server:8080/api/v2/workspaces/{workspace}/port-share \ -H 'Content-Type: application/json' \ -H 'Coder-Session-Token: API_KEY'
DELETE /workspaces/{workspace}/port-share
Body parameter
{ "agent_name": "string", "port": 0 }
To perform this operation, you must be authenticated. Learn more.
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4