v1

latestSwagger 2.02026-07-17342313981.1 KB
K8s容器终端

连接到Pod终端

通过WebSocket连接到指定Pod的终端

get/k8s/cluster/{id}/namespaces/{namespaceName}/pods/{podName}/terminal

Path parameters

idinteger required

集群ID

namespaceNamestring required

命名空间名称

podNamestring required

Pod名称

Query parameters

containerNamestring

容器名称(默认为Pod中第一个容器)

commandstring

执行命令(默认为/bin/bash)

Headers

Authorizationstring required

Bearer 用户Token