Queries the instance specifications that you can purchase.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
ens:DescribeInstanceSpec |
get |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
No parameters required.
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| BandwidthLimit |
integer |
The bandwidth limit for a single instance. Unit: Mbit/s. |
0 |
| Code |
integer |
The returned service code. A value of 0 indicates that the operation was successful. |
0 |
| DataDiskMaxSize |
integer |
The maximum capacity of a data disk. Unit: GB. |
20015 |
| DataDiskMinSize |
integer |
The minimum capacity of a data disk. Unit: GB. |
0 |
| InstanceSpecs |
object |
||
| InstanceSpec |
array<object> |
The information about instance specifications. |
|
|
object |
|||
| Core |
string |
The number of CPU cores. |
1 |
| DisplayName |
string |
The display name of the instance type. |
Compute-optimized1C2G |
| InstanceType |
string |
The type of the instance. |
ens.sn1.stiny |
| Memory |
string |
The memory size. Unit: MB. |
2048 |
| RequestId |
string |
The request ID. |
1ECC937A-AE0E-4626-BE51-DED1D6D1C888 |
| SystemDiskMaxSize |
integer |
The maximum capacity of the system disk. Unit: GiB. |
80 |
Examples
Success response
JSON format
{
"BandwidthLimit": 0,
"Code": 0,
"DataDiskMaxSize": 20015,
"DataDiskMinSize": 0,
"InstanceSpecs": {
"InstanceSpec": [
{
"Core": "1",
"DisplayName": "Compute-optimized1C2G",
"InstanceType": "ens.sn1.stiny",
"Memory": "2048"
}
]
},
"RequestId": "1ECC937A-AE0E-4626-BE51-DED1D6D1C888",
"SystemDiskMaxSize": 80
}
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 | CallInterface | Call Interface Happen Error. | An error occurred when you call the operation. |
| 400 | InvalidParameter.%s | The specified field %s invalid. Please check it again. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.