云容器实例 CCI-进入容器执行命令:URI
URI
POST /api/v1/namespaces/{namespace}/pods/{name}/exec
参数 |
是否必选 |
参数类型 |
描述 |
---|---|---|---|
name |
是 |
String |
name of the PodExecOptions |
namespace |
是 |
String |
object name and auth scope, such as for teams and projects |
参数 |
是否必选 |
参数类型 |
描述 |
---|---|---|---|
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. |