调用 DescribeDBProxyPriceDetail 接口查询实例数据库代理服务的计费信息。
同步请求。
参数 | 类型 | 是否必选 | 示例值 | 描述 |
---|---|---|---|---|
InstanceId | String | 是 | mysql-25651c34**** | 实例 ID。 |
ProxyNodeCustom | Object | 否 | 请参见请求示例。 | 实例的数据库代理配置。 |
ProjectName | String | 否 | default | 实例所属的项目。 |
参数 | 类型 | 示例值 | 描述 |
---|---|---|---|
ChargeItemPrices | Object[] | 请参见返回示例。 | 指定数据库代理配置的费用明细。 |
Currency | String | 人民币 | 货币类型。默认值为 人民币 。 |
DescribeDBProxyPriceDetailStr | Object | 请参见返回示例。 | 以字符串形式返回的价格信息。 |
DiscountPrice | Double | 0.3942 | 折扣金额。 |
OriginalPrice | Double | 0.876 | 原始价格。 |
PayablePrice | Double | 0.3942 | 应付费用。 |
POST /?Action=DescribeDBProxyPriceDetail&Version=2022-01-01 HTTP/1.1 Content-Type: application/json Host: rds.volcengineapi.com X-Date: 20211202T101010Z Authorization: HMAC-SHA256 Credential=AKLTN2I0MmFiNzMxNWE5NDgzMzk4MmVjMTVkODlkZTZ****/20211202/cn-beijing/rds_mysql/request,SignedHeaders=x-date, Signature=71d31fc7bcf990142851c9833c5656391486cda0ae2e0b8ada733b7c6458**** { "instanceid": "mysql-25651c34****", "ProxyNodeCustom": { "CpuNum": 6 } }
{ "ResponseMetadata": { "RequestId": "202506052002028A774423EE75A8635B4F-871992", "Action": "DescribeDBProxyPriceDetail", "Version": "2022-01-01", "Service": "rds_mysql", "Region": "cn-beijing2" }, "Result": { "ChargeItemPrices": [ { "ChargeItemKey": "rds.mysql.d1.proxy.rcu_cn-beijing", "ChargeItemType": "Proxy", "ChargeItemValue": 6, "DiscountPrice": 0.3942, "OriginalPrice": 0.876, "PayablePrice": 0.3942, "UnitPrice": 0 } ], "CouponAmount": 0, "Currency": "人民币", "DescribeDBProxyPriceDetailStr": { "ChargeItemPrices": [ { "ChargeItemKey": "rds.mysql.d1.proxy.rcu_cn-beijing2", "ChargeItemType": "Proxy", "ChargeItemValue": 6, "DiscountPrice": "0.3942", "OriginalPrice": "0.876", "PayablePrice": "0.3942" } ], "Currency": "人民币", "DiscountPrice": "0.3942", "OriginalPrice": "0.876", "PayablePrice": "0.3942" }, "DiscountPrice": 0.3942, "OriginalPrice": 0.876, "PayablePrice": 0.3942 } }
更多详情,请参见错误码。