调用 DescribeDBInstancePriceDetail 接口查询实例价格详情。
同步请求。
参数 | 类型 | 是否必选 | 示例值 | 描述 |
---|---|---|---|---|
NodeInfo | Object[] | 是 | 请参见请求示例。 | 实例规格配置。Primary 节点有且只有 1 个,Secondary 节点有且只有 1 个,Read-Only 节点可选 0~10 个。 |
StorageType | String | 是 | LocalSSD | 实例存储类型。取固定值 LocalSSD (本地 SSD 盘)。 |
StorageSpace | Integer | 是 | 100 | 实例存储空间。取值范围:[20, 3000],单位为 GB,步长为 10GB。 |
ChargeInfo | Object | 是 | {
"ChargeType": "PostPaid"
} | 付费方式。 |
参数 | 类型 | 示例值 | 描述 |
---|---|---|---|
ChargeItemPrices | Object[] | 请参见返回示例。 | 费用明细。 |
Currency | String | 人民币 | 货币单位。 |
DiscountPrice | Double | 1.125 | 实例折扣价。 |
InstanceQuantity | Integer | 3 | 实例数量。 |
OriginalPrice | Double | 1.125 | 实例原价。 |
PayablePrice | Double | 1.125 | 实例应付价格。 |
POST /?Action=DescribeDBInstancePriceDetail&Version=2022-01-01 HTTP/1.1 Content-Type: application/json Host: open.volcengineapi.com X-Date: 20231002T101010Z Authorization: HMAC-SHA256 Credential=AKLTN2I0MmFiNzMxNWE5NDgzMzk4MmVjMTVkODlkZTZ****/20211202/cn-beijing/rds_postgresql/request,SignedHeaders=x-date, Signature=71d31fc7bcf990142851c9833c5656391486cda0ae2e0b8ada733b7c6458**** { "ChargeInfo": { "ChargeType": "PostPaid", "Number": 4 }, "StorageType": "LocalSSD", "StorageSpace": 100, "NodeInfo": [ { "ZoneId": "cn-beijing-a", "NodeSpec": "rds.postgres.1c2g", "NodeType": "Primary", "NodeOperateType": "Create" }, { "ZoneId": "cn-beijing-a", "NodeSpec": "rds.postgres.1c2g", "NodeType": "Secondary", "NodeOperateType": "Create" }, { "ZoneId": "cn-beijing-a", "NodeSpec": "rds.postgres.1c2g", "NodeType": "ReadOnly", "NodeOperateType": "Create" } ] }
{ "ResponseMetadata": { "RequestId": "20240321203800455D01FD2EA9F8DBDB22-973e03", "Action": "DescribeDBInstancePriceDetail", "Version": "2022-01-01", "Service": "rds_postgresql", "Region": "cn-beijing" }, "Result": { "ChargeItemPrices": [ { "ChargeItemKey": "rds.pg.d1.1c2g", "ChargeItemType": "Primary", "ChargeItemValue": 1, "DiscountPrice": 0.057499999999999996, "OriginalPrice": 0.25, "PayablePrice": 0.057499999999999996 }, { "ChargeItemKey": "rds.pg.d1.1c2g", "ChargeItemType": "Secondary", "ChargeItemValue": 1, "DiscountPrice": 0.057499999999999996, "OriginalPrice": 0.25, "PayablePrice": 0.057499999999999996 }, { "ChargeItemKey": "rds.pg.d1.1c2g", "ChargeItemType": "ReadOnly", "ChargeItemValue": 1, "DiscountPrice": 0.057499999999999996, "OriginalPrice": 0.25, "PayablePrice": 0.057499999999999996 }, { "ChargeItemKey": "rds.pg.d1.localssd", "ChargeItemType": "Storage", "ChargeItemValue": 100, "DiscountPrice": 0.08625, "NodeNumPerInstance": 3, "OriginalPrice": 0.375, "PayablePrice": 0.08625 } ], "Currency": "人民币", "DiscountPrice": 1.035, "InstanceQuantity": 4, "OriginalPrice": 4.5, "PayablePrice": 1.035 } }