功能介紹
查詢當(dāng)前區(qū)域彈性 云服務(wù)器 的OS兼容性列表。
調(diào)試
您可以在API Explorer中調(diào)試該接口。
URI
GET /v1/cloudimages/os_version
|
參數(shù) |
是否必選 |
參數(shù)類型 |
描述 |
|---|---|---|---|
|
tag |
否 |
String |
OS的標(biāo)簽。 根據(jù)標(biāo)簽值可以過濾查詢指定特性的OS信息。取值范圍:
不帶tag查詢條件則默認(rèn)查詢當(dāng)前region支持的所有的OS列表。 |
請求示例
- 查詢當(dāng)前region支持的OS列表
GET https://{Endpoint}/v1/cloudimages/os_version - 根據(jù)過濾條件查詢OS列表
GET https://{Endpoint}/v1/cloudimages/os_version?tag=kvm&tag=uefi
響應(yīng)消息
- 響應(yīng)參數(shù)
- 響應(yīng)樣例
STATUS CODE 200
[ { "platform": "SUSE", "version_list": [ { "platform": "SUSE", "os_version_key": "SUSE Linux Enterprise Server 15 64bit", "os_version": "SUSE Linux Enterprise Server 15 64bit", "os_bit": 64, "os_type": "Linux" }, { "platform": "SUSE", "os_version_key": "SUSE Linux Enterprise Server 12 SP3 64bit", "os_version": "SUSE Linux Enterprise Server 12 SP3 64bit", "os_bit": 64, "os_type": "Linux" } ] }, { "platform": "Other", "version_list": [ { "platform": "Other", "os_version_key": "Other(32 bit)", "os_version": "Other(32 bit)", "os_bit": 32, "os_type": "Linux" } ] } ]
返回值
- 正常
- 異常
返回值
說明
400 Bad Request
請求錯誤,具體返回錯誤碼請參見錯誤碼。
401 Unauthorized
鑒權(quán)失敗。
403 Forbidden
沒有操作權(quán)限。
404 Not Found
找不到資源。
500 Internal Server Error
服務(wù)內(nèi)部錯誤。
503 Service Unavailable
服務(wù)不可用。
