呼叫 DescribeInstanceTypes 查詢執行個體規格清單。
調試
您可以在OpenAPI Explorer中直接運行該介面,免去您計算簽名的困擾。運行成功後,OpenAPI Explorer可以自動產生SDK程式碼範例。
調試
授權資訊
|
操作 |
存取層級 |
資源類型 |
條件關鍵字 |
關聯操作 |
|
ens:DescribeInstanceTypes |
get |
*全部資源。
|
無 | 無 |
請求參數
|
名稱 |
類型 |
必填 |
描述 |
樣本值 |
| InstanceType |
string |
否 |
執行個體規格。 |
ens.sn1.small |
返回參數
|
名稱 |
類型 |
描述 |
樣本值 |
|
object |
|||
| Code |
integer |
業務碼。呼叫成功返回 0,失敗返回錯誤碼。 |
0 |
| InstanceTypes |
object |
||
| InstanceType |
array<object> |
執行個體規格集合。 |
|
|
object |
規格清單資訊。 |
||
| CpuCoreCount |
integer |
vCPU 核心數目。 |
2 |
| InstanceTypeId |
string |
此參數暫時不用。 |
This parameter is not in use. |
| InstanceTypeName |
string |
執行個體規格名稱。 |
ens.xxx.small |
| MemorySize |
integer |
記憶體大小,單位:MB。 |
8192 |
| InstanceBandwidthRx |
integer |
1024 |
|
| InstanceBandwidthTx |
integer |
1024 |
|
| InstanceType |
string |
ens.sn1.small |
|
| RequestId |
string |
請求 ID。 |
D452D190-BADF-5D09-910D-599B96D42AAA |
樣本
正常返回樣本
JSON格式
{
"Code": 0,
"InstanceTypes": {
"InstanceType": [
{
"CpuCoreCount": 2,
"InstanceTypeId": "This parameter is not in use.",
"InstanceTypeName": "ens.xxx.small",
"MemorySize": 8192,
"InstanceBandwidthRx": 1024,
"InstanceBandwidthTx": 1024,
"InstanceType": "ens.sn1.small"
}
]
},
"RequestId": "D452D190-BADF-5D09-910D-599B96D42AAA"
}
錯誤碼
|
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 | InvalidParameter.%s | The specified field %s invalid. Please check it again. | |
| 400 | CallInterface | Call Interface Happen Error. |
訪問錯誤中心查看更多錯誤碼。
變更歷史
更多資訊,參考變更詳情。