Ports
The CLI exposes this resource as previews. See the
SDK reference for released client methods.
dedalus machines previews create \
--machine-id <machine_id> \
--port 3000 \
--protocol https \
--visibility public
Creates a URL that proxies to a port inside the machine. Creation can return wake_in_progress; retrieve the preview by preview_id until its status is ready, then use the API-returned url. Treat closed, expired, and failed as terminal errors.
Parameters
machine_id · string · required
The machine that runs the service.
port · integer · required
The internal port your service listens on.
protocol · string
Public protocol for the exposed URL.
visibility · string
Who can use the URL: public, org, or private.
Manage exposed ports
dedalus machines previews list --machine-id <machine_id>
dedalus machines previews retrieve --machine-id <machine_id> --preview-id <preview_id>
dedalus machines previews delete --machine-id <machine_id> --preview-id <preview_id>
Parameters
machine_id · string · required
The machine that owns the exposed port.
preview_id · string · required
The preview resource to retrieve or delete.
