按名称和类型查询镜像详情。自定义镜像可查看状态和来源,内置镜像可查看版本和标签。
调试
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。
调试
授权信息
|
操作 |
访问级别 |
资源类型 |
条件关键字 |
关联操作 |
|
odps:GetImage |
get |
*Image
|
无 | 无 |
请求语法
GET /api/v1/images/{name} HTTP/1.1
路径参数
|
名称 |
类型 |
必填 |
描述 |
示例值 |
| name |
string |
是 |
镜像名称。 |
example_python_image |
请求参数
|
名称 |
类型 |
必填 |
描述 |
示例值 |
| type |
string |
否 |
镜像类型。custom 为自定义镜像(默认),builtin 为内置镜像。 |
custom |
返回参数
|
名称 |
类型 |
描述 |
示例值 |
|
object |
PopResult |
||
| requestId |
string |
本次 API 请求的唯一标识。排查调用问题时可提供该标识。 |
0be3e0aa16667684362147582e038f |
| httpCode |
integer |
本次请求的 HTTP 状态码。 |
200 |
| errorCode |
string |
请求失败时返回的错误码。 |
InvalidArgument |
| errorMsg |
string |
请求失败时返回的错误信息。 |
The specified parameter is invalid. |
| data |
object |
镜像详情。 |
|
| name |
string |
镜像名称。 |
example_python_image |
| status |
string |
自定义镜像的状态。INITIALIZING 为初始化中,SUCCESS 为正常,FAILED 为失败,DELETING 为删除中。内置镜像省略此字段。 |
SUCCESS |
| size |
string |
自定义镜像的大小,字符串包含数值和单位。内置镜像省略此字段。 |
256MB |
| label |
string |
内置镜像的标签。自定义镜像省略此字段。 |
Python |
| createTime |
integer |
自定义镜像的创建时间,使用秒级 Unix 时间戳。内置镜像省略此字段。 |
1795132800 |
| version |
string |
内置镜像的版本。自定义镜像的标签可从镜像来源地址查看。 |
3.11 |
| repository |
string |
自定义镜像在容器镜像服务中的来源地址,包含命名空间、仓库和版本标签。 |
registry.cn-hangzhou.aliyuncs.com/example_namespace/example_python:1.0 |
| comment |
string |
镜像备注。 |
Python 数据处理环境 |
示例
正常返回示例
JSON格式
{
"requestId": "0be3e0aa16667684362147582e038f",
"httpCode": 200,
"errorCode": "InvalidArgument",
"errorMsg": "The specified parameter is invalid.",
"data": {
"name": "example_python_image",
"status": "SUCCESS",
"size": "256MB",
"label": "Python",
"createTime": 1795132800,
"version": "3.11",
"repository": "registry.cn-hangzhou.aliyuncs.com/example_namespace/example_python:1.0",
"comment": "Python 数据处理环境"
}
}
错误码
访问错误中心查看更多错误码。
变更历史
更多信息,参考变更详情。