文档

DescribeImage - 查询本地单个镜像信息

更新时间:

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

调试

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

授权信息

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

请求参数

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

集群 ID。

ehpc-hz-FYUr32****
Repositorystring

仓库名。

repo1
ImageTagstring

镜像标签。默认值:latest

latest
ContainerTypestring

容器类型。取值:singularity

singularity

返回参数

名称类型描述示例值
object
RequestIdstring

请求 ID。

04F0F334-1335-436C-A1D7-6C044FE73368
ImageInfoobject

镜像信息。

Typestring

镜像类型。可能值:

  • shifter
  • docker
docker
Statusstring

镜像状态。

READY
UpdateDateTimestring

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

2018-08-02T20:11:36
Repositorystring

仓库名。

hello-world
Tagstring

镜像标签。

latest
Systemstring

容器系统。

mycluster
ImageIdstring

镜像 ID。

353506****

示例

正常返回示例

JSON格式

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

错误码

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.数据库请求失败
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)
文档反馈