查詢可以使用的映像資源。
調試
您可以在OpenAPI Explorer中直接運行該介面,免去您計算簽名的困擾。運行成功後,OpenAPI Explorer可以自動產生SDK程式碼範例。
調試
授權資訊
|
操作 |
存取層級 |
資源類型 |
條件關鍵字 |
關聯操作 |
|
ens:DescribeImageInfos |
get |
*全部資源。
|
無 | 無 |
請求參數
|
名稱 |
類型 |
必填 |
描述 |
樣本值 |
| OsType |
string |
否 |
系統類型,僅支援傳入單一類型。未傳值時,預設查詢全部。 取值:
治理實測中,傳入 linux 或 Linux 均返回空清單,而省略該參數可返回 OSType 為 linux 的映像;依賴此篩選條件前請核對實際返回結果。 |
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 |
| ImageOwnerAlias |
string |
system |
|
| 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",
"ImageOwnerAlias": "system"
}
]
},
"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. | |
| 400 | NoPermission | Permission denied. | |
| 400 | CallInterface | Call Interface Happen Error. | |
| 400 | InvalidParameter.%s | The specified field %s invalid. Please check it again. |
訪問錯誤中心查看更多錯誤碼。
變更歷史
更多資訊,參考變更詳情。