Call the CreateResourcePackage interface to create a resource package.
Asynchronous 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
|
EffectiveTimeType | String | Yes | Specified | Effective time type. Values:
|
EffectiveTime | String | No | 2025-08-30T09:00:00Z | When the effective time of the specified resource package is set to "Specified Time", that is, when the value of tip If the specified effective time is earlier than the current time, the whole - hour time before the current time will be taken as the effective time of the resource package. |
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 |
|---|---|---|---|
OrderId | String | Order2002000011757122272 | Configuration order number |
POST /?Action=CreateResourcePackage&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", "EffectiveTimeType": "Specified", "EffectiveTime": "2025-09-30T09:00:00Z", "ChargeInfo": { "Number": 1, "Period": 1, "PeriodUnit": "Month" } }
{ "ResponseMetadata": { "RequestId": "2025092223045219098175CFF5A8A0299E-ddbddb", "Action": "CreateResourcePackage", "Version": "2022-01-01", "Service": "rds_mysql", "Region": "cn-beijing" }, "Result": { "OrderId": "Order2002000011757122272" } }
For more details, refer to Error codes.