调用PullImage来拉取镜像。
调试
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。
请求参数
名称 | 类型 | 是否必选 | 示例值 | 描述 |
---|---|---|---|---|
Action | String | 是 | PullImage |
系统规定参数。取值:PullImage。 |
ClusterId | String | 是 | ehpc-hz-nkKsP3**** |
集群ID。 |
Repository | String | 是 | centos |
仓库名。 |
ImageTag | String | 否 | latest |
镜像标签,如果不提供则默认为latest。 |
ContainerType | String | 否 | shifter |
镜像类型,默认值为shifter。 |
返回数据
名称 | 类型 | 示例值 | 描述 |
---|---|---|---|
RequestId | String | 29d3d9Ee-8eCB-5013-A1c2-1CeD19C6CfFe |
请求ID。 |
示例
请求示例
http(s)://[Endpoint]/?Action=PullImage
&ClusterId=ehpc-hz-nkKsP3CAnY
&Repository=centos
&<公共请求参数>
正常返回示例
XML
格式
HTTP/1.1 200 OK
Content-Type:application/xml
<PullImageResponse>
<requestId>29d3d9Ee-8eCB-5013-A1c2-1CeD19C6CfFe</requestId>
</PullImageResponse>
JSON
格式
HTTP/1.1 200 OK
Content-Type:application/json
{
"requestId" : "29d3d9Ee-8eCB-5013-A1c2-1CeD19C6CfFe"
}
错误码
HttpCode | 错误码 | 错误信息 | 描述 |
---|---|---|---|
400 | InvalidParams | The specified parameter %s is invalid. | 无效的参数:%s |
400 | NotEnabled | You have not enabled this service | 您的账户还未开通此服务 |
400 | InDebt | Your account has overdue payments. | 您的账户已欠费 |
400 | InvalidContainerType | Unsupported container type: %s. | 不支持的容器应用类型:%s |
500 | UnknownError | An unknown error occurred. | 未知错误,请您稍后再试,若还出现相同的错误请提交工单处理。 |
404 | LoginNotFound | The specified login node does not exist. | 指定的登录节点不存在 |
503 | ServiceUnavailable | The request has failed due to a temporary failure of the server | 请求失败,服务暂时不可用 |
406 | DbError | A database service error occurred. | 数据库请求失败 |
406 | AliyunError | An Alibaba Cloud product error occurred. | 阿里云产品错误 |
407 | NotAuthorized | You are not authorized by RAM for this request. | 此请求未获得RAM授权 |
访问错误中心查看更多错误码。