Instances

Atomically update forwarded HTTP ports on an instance

Changed on

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.

patch/instances/{id}/ports

Request

  • Base URL
    https://api.thundercompute.com:8443/v1
  • Auth
    API key in header Authorization

Path parameters

idstring required

Instance ID (index)

Request body

add_portsinteger[]
remove_portsinteger[]

Response

OK

http_portsinteger[]
identifierstring required
instance_namestring required

Changes

    • breaking

      removed subschema #1 from the request body oneOf list

    • breaking

      the request's body type changed from no type to object

    • info

      added the new optional request property

    • info

      added the new optional request property