Publish Cloud Computer Port
cloud_computer_port_publishExpose an HTTP application on a running Celesto Cloud computer through a public URL. The computer must be running with a guest image that supports public ports, and its application must listen on the guest port for the URL to serve traffic. Publishing creates a public route, or reuses an already-published one, so anyone with the URL can send requests to the application. Only publish endpoints intended for public traffic and protect sensitive endpoints in the application. Returns name, provider, route id, computer_id, port, url, status, and created_at. The url identifies the public route and status reports its publication state.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Computer id from create or list, or its display name from info. | |
| port | Yes | Guest port where the HTTP application listens; selects the public route to publish or remove. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | No | Published-port record id when present. | |
| url | No | Public HTTP application URL; reachability depends on route status and the guest application. | |
| name | Yes | Computer id or display name supplied to the call. | |
| port | Yes | Guest application port forwarded by the route. | |
| status | Yes | Publication state; published means the public route is enabled. | |
| provider | Yes | Always cloud for hosted computers. | |
| created_at | No | When the route was created (ISO-8601). | |
| computer_id | Yes | Id of the computer that owns this public route. |