调用DescribeAvailableResourceInfo在创建实例时查询可购买资源的规格。
调试
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。
调试
授权信息
|
操作 |
访问级别 |
资源类型 |
条件关键字 |
关联操作 |
|
ens:DescribeAvailableResourceInfo |
get |
*全部资源
|
无 | 无 |
请求参数
|
名称 |
类型 |
必填 |
描述 |
示例值 |
当前API无需请求参数
返回参数
|
名称 |
类型 |
描述 |
示例值 |
|
object |
|||
| RequestId |
string |
请求 ID。 |
8629F679-B51D-4194-A1CC-5D8F504C362B |
| Images |
object |
||
| Image |
array<object> |
镜像信息。 |
|
|
object |
|||
| ImageSize |
integer |
镜像大小,单位:GB。 |
20 |
| ImageName |
string |
镜像名称。 |
centos_6_08_64_20G_a**** |
| ImageId |
string |
镜像 ID。 |
centos_6_08_64_20G_a**** |
| SupportResources |
object |
||
| SupportResource |
array<object> |
可购买的资源规格信息。 |
|
|
array<object> |
|||
| DataDiskMaxSize |
integer |
数据盘最大值,单位:GB。 |
200 |
| BandwidthTypes |
object |
||
| BandwidthType |
array |
带宽计费方式。 |
|
|
string |
计费方式。
|
95BandwidthByMonth |
|
| SystemDiskMinSize |
integer |
系统盘最小值,单位:GB。 |
20 |
| EnsRegionIds |
object |
||
| EnsRegionId |
array |
ENS 节点 ID 列表。 |
|
|
string |
节点列表。 |
cn-chengdu-telecom-4 |
|
| EnsRegionIdsExtends |
object |
||
| EnsRegionId |
array<object> |
节点补充信息。 |
|
|
object |
|||
| EnsRegionId |
string |
节点 ID。 |
cn-chengdu-telecom-4 |
| EnName |
string |
英文名称,默认为空。 |
EnName |
| Area |
string |
地域。 |
EastChina |
| Name |
string |
节点名称。 |
台州电信联通移动 |
| Province |
string |
省份。 |
浙江省 |
| Isp |
string |
运营商信息。 |
unicom |
| InstanceSpeces |
object |
||
| InstanceSpec |
array |
实例规格。 |
|
|
string |
实例规格。 |
ens.se1.tiny |
|
| SystemDiskMaxSize |
integer |
系统盘最大值,单位:GiB。 |
100 |
| DataDiskMinSize |
integer |
数据盘最小值,单位:GiB。 |
100 |
| Isp |
object |
||
| Isp |
array |
运营商。 |
|
|
string |
运营商信息,取值如下所示:
|
{ "Isp": [ "telecom" ] } |
示例
正常返回示例
JSON格式
{
"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}"
]
}
}
]
}
}
错误码
|
HTTP status code |
错误码 |
错误信息 |
描述 |
|---|---|---|---|
| 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. | 接口调用出错。 |
| 400 | NoPermission | Permission denied. | |
| 400 | InvalidParameter.%s | The specified field %s invalid. Please check it again. |
访问错误中心查看更多错误码。
变更历史
更多信息,参考变更详情。