You need to enable JavaScript to run this app.
导航

DescribeDBInstancePriceDetail

最近更新时间2024.03.21 20:42:46

首次发布时间2023.11.15 22:39:52

调用 DescribeDBInstancePriceDetail 接口查询实例价格详情。

请求类型

同步请求。

请求参数

名称类型是否必选示例值描述
NodeInfoArray of NodeInfoObject请参见请求示例实例规格配置。Primary 节点有且只有 1 个,Secondary 节点有且只有 1 个,Read-Only 节点可选 0~10 个。关于 NodeInfo 的更多详情,请参见数据结构
StorageTypeStringLocalSSD实例存储类型。取值固定为 LocalSSD(本地 SSD 盘)。
StorageSpaceInteger100实例存储空间。取值范围:[20, 3000],单位为 GB,步长为 10GB。

ChargeInfo

ChargeInfoObject

{
"ChargeType": "PostPaid"
}

付费信息。关于 ChargeInfo 的更多详情,请参见数据结构

返回参数

名称类型示例值描述
ChargeItemPricesArray of ChargeItemPriceObject请参见返回示例费用明细。关于 ChargeItemPrices 的更多详情,请参见数据结构
CurrencyString人民币货币单位。
DiscountPriceDouble1.125实例折扣价。
InstanceQuantityInteger3实例数量。
OriginalPriceDouble1.125实例原价。
PayablePriceDouble1.125实例应付价格。

请求示例

POST /?Action=DescribeDBInstancePriceDetail&Version=2022-01-01 HTTP/1.1
Content-Type: application/json
Host: rds.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
    }
}