调取DescribeSpecification接口获取规格信息。
使用说明
本接口仅适用于存储预留模式AnalyticDB PostgreSQL版实例。
QPS限制
本接口的单用户QPS限制默认为1000次/秒。超过限制,API调用会被限流,这可能会影响您的业务,请合理调用。
调试
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。
请求参数
名称 | 类型 | 是否必选 | 示例值 | 描述 |
---|---|---|---|---|
Action | String | 是 | DescribeSpecification |
系统规定参数。取值:DescribeSpecification。 |
DBInstanceId | String | 否 | gp-bp*************** |
存储预留模式的实例ID。 说明 您可以调用DescribeDBInstances接口查看目标地域下所有的AnalyticDB PostgreSQL实例的详情,包括实例ID。
|
StorageType | String | 是 | SSD |
存储类型。取值说明:
|
CpuCores | Integer | 是 | 1 |
CPU核数。 |
TotalNodeNum | Integer | 是 | 2 |
Segment数量。 |
返回数据
名称 | 类型 | 示例值 | 描述 |
---|---|---|---|
StorageNotice | Array of StorageNotice |
计算组存储信息。 |
|
Value | String | 2 CPU Cores/16GB Memory/160GB SSD Storage |
计算组存储信息。 |
Text | String | 2 CPU Cores/16GB Memory/160GB SSD Storage |
计算组存储信息。 |
RequestId | String | 2EC38F35-C2D3-56A1-A49E-61********** |
请求ID。 |
DBInstanceClass | Array of DBInstanceClass |
Segment规格信息。 |
|
Value | String | 1x1C SSD |
Segment规格值。 |
Text | String | gpdb.group.segsdx1 |
Segment规格码。 |
DBInstanceGroupCount | Array of DBInstanceGroupCount |
计算组信息。 |
|
Value | String | 2 |
计算组数量。 |
Text | String | 2 |
计算组数量。 |
示例
请求示例
http(s)://gpdb.aliyuncs.com/?Action=DescribeSpecification
&StorageType=SSD
&CpuCores=1
&TotalNodeNum=2
&公共请求参数
正常返回示例
XML
格式
HTTP/1.1 200 OK
Content-Type:application/xml
<DescribeSpecificationResponse>
<StorageNotice>
<Value>2 CPU Cores/16GB Memory/160GB SSD Storage</Value>
<Text>2 CPU Cores/16GB Memory/160GB SSD Storage</Text>
</StorageNotice>
<RequestId>2EC38F35-C2D3-56A1-A49E-61**********</RequestId>
<DBInstanceClass>
<Value>gpdb.group.segsdx1</Value>
<Text>1x1C SSD</Text>
</DBInstanceClass>
<DBInstanceGroupCount>
<Value>2</Value>
<Text>2</Text>
</DBInstanceGroupCount>
</DescribeSpecificationResponse>
JSON
格式
HTTP/1.1 200 OK
Content-Type:application/json
{
"StorageNotice" : [ {
"Value" : "2 CPU Cores/16GB Memory/160GB SSD Storage",
"Text" : "2 CPU Cores/16GB Memory/160GB SSD Storage"
} ],
"RequestId" : "2EC38F35-C2D3-56A1-A49E-61**********",
"DBInstanceClass" : [ {
"Value" : "gpdb.group.segsdx1",
"Text" : "1x1C SSD"
} ],
"DBInstanceGroupCount" : [ {
"Value" : "2",
"Text" : "2"
} ]
}
错误码
访问错误中心查看更多错误码。