@@ -1192,7 +1192,7 @@ curl -X GET http://coder-server:8080/api/v2/workspaceproxies \
1192
1192
"errors" : [" string" ],
1193
1193
"warnings" : [" string" ]
1194
1194
},
1195
- "status" : " reachable "
1195
+ "status" : " ok "
1196
1196
},
1197
1197
"updated_at" : " 2019-08-24T14:15:22Z" ,
1198
1198
"url" : " string" ,
@@ -1216,6 +1216,7 @@ Status Code **200**
1216
1216
| ` [array item] ` | array | false | | |
1217
1217
| ` » created_at ` | string(date-time) | false | | |
1218
1218
| ` » deleted ` | boolean | false | | |
1219
+ | ` » display_name ` | string | false | | |
1219
1220
| ` » icon ` | string | false | | |
1220
1221
| ` » id ` | string(uuid) | false | | |
1221
1222
| ` » name ` | string | false | | |
@@ -1233,7 +1234,7 @@ Status Code **200**
1233
1234
1234
1235
| Property | Value |
1235
1236
| -------- | -------------- |
1236
- | ` status ` | ` reachable ` |
1237
+ | ` status ` | ` ok ` |
1237
1238
| ` status ` | ` unreachable ` |
1238
1239
| ` status ` | ` unhealthy ` |
1239
1240
| ` status ` | ` unregistered ` |
@@ -1278,6 +1279,7 @@ curl -X POST http://coder-server:8080/api/v2/workspaceproxies \
1278
1279
{
1279
1280
"created_at" : " 2019-08-24T14:15:22Z" ,
1280
1281
"deleted" : true ,
1282
+ "display_name" : " string" ,
1281
1283
"icon" : " string" ,
1282
1284
"id" : " 497f6eca-6276-4993-bfeb-53cbbbba6f08" ,
1283
1285
"name" : " string" ,
@@ -1287,7 +1289,7 @@ curl -X POST http://coder-server:8080/api/v2/workspaceproxies \
1287
1289
"errors" : [" string" ],
1288
1290
"warnings" : [" string" ]
1289
1291
},
1290
- "status" : " reachable "
1292
+ "status" : " ok "
1291
1293
},
1292
1294
"updated_at" : " 2019-08-24T14:15:22Z" ,
1293
1295
"url" : " string" ,
@@ -1303,6 +1305,59 @@ curl -X POST http://coder-server:8080/api/v2/workspaceproxies \
1303
1305
1304
1306
To perform this operation, you must be authenticated. [ Learn more] ( authentication.md ) .
1305
1307
1308
+ ## Get workspace proxy
1309
+
1310
+ ### Code samples
1311
+
1312
+ ``` shell
1313
+ # Example request using curl
1314
+ curl -X GET http://coder-server:8080/api/v2/workspaceproxies/{workspaceproxy} \
1315
+ -H ' Accept: application/json' \
1316
+ -H ' Coder-Session-Token: API_KEY'
1317
+ ```
1318
+
1319
+ ` GET /workspaceproxies/{workspaceproxy} `
1320
+
1321
+ ### Parameters
1322
+
1323
+ | Name | In | Type | Required | Description |
1324
+ | ---------------- | ---- | ------------ | -------- | ---------------- |
1325
+ | ` workspaceproxy ` | path | string(uuid) | true | Proxy ID or name |
1326
+
1327
+ ### Example responses
1328
+
1329
+ > 200 Response
1330
+
1331
+ ``` json
1332
+ {
1333
+ "created_at" : " 2019-08-24T14:15:22Z" ,
1334
+ "deleted" : true ,
1335
+ "display_name" : " string" ,
1336
+ "icon" : " string" ,
1337
+ "id" : " 497f6eca-6276-4993-bfeb-53cbbbba6f08" ,
1338
+ "name" : " string" ,
1339
+ "status" : {
1340
+ "checked_at" : " 2019-08-24T14:15:22Z" ,
1341
+ "report" : {
1342
+ "errors" : [" string" ],
1343
+ "warnings" : [" string" ]
1344
+ },
1345
+ "status" : " ok"
1346
+ },
1347
+ "updated_at" : " 2019-08-24T14:15:22Z" ,
1348
+ "url" : " string" ,
1349
+ "wildcard_hostname" : " string"
1350
+ }
1351
+ ```
1352
+
1353
+ ### Responses
1354
+
1355
+ | Status | Meaning | Description | Schema |
1356
+ | ------ | ------------------------------------------------------- | ----------- | ------------------------------------------------------------ |
1357
+ | 200 | [ OK] ( https://tools.ietf.org/html/rfc7231#section-6.3.1 ) | OK | [ codersdk.WorkspaceProxy] ( schemas.md#codersdkworkspaceproxy ) |
1358
+
1359
+ To perform this operation, you must be authenticated. [ Learn more] ( authentication.md ) .
1360
+
1306
1361
## Delete workspace proxy
1307
1362
1308
1363
### Code samples
@@ -1346,3 +1401,70 @@ curl -X DELETE http://coder-server:8080/api/v2/workspaceproxies/{workspaceproxy}
1346
1401
| 200 | [ OK] ( https://tools.ietf.org/html/rfc7231#section-6.3.1 ) | OK | [ codersdk.Response] ( schemas.md#codersdkresponse ) |
1347
1402
1348
1403
To perform this operation, you must be authenticated. [ Learn more] ( authentication.md ) .
1404
+
1405
+ ## Update workspace proxy
1406
+
1407
+ ### Code samples
1408
+
1409
+ ``` shell
1410
+ # Example request using curl
1411
+ curl -X PATCH http://coder-server:8080/api/v2/workspaceproxies/{workspaceproxy} \
1412
+ -H ' Content-Type: application/json' \
1413
+ -H ' Accept: application/json' \
1414
+ -H ' Coder-Session-Token: API_KEY'
1415
+ ```
1416
+
1417
+ ` PATCH /workspaceproxies/{workspaceproxy} `
1418
+
1419
+ > Body parameter
1420
+
1421
+ ``` json
1422
+ {
1423
+ "display_name" : " string" ,
1424
+ "icon" : " string" ,
1425
+ "id" : " 497f6eca-6276-4993-bfeb-53cbbbba6f08" ,
1426
+ "name" : " string" ,
1427
+ "regenerate_token" : true
1428
+ }
1429
+ ```
1430
+
1431
+ ### Parameters
1432
+
1433
+ | Name | In | Type | Required | Description |
1434
+ | ---------------- | ---- | ---------------------------------------------------------------------- | -------- | ------------------------------ |
1435
+ | ` workspaceproxy ` | path | string(uuid) | true | Proxy ID or name |
1436
+ | ` body ` | body | [ codersdk.PatchWorkspaceProxy] ( schemas.md#codersdkpatchworkspaceproxy ) | true | Update workspace proxy request |
1437
+
1438
+ ### Example responses
1439
+
1440
+ > 200 Response
1441
+
1442
+ ``` json
1443
+ {
1444
+ "created_at" : " 2019-08-24T14:15:22Z" ,
1445
+ "deleted" : true ,
1446
+ "display_name" : " string" ,
1447
+ "icon" : " string" ,
1448
+ "id" : " 497f6eca-6276-4993-bfeb-53cbbbba6f08" ,
1449
+ "name" : " string" ,
1450
+ "status" : {
1451
+ "checked_at" : " 2019-08-24T14:15:22Z" ,
1452
+ "report" : {
1453
+ "errors" : [" string" ],
1454
+ "warnings" : [" string" ]
1455
+ },
1456
+ "status" : " ok"
1457
+ },
1458
+ "updated_at" : " 2019-08-24T14:15:22Z" ,
1459
+ "url" : " string" ,
1460
+ "wildcard_hostname" : " string"
1461
+ }
1462
+ ```
1463
+
1464
+ ### Responses
1465
+
1466
+ | Status | Meaning | Description | Schema |
1467
+ | ------ | ------------------------------------------------------- | ----------- | ------------------------------------------------------------ |
1468
+ | 200 | [ OK] ( https://tools.ietf.org/html/rfc7231#section-6.3.1 ) | OK | [ codersdk.WorkspaceProxy] ( schemas.md#codersdkworkspaceproxy ) |
1469
+
1470
+ To perform this operation, you must be authenticated. [ Learn more] ( authentication.md ) .
0 commit comments