You need to enable JavaScript to run this app.
导航
DescribeDBInstancePriceDetail
最近更新时间:2024.10.11 16:59:29首次发布时间:2023.11.15 22:39:52

调用 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: 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
    }
}