ListContainerImages - 查询本地镜像列表

更新时间: 2023-09-05 10:41:26

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

调试

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

调试

授权信息

下表是API对应的授权信息,可以在RAM权限策略语句的Action元素中使用,用来给RAM用户或RAM角色授予调用此API的权限。具体说明如下:

  • 操作:是指具体的权限点。
  • 访问级别:是指每个操作的访问级别,取值为写入(Write)、读取(Read)或列出(List)。
  • 资源类型:是指操作中支持授权的资源类型。具体说明如下:
    • 对于必选的资源类型,用背景高亮的方式表示。
    • 对于不支持资源级授权的操作,用全部资源表示。
  • 条件关键字:是指云产品自身定义的条件关键字。
  • 关联操作:是指成功执行操作所需要的其他权限。操作者必须同时具备关联操作的权限,操作才能成功。
操作访问级别资源类型条件关键字关联操作
ehpc:ListContainerImagesREAD
  • acs:ehpc:{#regionId}:{#accountId}:*

请求参数

名称类型必填描述示例值
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请求失败,服务暂时不可用

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

阿里云首页 弹性高性能计算E-HPC 相关技术圈