文档

ListContainerImages - 查询本地镜像列表

更新时间:

调用ListContainerImages查询指定集群的本地镜像列表。

调试

您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。

授权信息

当前API暂无授权信息透出。

请求参数

名称类型必填描述示例值
ClusterIdstring

集群 ID。

您可以通过调用 ListClusters 获取集群 ID。

ehpc-hz-FYUr32****
ContainerTypestring

容器类型。固定值:singularity

singularity
PageNumberinteger

当前页码。

起始值:1

默认值:1

1
PageSizeinteger

每页显示的行数。取值范围:1~50

默认值:10

10

返回参数

名称类型描述示例值
object
PageSizeinteger

本页条目数。

1
PageNumberinteger

本页页码。

1
RequestIdstring

请求 ID。

04F0F334-1335-436C-A1D7-6C044FE7****
TotalCountinteger

列表条目总数。

1
DBInfostring

数据库信息。

mongodb://localhost/
Imagesobject []

镜像信息数组。

Typestring

镜像的容器类型。固定值:singularity

docker
Statusstring

镜像状态。

READY
UpdateDateTimestring

镜像更新时间。

2018-08-02T20:11:36
Repositorystring

仓库名称。

busybox
Tagstring

镜像标签。

latest
Systemstring

镜像的容器系统。

mycluster
ImageIdstring

镜像 ID。

centos_7_06_64_20G_alibase_2019071****

示例

正常返回示例

JSON格式

{
  "PageSize": 1,
  "PageNumber": 1,
  "RequestId": "04F0F334-1335-436C-A1D7-6C044FE7****",
  "TotalCount": 1,
  "DBInfo": "mongodb://localhost/",
  "Images": {
    "Images": [
      {
        "Type": "docker",
        "Status": "READY",
        "UpdateDateTime": "2018-08-02T20:11:36",
        "Repository": "busybox",
        "Tag": "latest",
        "System": "mycluster",
        "ImageId": "centos_7_06_64_20G_alibase_2019071****"
      }
    ]
  }
}

错误码

HTTP status code错误码错误信息描述
400InvalidParamsThe specified parameter %s is invalid.无效的参数:%s
400InvalidContainerTypeUnsupported container type: %s.不支持的容器应用类型:%s
404LoginNotFoundThe specified login node does not exist.指定的登录节点不存在
406AliyunErrorAn Alibaba Cloud product error occurred.阿里云产品错误
406DbErrorA database service error occurred.数据库请求失败
406ExecFailFailed to execute the command: %s.命令执行失败:%s
406AgentErrorThe agent service request failed.集群侧命令运行失败
407NotAuthorizedYou are not authorized by RAM for this request.此请求未获得RAM授权
500UnknownErrorAn unknown error occurred.未知错误
503ServiceUnavailableThe request has failed due to a temporary failure of the server请求失败,服务暂时不可用

访问错误中心查看更多错误码。

  • 本页导读 (1)
文档反馈