Queries the resources that can be created.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
ens:DescribeAvailableResource |
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 returned service code. 0 indicates that the request was successful. |
0 |
| Images |
object |
||
| Image |
array<object> |
The details of the images. |
|
|
object |
|||
| ImageId |
string |
The ID of the image. |
centos_6_08_64_20G_alibase_20171208 |
| ImageName |
string |
The name of the image. |
centos_6_08_64_20G_alibase_**** |
| RequestId |
string |
The ID of the request. This is a common parameter. Each request has a unique ID. You can use this ID to troubleshoot issues. |
473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E |
| SupportResources |
object |
||
| SupportResource |
array<object> |
The specifications of resources that you can purchase. |
|
|
object |
|||
| DataDiskSize |
string |
The size of the data disk. Unit: GB. |
500 |
| EnsRegionId |
string |
The ID of the edge node. |
cn-beijing-cmcc |
| InstanceSpec |
string |
The specifications of the resource plan. |
ens.sn1.stiny |
| SupportResourcesCount |
string |
The number of resources that you can purchase. |
9 |
| SystemDiskSize |
string |
The size of the system disk. Unit: GiB. |
20 |
Examples
Success response
JSON format
{
"Code": 0,
"Images": {
"Image": [
{
"ImageId": "centos_6_08_64_20G_alibase_20171208",
"ImageName": "centos_6_08_64_20G_alibase_****"
}
]
},
"RequestId": "473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E",
"SupportResources": {
"SupportResource": [
{
"DataDiskSize": "500",
"EnsRegionId": "cn-beijing-cmcc",
"InstanceSpec": "ens.sn1.stiny",
"SupportResourcesCount": "9",
"SystemDiskSize": "20"
}
]
}
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | MissingParameter | The input parameters that is mandatory for processing this request is not supplied. | |
| 400 | InstanceNotExists | The user have no instances. | |
| 400 | CallInterface | Call Interface Happen Error. | An error occurred when you call the operation. |
| 400 | NoPermission | Permission denied. | |
| 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.