查詢可以使用的鏡像資源。
調試
您可以在OpenAPI Explorer中直接運行該介面,免去您計算簽名的困擾。運行成功後,OpenAPI Explorer可以自動產生SDK程式碼範例。
調試
授權資訊
|
操作 |
存取層級 |
資源類型 |
條件關鍵字 |
關聯操作 |
|
ens:DescribeImageInfos |
get |
*全部資源
|
無 | 無 |
請求參數
|
名稱 |
類型 |
必填 |
描述 |
樣本值 |
| OsType |
string |
否 |
系統類別型,僅支援傳單個類型。不傳值,預設查詢全部。 取值:
|
linux |
返回參數
|
名稱 |
類型 |
描述 |
樣本值 |
|
object |
|||
| Code |
integer |
返回碼。 |
0 |
| Images |
object |
||
| Image |
array<object> |
鏡像資訊集合。 |
|
|
array<object> |
圖片資訊列表。 |
||
| Description |
string |
鏡像描述資訊。 |
centos_6_08_64_20G_alibase_2017**** |
| ImageId |
string |
鏡像 ID。 |
centos_6_08_64_20G_alibase_2017**** |
| ImageSize |
string |
鏡像大小,單位:GiB。 |
20 |
| ImageVersion |
string |
鏡像版本。 |
6.8 |
| OSName |
string |
鏡像類型。 取值:centos、debian、ubuntu、windows。 |
centos |
| OSType |
string |
系統類別型。 |
linux |
| ComputeType |
string |
鏡像計算類型。取值:
枚舉值:
|
ens_vm |
| DiskDeviceMappings |
object |
||
| DiskDeviceMapping |
array<object> |
鏡像下包含雲端硬碟和快照的映射關係。 |
|
|
object |
鏡像下包含雲端硬碟和快照的映射關係。 |
||
| Type |
string |
磁碟類型。 系統硬碟:Sysem,資料盤:Data。 |
Data |
| Size |
string |
鏡像大小,單位:GB。 |
100 |
| Format |
string |
鏡像格式。 |
鏡像格式,取值 raw qcow2 |
| imageId |
string |
鏡像 ID。 |
i-test |
| RegionId |
string |
地區 ID。 |
cn-wulanchabu |
| RequestId |
string |
請求 ID。 |
5568A08C-10A9-47F3-902F-647298B463FB |
樣本
正常返回樣本
JSON格式
{
"Code": 0,
"Images": {
"Image": [
{
"Description": "centos_6_08_64_20G_alibase_2017****",
"ImageId": "centos_6_08_64_20G_alibase_2017****",
"ImageSize": "20",
"ImageVersion": "6.8",
"OSName": "centos",
"OSType": "linux",
"ComputeType": "ens_vm",
"DiskDeviceMappings": {
"DiskDeviceMapping": [
{
"Type": "Data",
"Size": "100",
"Format": "鏡像格式,取值\nraw\nqcow2",
"imageId": "i-test"
}
]
},
"RegionId": "cn-wulanchabu"
}
]
},
"RequestId": "5568A08C-10A9-47F3-902F-647298B463FB"
}
錯誤碼
|
HTTP status code |
錯誤碼 |
錯誤資訊 |
描述 |
|---|---|---|---|
| 400 | MissingParameter | The input parameter domainName that is mandatory for processing this request is not supplied. | |
| 400 | InstanceIdNotFound | The input parameter instancdId that is not found. | 指定的執行個體ID不存在。 |
| 400 | NoPermission | Permission denied. | |
| 400 | CallInterface | Call Interface Happen Error. | 介面調用出錯。 |
| 400 | InvalidParameter.%s | The specified field %s invalid. Please check it again. |
訪問錯誤中心查看更多錯誤碼。
變更歷史
更多資訊,參考變更詳情。