Queries the specifications of 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 |
No parameters required.
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| Code |
integer |
The status code. If the request is successful, 0 is returned. If the request fails, a non-zero error code is returned. |
0 |
| InstanceTypes |
object |
||
| InstanceType |
array<object> |
Details about the instance types. |
|
|
object |
Specification list information. |
||
| CpuCoreCount |
integer |
The number of vCPUs. |
2 |
| InstanceTypeId |
string |
This parameter is unavailable. |
This parameter is temporarily unused. |
| InstanceTypeName |
string |
The name of the instance type. |
ens.xxx.small |
| MemorySize |
integer |
The memory size. Unit: MB. |
8192 |
| 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 temporarily unused.",
"InstanceTypeName": "ens.xxx.small",
"MemorySize": 8192
}
]
},
"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.