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 Markdown

PATCH/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

FieldTypeDescription
add_portsarray of integer
remove_portsarray of integer

Responses

200 · OK
FieldTypeDescription
http_portsarray of integer
identifierRequiredstring
instance_nameRequiredstring
400 · Bad Request
FieldTypeDescription
codeinteger
errorstring
messagestring
401 · Unauthorized
FieldTypeDescription
codeinteger
errorstring
messagestring
404 · Not Found
FieldTypeDescription
codeinteger
errorstring
messagestring
500 · Internal Server Error
FieldTypeDescription
codeinteger
errorstring
messagestring

Operation specification

The downloadable Markdown includes the published OpenAPI schema. Use the API origin provided by your compute account.