调用ListContainerImages查询指定集群的本地镜像列表。
调试
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。
请求参数
名称 | 类型 | 是否必选 | 示例值 | 描述 |
---|---|---|---|---|
Action | String | 是 | ListContainerImages |
系统规定参数。取值:ListContainerImages |
ClusterId | String | 是 | ehpc-hz-FYUr32**** |
集群ID。 |
ContainerType | String | 否 | singularity |
容器类型。取值:singularity |
PageNumber | Integer | 否 | 1 |
当前页码。 起始值:1 默认值:1 |
PageSize | Integer | 否 | 10 |
每页显示的行数。取值范围:1~50 默认值:10 |
返回数据
名称 | 类型 | 示例值 | 描述 |
---|---|---|---|
DBInfo | String | mongodb://localhost/ |
数据库信息。 |
Images | Array of Images |
镜像信息数组。 |
|
Images | |||
ImageId | String | centos_7_06_64_20G_alibase_2019071**** |
镜像ID。 |
Repository | String | hello-world |
仓库名称。 |
Status | String | READY |
镜像状态。 |
System | String | mycluster |
镜像的容器系统。 |
Tag | String | latest |
镜像标签。 |
Type | String | docker |
镜像的容器类型。可能值:
|
UpdateDateTime | String | 2018-08-02T20:11:36 |
镜像更新时间。 |
PageNumber | Integer | 1 |
本页页码。 |
PageSize | Integer | 1 |
本页条目数。 |
RequestId | String | 04F0F334-1335-436C-A1D7-6C044FE73368 |
请求ID。 |
TotalCount | Integer | 1 |
列表条目总数。 |
示例
请求示例
https://ehpc.cn-hangzhou.aliyuncs.com/?Action=ListContainerImages
&ClusterId=ehpc-hz-FYUr32****
&<公共请求参数>
正常返回示例
XML
格式
<ListContainerImagesResponse>
<RequestId>04F0F334-1335-436C-A1D7-6C044FE73368</RequestId>
<TotalCount>1</TotalCount>
<PageNumber>1</PageNumber>
<PageSize>1</PageSize>
<DBInfo>mongodb://localhost/</DBInfo>
<Images>
<ImageInfo>
<System>mycluster</System>
<Type>docker</Type>
<Status>READY</Status>
<ImageId>centos_7_06_64_20G_alibase_2019071****</ImageId>
<UpdateDateTime>2018-08-02T20:11:36</UpdateDateTime>
<Repository>hello-world</Repository>
<Tag>latest</Tag>
</ImageInfo>
</Images>
</ListContainerImagesResponse>
JSON
格式
{
"RequestId": "04F0F334-1335-436C-A1D7-6C044FE73368",
"TotalCount": 1,
"PageNumber": 1,
"PageSize": 1,
"DBInfo": "mongodb://localhost/",
"Images": {
"ImageInfo": [
{
"System": "mycluster",
"Type": "docker",
"Status": "READY",
"ImageId": "centos_7_06_64_20G_alibase_2019071****",
"UpdateDateTime": "2018-08-02T20:11:36",
"Repository": "hello-world",
"Tag": "latest"
}
]
}
}
错误码
HttpCode | 错误码 | 错误信息 | 描述 |
---|---|---|---|
503 | ServiceUnavailable | The request has failed due to a temporary failure of the server | 请求失败,服务暂时不可用 |
访问错误中心查看更多错误码。