Returns a list of available instance types.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
ens:DescribeInstanceTypes |
get |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| InstanceType |
string |
No |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| Code |
integer |
The business code. A value of |
0 |
| InstanceTypes |
object |
||
| InstanceType |
array<object> |
A list of instance types. |
|
|
object |
The details of an instance type. |
||
| CpuCoreCount |
integer |
The number of vCPU cores. |
2 |
| InstanceTypeId |
string |
This parameter is not in use. |
This parameter is not in use. |
| InstanceTypeName |
string |
The instance type name. |
ens.xxx.small |
| MemorySize |
integer |
The memory size, in MB. |
8192 |
| InstanceBandwidthRx |
integer |
||
| InstanceBandwidthTx |
integer |
||
| InstanceType |
string |
||
| RequestId |
string |
The request ID. |
D452D190-BADF-5D09-910D-599B96D42AAA |
Examples
Success response
JSON format
{
"Code": 0,
"InstanceTypes": {
"InstanceType": [
{
"CpuCoreCount": 2,
"InstanceTypeId": "This parameter is not in use.",
"InstanceTypeName": "ens.xxx.small",
"MemorySize": 8192,
"InstanceBandwidthRx": 0,
"InstanceBandwidthTx": 0,
"InstanceType": ""
}
]
},
"RequestId": "D452D190-BADF-5D09-910D-599B96D42AAA"
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 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. | The specified instance ID does not exist. |
| 400 | NoPermission | Permission denied. | |
| 400 | InvalidParameter.%s | The specified field %s invalid. Please check it again. | |
| 400 | CallInterface | Call Interface Happen Error. | An error occurred when you call the operation. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.