Open a timed expose
Opens a container port on node-ip:port for a limited time, only for the given IPs or CIDRs (default: the caller's IP). The agent closes it on time even if the panel is down. For local development and debugging.
Needs exposures.edit on the service (a grant on its project covers it). Available to MCP clients and the assistant.
seylo_session<token>application/json- body
serviceId*stringPanel-issued id.
^[a-z0-9]{16}$targetPort*integerPort the container listens on.
1 <= value <= 65535durationMinutes*integer5 <= value <= 1440allowedCidrs?array<>1 <= items <= 20port?integer1024 <= value <= 65535nodeId?stringPanel-issued id.
^[a-z0-9]{16}$Success.
application/json- response
id*stringPanel-issued id.
^[a-z0-9]{16}$serviceId*stringPanel-issued id.
^[a-z0-9]{16}$nodeId*stringPanel-issued id.
^[a-z0-9]{16}$host*stringport*|nulltargetPort*integerPort the container listens on.
1 <= value <= 65535allowedCidrs*array<>1 <= itemsexpiresAt*stringdate-timefirewallHint*string|nullopenedBy*createdAt*stringdate-timecurl -X POST 'https://example.com/api/v1/exposures.openTimed' \ -H 'Content-Type: application/json' \ -d '{ "serviceId": "string", "targetPort": 1, "durationMinutes": 5}'{ "id": "string", "serviceId": "string", "nodeId": "string", "host": "string", "port": 1, "targetPort": 1, "allowedCidrs": [ "string" ], "expiresAt": "2019-08-24T14:15:22Z", "firewallHint": "string", "openedBy": { "kind": "user", "name": "string" }, "createdAt": "2019-08-24T14:15:22Z"}Get a service's IP:port access GET
Returns the first-run IP:port access of a service (open, redirecting to the primary domain, or closed, with its auto-close settings) and its open timed exposes. Needs `exposures.view` on the service (a grant on its project covers it). Available to MCP clients and the assistant.
Set first-run IP:port access POST
Opens or closes the service's first-run IP:port access and sets whether it closes on its own (redirecting to the primary domain first) once a domain is live. Fields left out keep their value. Needs `exposures.edit` on the service (a grant on its project covers it). Available to MCP clients and the assistant.