创建exec
POST
https://nativecontainer.jdcloud-api.com/v1/regions/{regionId}/containers/{containerId}:execCreate
名称 | 类型 | 是否必需 | 默认值 | 描述 |
---|---|---|---|---|
regionId | String | True | Region ID | |
containerId | String | True | Container ID |
名称 | 类型 | 是否必需 | 默认值 | 描述 |
---|---|---|---|---|
command | String[ ] | True | 执行命令 | |
tty | Boolean | False | 执行命令是否添加tty |
名称 | 类型 | 描述 |
---|---|---|
result | Result | |
requestId | String |
名称 | 类型 | 描述 |
---|---|---|
execId | String |
返回码 | 描述 |
---|---|
200 | OK |
400 | Invalid parameter |
401 | Authentication failed |
404 | Not found |
500 | Internal server error |
503 | Service unavailable |