Call the DescribeResourcePackagePrice interface to query the purchase price of the resource package.
Synchronous request.
Name | Type | Required | Example | Description |
|---|---|---|---|---|
PackageType | String | Yes | StoragePackage | The type of the resource package. Currently, only the value StoragePackage is supported, which means a storage package. |
PackageSpec | String | Yes | 100 | Resource package specifications. If the value of PackageType is StoragePackage, the valid values for PackageSpec are as follows:
|
ChargeInfo | Object | Yes | Please refer to the request example. | The purchase duration of the resource package. |
ChargeType | String | Yes | PostPaid | Payment type. Value:
|
AutoRenew | Boolean | No | true | Whether to automatically renew upon expiration in the prepaid scenario. Value range:
tip
|
PeriodUnit | String | No | Month | The purchase cycle in the prepaid scenario. Value range:
tip
|
Period | Integer | No | 1 | The purchase duration in the prepaid scenario. The value range of this parameter depends on the value of PeriodUnit:
tip
|
Number | Integer | No | 1 | The number of instances purchased. The value range is 1~50. The default value is 1. tip
|
Name | Type | Example | Description |
|---|---|---|---|
OriginalPrice | Double | 120 | Original total price. |
DiscountPrice | Double | 120 | Total price after discount. |
PayablePrice | Double | 120 | Total payable price. |
Currency | String | Renminbi (RMB) | Currency unit. The default value is Renminbi. |
ChargeItemPrices | Object[] | Please refer to the return example. | Cost details of configuration items |
ChargeItemKey | String | rds.mysql.d1.1c2g_cn-guangzhou | The Key of the billing item. |
ChargeItemType | String | Proxy | Billing item names, with values:
|
ChargeItemValue | Long | 6 |
|
DiscountPrice | Double | 0.3942 | The discount amount for this billing item. |
OriginalPrice | Double | 0.876 | The original price of this billing item. |
PayablePrice | Double | 0.3942 | The payable fee for this billing item. |
Quantity | Integer | 2 | Number. |
HidePriceInfo | Boolean | false | Whether the price information is hidden. If set, the specific price will be replaced with
|
POST /?Action=DescribeResourcePackagePrice&Version=2022-01-01 HTTP/1.1 Content-Type: application/json Host: rds-mysql.cn-beijing.volcengineapi.com X-Date: 20211202T101010Z Authorization: HMAC-SHA256 Credential=AKLTN2I0MmFiNzMxNWE5NDgzMzk4MmVjMTVkODlkZTZ****/20211202/cn-beijing/rds_mysql/request,SignedHeaders=x-date, Signature=71d31fc7bcf990142851c9833c5656391486cda0ae2e0b8ada733b7c6458**** { "PackageType": "StoragePackage", "PackageSpec": "100", "ChargeInfo": { "PeriodUnit": "Month", "Period": 1, "Number": 2 } }
{ "ResponseMetadata": { "RequestId": "20250922224931B99C6E39ED68C0631967-9216c5", "Action": "DescribeResourcePackagePrice", "Version": "2022-01-01", "Service": "rds_mysql", "Region": "cn-beijing" }, "Result": { "ChargeItemPrices": [ { "ChargeItemKey": "rds.mysql.storage.pkg100", "ChargeItemType": "StoragePackage", "ChargeItemValue": 100, "DiscountPrice": 120, "OriginalPrice": 120, "PayablePrice": 120, "UnitPrice": 0 } ], "Currency": "", "DiscountPrice": 120, "HidePriceInfo": false, "OriginalPrice": 120, "PayablePrice": 120, "Quantity": 2 } }
For more details, refer to Error codes.