API reference
Atomically update forwarded HTTP ports on an instance
Atomically add and remove forwarded HTTP ports on a running instance in a single transaction. Body: {"add_ports": [8080], "remove_ports": [3000]}. Adds are deduplicated and removing ports that are not currently forwarded is a no-op. Each forwarded port is reachable at https://-.thundercompute.net.
View MarkdownPATCH/instances/{id}/ports
Atomically add and remove forwarded HTTP ports on a running instance in a single transaction. Body: `{"add_ports": [8080], "remove_ports": [3000]}`. Adds are deduplicated and removing ports that are not currently forwarded is a no-op. Each forwarded port is reachable at https://<uuid>-<port>.thundercompute.net.
Parameters
id· path- Instance ID (index)
Request body
application/json
| Field | Type | Description |
|---|---|---|
add_ports | array of integer | |
remove_ports | array of integer |
Responses
200 · OK
| Field | Type | Description |
|---|---|---|
http_ports | array of integer | |
identifierRequired | string | |
instance_nameRequired | string |
400 · Bad Request
| Field | Type | Description |
|---|---|---|
code | integer | |
error | string | |
message | string |
401 · Unauthorized
| Field | Type | Description |
|---|---|---|
code | integer | |
error | string | |
message | string |
404 · Not Found
| Field | Type | Description |
|---|---|---|
code | integer | |
error | string | |
message | string |
500 · Internal Server Error
| Field | Type | Description |
|---|---|---|
code | integer | |
error | string | |
message | string |
Operation specification
The downloadable Markdown includes the published OpenAPI schema. Use the API origin provided by your compute account.