调用DescribeAvailableResource接口查询AnalyticDB MySQL数仓版(3.0)集群的指定可用区资源。
调试
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。
请求参数
名称 | 类型 | 是否必选 | 示例值 | 描述 |
---|---|---|---|---|
RegionId | String | 是 | cn-hangzhou |
地域ID.您可以调用DescribeRegions查看。 |
ZoneId | String | 否 | cn-hangzhou-h |
可用区ID。您可以调用DescribeRegions查看。 |
ChargeType | String | 否 | PostPaid |
付费类型,取值说明:
|
Action | String | 是 | DescribeAvailableResource |
系统规定参数。取值:DescribeAvailableResource。 |
AcceptLanguage | String | 否 | zh-CN |
返回值的语言,取值说明:
|
返回数据
名称 | 类型 | 示例值 | 描述 |
---|---|---|---|
RegionId | String | cn-hangzhou |
地域ID。 |
RequestId | String | 1AD222E9-E606-4A42-BF6D-8A4442913CEF |
请求ID。 |
AvailableZoneList | Array of AvailableZone |
支持的可用区列表。 |
|
ZoneId | String | cn-hangzhou-h |
可用区ID。 |
SupportedMode | Array of SupportedMode |
支持的模式列表。 |
|
Mode | String | flexible |
支持的模式,取值说明:
|
SupportedSerialList | Array of SupportedSerialList |
支持的系列列表。 |
|
Serial | String | mixed_storage |
支持的系列,取值说明:
|
SupportedFlexibleResource | Array of SupportedFlexibleResource |
弹性模式支持的资源列表。 |
|
StorageType | String | hdd |
磁盘类型,取值说明:
|
SupportedComputeResource | Array of String | 32Core128GB |
支持的计算资源。 |
SupportedStorageResource | Array of String | 无 |
不涉及。 |
SupportedElasticIOResource | Object |
支持的弹性IO资源。 |
|
Step | String | 1 |
步长。 |
MinCount | String | 0 |
最小值。 |
MaxCount | String | 200 |
最大值。 |
SupportedInstanceClassList | Array of SupportedInstanceClass |
预留模式支持的资源列表。 |
|
InstanceClass | String | C32 |
支持的规格。 |
Tips | String | C32 |
规格的描述。 |
SupportedNodeCountList | Array of SupportedNodeCount |
支持的计算节点数。 |
|
StorageSize | Array of String | 100 |
支持的存储大小,单位GB。 |
NodeCount | Object |
支持的节点数。 |
|
Step | String | 1 |
步长。 |
MinCount | String | 1 |
最小值。 |
MaxCount | String | 200 |
最大值。 |
SupportedExecutorList | Array of SupportedExecutor |
不涉及。 |
|
NodeCount | Object |
节点数详情。 |
|
Step | String | 无 |
不涉及。 |
MinCount | String | 无 |
不涉及。 |
MaxCount | String | 无 |
不涉及。 |
示例
请求示例
http(s)://adb.aliyuncs.com/?RegionId=cn-hangzhou
&ZoneId=cn-hangzhou-h
&ChargeType=PostPaid
&Action=DescribeAvailableResource
&AcceptLanguage=zh-CN
&公共请求参数
正常返回示例
XML
格式
HTTP/1.1 200 OK
Content-Type:application/xml
<DescribeAvailableResourceResponse>
<RegionId>cn-hangzhou</RegionId>
<RequestId>1AD222E9-E606-4A42-BF6D-8A4442913CEF</RequestId>
<AvailableZoneList>
<ZoneId>cn-hangzhou-h</ZoneId>
<SupportedMode>
<Mode>flexible</Mode>
<SupportedSerialList>
<Serial>mixed_storage</Serial>
<SupportedFlexibleResource>
<StorageType>hdd</StorageType>
<SupportedComputeResource>32Core128GB</SupportedComputeResource>
<SupportedElasticIOResource>
<Step>1</Step>
<MinCount>0</MinCount>
<MaxCount>200</MaxCount>
</SupportedElasticIOResource>
</SupportedFlexibleResource>
<SupportedInstanceClassList>
<InstanceClass>C32</InstanceClass>
<Tips>C32</Tips>
<SupportedNodeCountList>
<StorageSize>100</StorageSize>
<NodeCount>
<Step>1</Step>
<MinCount>1</MinCount>
<MaxCount>200</MaxCount>
</NodeCount>
</SupportedNodeCountList>
</SupportedInstanceClassList>
</SupportedSerialList>
</SupportedMode>
</AvailableZoneList>
</DescribeAvailableResourceResponse>
JSON
格式
HTTP/1.1 200 OK
Content-Type:application/json
{
"RegionId": "cn-hangzhou",
"RequestId": "1AD222E9-E606-4A42-BF6D-8A4442913CEF",
"AvailableZoneList": [
{
"ZoneId": "cn-hangzhou-h",
"SupportedMode": [
{
"Mode": "flexible",
"SupportedSerialList": [
{
"Serial": "mixed_storage",
"SupportedFlexibleResource": [
{
"StorageType": "hdd",
"SupportedComputeResource": [
"32Core128GB"
],
"SupportedElasticIOResource": {
"Step": "1",
"MinCount": "0",
"MaxCount": "200"
}
}
],
"SupportedInstanceClassList": [
{
"InstanceClass": "C32",
"Tips": "C32",
"SupportedNodeCountList": [
{
"StorageSize": [
"100"
],
"NodeCount": {
"Step": "1",
"MinCount": "1",
"MaxCount": "200"
}
}
],
}
]
}
]
}
]
}
]
}
错误码
访问错误中心查看更多错误码。