You can call DescribeAvailableResourceInfo to query the specifications of purchasable resources for instance creation.
Try it now
Test
RAM authorization
Action | Access level | Resource type | Condition key | Dependent action |
ens:DescribeAvailableResourceInfo | get | *All Resource
| None | None |
Request parameters
Parameter | Type | Required | Description | Example |
No parameters required.
Response elements
Element | Type | Description | Example |
object | |||
RequestId | string | The request ID. | 8629F679-B51D-4194-A1CC-5D8F504C362B |
| Images | object | ||
| Image | array<object> | The image information. | |
object | |||
ImageSize | integer | The size of the image. Unit: GB. | 20 |
ImageName | string | The name of the image. | centos_6_08_64_20G_a**** |
ImageId | string | The ID of the image. | centos_6_08_64_20G_a**** |
| SupportResources | object | ||
| SupportResource | array<object> | The specifications of the purchasable resources. | |
array<object> | |||
DataDiskMaxSize | integer | The maximum size of the data disk. Unit: GB. | 200 |
| BandwidthTypes | object | ||
| BandwidthType | array | The billing method for bandwidth. | |
string | The billing method.
| 95BandwidthByMonth | |
SystemDiskMinSize | integer | The minimum size of the system disk. Unit: GB. | 20 |
| EnsRegionIds | object | ||
| EnsRegionId | array | A list of ENS edge zone IDs. | |
string | A list of edge zones. | cn-chengdu-telecom-4 | |
| EnsRegionIdsExtends | object | ||
| EnsRegionId | array<object> | Additional information about the edge zones. | |
object | |||
EnsRegionId | string | The ID of the node. | cn-chengdu-telecom-4 |
EnName | string | The English name. This parameter is empty by default. | EnName |
Area | string | The region. | EastChina |
Name | string | The name of the edge zone. | China Telecom |
Province | string | The province. | Zhejiang |
Isp | string | The ISP. | unicom |
| InstanceSpeces | object | ||
| InstanceSpec | array | The instance type. | |
string | The instance type. | ens.se1.tiny | |
SystemDiskMaxSize | integer | The maximum size of the system disk. Unit: GiB. | 100 |
DataDiskMinSize | integer | The minimum size of the data disk. Unit: GiB. | 100 |
| Isp | object | ||
| Isp | array | The ISP. | |
string | The ISP. Valid values:
| { "Isp": [ "telecom" ] } |
Examples
Success response
JSON format
{
"RequestId": "8629F679-B51D-4194-A1CC-5D8F504C362B",
"Images": {
"Image": [
{
"ImageSize": 20,
"ImageName": "centos_6_08_64_20G_a****",
"ImageId": "centos_6_08_64_20G_a****"
}
]
},
"SupportResources": {
"SupportResource": [
{
"DataDiskMaxSize": 200,
"BandwidthTypes": {
"BandwidthType": [
"95BandwidthByMonth"
]
},
"SystemDiskMinSize": 20,
"EnsRegionIds": {
"EnsRegionId": [
"cn-chengdu-telecom-4"
]
},
"EnsRegionIdsExtends": {
"EnsRegionId": [
{
"EnsRegionId": "cn-chengdu-telecom-4",
"EnName": "EnName",
"Area": "EastChina",
"Name": "台州电信联通移动",
"Province": "浙江省",
"Isp": "unicom"
}
]
},
"InstanceSpeces": {
"InstanceSpec": [
"ens.se1.tiny"
]
},
"SystemDiskMaxSize": 100,
"DataDiskMinSize": 100,
"Isp": {
"Isp": [
"{\n \"Isp\": [\n \"telecom\"\n ]\n}"
]
}
}
]
}
}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.