云容器实例 CCI-进入容器执行命令:URI

时间:2023-12-01 17:06:48

URI

GET /api/v1/namespaces/{namespace}/pods/{name}/exec

表1 路径参数

参数

是否必选

参数类型

描述

name

String

name of the PodExecOptions

namespace

String

object name and auth scope, such as for teams and projects

表2 Query参数

参数

是否必选

参数类型

描述

command

String

Command is the remote command to execute. argv array. Not executed within a shell.

container

String

Container in which to execute the command. Defaults to only container if there is only one container in the pod.

stderr

Boolean

Redirect the standard error stream of the pod for this call. Defaults to true.

stdin

Boolean

Redirect the standard input stream of the pod for this call. Defaults to false.

stdout

Boolean

Redirect the standard output stream of the pod for this call. Defaults to true.

tty

Boolean

TTY if true indicates that a tty will be allocated for the exec call. Defaults to false.

support.huaweicloud.com/api-cci/connectCoreV1GetNamespacedPodExec.html