调用DescribeImage查询指定集群本地镜像信息。

调试

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

请求参数

名称 类型 是否必选 示例值 描述
Action String DescribeImage

系统规定参数。取值:DescribeImage

ClusterId String ehpc-hz-FYUr32****

集群ID。

Repository String repo1

仓库名。

ImageTag String latest

镜像标签。默认值:latest

ContainerType String singularity

容器类型。取值:singularity

返回数据

名称 类型 示例值 描述
ImageInfo Struct

镜像信息。

ImageId String 353506****

镜像ID。

Repository String hello-world

仓库名。

Status String READY

镜像状态。

System String mycluster

容器系统。

Tag String latest

镜像标签。

Type String docker

镜像类型。可能值:

  • shifter
  • docker
UpdateDateTime String 2018-08-02T20:11:36

最后一次更新镜像的时间。

RequestId String 04F0F334-1335-436C-A1D7-6C044FE73368

请求ID。

示例

请求示例

https://ehpc.cn-hangzhou.aliyuncs.com/?Action=DescribeImage
&ClusterId=ehpc-hz-FYUr32****
&Repository=repo1
&<公共请求参数>

正常返回示例

XML格式

<DescribeImageResponse>
      <RequestId>04F0F334-1335-436C-A1D7-6C044FE73368</RequestId>
      <ImageInfo>
            <System>mycluster</System>
            <Type>docker</Type>
            <Status>READY</Status>
            <ImageId>353506****</ImageId>
            <UpdateDateTime>2018-08-02T20:11:36</UpdateDateTime>
            <Repository>hello-world</Repository>
            <Tag>latest</Tag>
      </ImageInfo>
</DescribeImageResponse>

JSON格式

{
    "RequestId": "04F0F334-1335-436C-A1D7-6C044FE73368",
    "ImageInfo": {
        "System": "mycluster",
        "Type": "docker",
        "Status": "READY",
        "ImageId": "353506****",
        "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 请求失败,服务暂时不可用

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