查询E-HPC产品支持的自定义和共享的镜像列表。
调试
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。
调试
授权信息
|
操作 |
访问级别 |
资源类型 |
条件关键字 |
关联操作 |
|
ehpc:ListCustomImages |
*全部资源
|
无 | 无 |
请求参数
|
名称 |
类型 |
必填 |
描述 |
示例值 |
| ImageOwnerAlias |
string |
否 |
镜像来源。取值范围:
|
self |
| BaseOsTag |
string |
否 |
基础镜像标签,仅管控节点使用。 |
CentOS_7.2_64 |
| InstanceType |
string |
否 |
指定实例规格。如果不指定实例规格,则默认查询所有实例规格支持的镜像列表。 |
ecs.n1.tiny |
| ClusterId |
string |
否 |
集群 ID。
|
ehpc-hz-FYUr32**** |
返回参数
|
名称 |
类型 |
描述 |
示例值 |
|
object |
|||
| RequestId |
string |
请求 ID。 |
04F0F334-1335-436C-A1D7-6C044FE7**** |
| Images |
object |
||
| ImageInfo |
array<object> |
E-HPC 支持的自定义镜像和共享镜像的列表。 |
|
|
array<object> |
|||
| Status |
string |
说明
该参数未开放使用。 |
Available |
| PostInstallScript |
string |
说明
该参数未开放使用。 |
example.sh |
| Description |
string |
镜像描述。 |
ExampleDescription |
| Size |
integer |
镜像大小。单位:GiB |
40 |
| ImageOwnerAlias |
string |
镜像类型。可能值:
|
self |
| ImageName |
string |
镜像名称。 |
CHESS5V5.0.27 |
| SkuCode |
string |
说明
该参数未开放使用。 |
ECS |
| PricingCycle |
string |
说明
该参数未开放使用。 |
Month |
| ImageId |
string |
镜像 ID。 |
m-bp181x855551ww5yq**** |
| ProductCode |
string |
说明
该参数未开放使用。 |
cmjj028279 |
| Uid |
string |
说明
该参数未开放使用。 |
127**** |
| BaseOsTag |
object |
基础镜像标签。 |
|
| Platform |
string |
操作系统平台。可能值:
|
CentOS |
| OsTag |
string |
镜像标签。 |
CentOS_7.2_64 |
| Version |
string |
操作系统版本。 |
7.2 |
| Architecture |
string |
操作系统架构。可能值:
|
i386 |
| OsTag |
object |
E-HPC 支持的操作系统镜像。 |
|
| Platform |
string |
操作系统平台。 |
CentOS |
| OsTag |
string |
镜像标签。 |
CentOS_7.2_64 |
| Version |
string |
操作系统版本。 |
7.2 |
| Architecture |
string |
操作系统架构。可能值:
|
x86_64 |
| BaseOsTag |
string |
基础镜像标签。 |
CentOS_7.2_64 |
示例
正常返回示例
JSON格式
{
"RequestId": "04F0F334-1335-436C-A1D7-6C044FE7****",
"Images": {
"ImageInfo": [
{
"Status": "Available",
"PostInstallScript": "example.sh",
"Description": "ExampleDescription",
"Size": 40,
"ImageOwnerAlias": "self",
"ImageName": "CHESS5V5.0.27",
"SkuCode": "ECS",
"PricingCycle": "Month",
"ImageId": "m-bp181x855551ww5yq****",
"ProductCode": "cmjj028279",
"Uid": "127****",
"BaseOsTag": {
"Platform": "CentOS",
"OsTag": "CentOS_7.2_64",
"Version": "7.2",
"Architecture": "i386"
},
"OsTag": {
"Platform": "CentOS",
"OsTag": "CentOS_7.2_64",
"Version": "7.2",
"Architecture": "x86_64",
"BaseOsTag": "CentOS_7.2_64"
}
}
]
}
}
错误码
|
HTTP status code |
错误码 |
错误信息 |
描述 |
|---|---|---|---|
| 500 | UnknownError | An unknown error occurred. | 未知错误 |
| 404 | ImageNotFound | The specified image does not exist. | 指定的镜像不存在,请您检查该参数是否正确。 |
| 503 | ServiceUnavailable | The request has failed due to a temporary failure of the server | 请求失败,服务暂时不可用 |
| 406 | EcsError | An error occurred while calling the ECS API operation. | ECS API调用出错. %s |
| 406 | DbError | A database service error occurred. | 数据库请求失败 |
| 407 | NotAuthorized | You are not authorized by RAM for this request. | 此请求未获得RAM授权 |
访问错误中心查看更多错误码。
变更历史
更多信息,参考变更详情。