Kibotos
kibo 命令

kibo exposure

本页列出 kibo exposure 及其子命令的用法、示例与参数,由 kibo 的源码生成;说明文字与 kibo --help 相同,为英文。

Publish a port inside a Workspace as a public HTTPS URL.

本页的每个命令还接受全局参数 --endpoint、--json 与 --timeout,见 kibo CLI 参考。

子命令:

kibo exposure create

Publishes one HTTP port inside a running Workspace as an https:// URL anyone with the link can open. The port is read on the guest's loopback address, so a service bound to 127.0.0.1 works without changing anything inside the Workspace.

The URL is a random name under the deployment's Exposure domain. It stays the same across Workspace restarts, so it can be bookmarked or sent to someone, and it is not reused after the Exposure is revoked.

There is no access control: anyone who has the URL reaches the service. --ttl is required and bounds how long that stays true; the Exposure is also revoked when the Workspace stops or is deleted. WebSocket and server-sent events work over this URL; other protocols do not.

kibo exposure create [flags]

示例:

kibo exposure create --workspace ws-01k6… --port 8080 --ttl 2h
参数默认值说明
--command-id <key>idempotency key for this change; see kibo help command-ids
--ipv6Reach the port on ::1 instead of 127.0.0.1
--port <port>必填TCP port the service listens on inside the Workspace
-q, --quietprint only the IDs of the resources in the result
--ttl <duration>必填How long the URL stays live, for example 2h
--workspace <id>必填id of the Workspace whose port is published

kibo exposure get

Get an Exposure.

kibo exposure get <exposure-id> [flags]

kibo exposure list

List Exposures.

kibo exposure list [flags]

也可以写作 kibo exposure ls。

参数默认值说明
--page-size <number>maximum number of results on a page
--page-token <token>token from the Next line of the previous page
-q, --quietprint only the IDs of the resources in the result
--workspace <id>only Exposures of the Workspace with this id

kibo exposure revoke

Stop serving an Exposure.

kibo exposure revoke <exposure-id> [flags]
参数默认值说明
--command-id <key>idempotency key for this change; see kibo help command-ids

本页内容