You need to enable JavaScript to run this app.
Elastic Compute Service

Elastic Compute Service

Copy page
Download PDF
Reserved storage capacity
PurchaseReservedStorageCapacity - Purchase reserved storage capacity package
Copy page
Download PDF
PurchaseReservedStorageCapacity - Purchase reserved storage capacity package
Use the PurchaseReservedStorageCapacity interface to purchase a reserved storage capacity package.​
Instructions​
  • The reserved storage capacity package can only offset the pay-as-you-go cloud disk.​
  • Only the cloud disks in the same region and availability zone as the reserved storage capacity package can be offset.​
  • It can only offset the cloud disk bills of the same specification as the reserved storage capacity package. For example, a reserved storage capacity package of ESSD PL0 specification cannot offset the cloud disk bill of ESSD FlexPL specification.​
Debugging​
API Explorer
You can initiate calls online through API Explorer without paying attention to the signature generation process and quickly obtain the call results.
​
request parameters​
The following lists request parameters specific to this interface and some common parameters. For more information, see Public Parameters.​
Action string required Example value: PurchaseReservedStorageCapacity​
The action to perform. Value: PurchaseReservedStorageCapacity.​
​
Version string required Example: 2020-04-01​
The version of the API is: 2020-04-01.​
​
ReservedStorageCapacityName string Optional Example value: RSC​
Name of the reserved storage capacity package.​
​
ZoneId string Optional Example value: cn-beijing-a​
The availability zone where the reserved storage capacity package is located.​
tip​
The default region for the reserved storage capacity package is the Region specified in the request, i.e., the Region in the Header.​
​
VolumeType string Optional Example value: ESSD_PL0​
Specifications for the reserved storage capacity in cloud volumes, are defined as follows:​
  • ESSD_PL0: Extreme-Speed SSD volume, PL0 specification​
  • ESSD_FlexPL: Extreme-Speed SSD volume, FlexPL specification​
​
PeriodUnit string optional Example: monthly​
The purchase duration unit for the reserved storage capacity package only supports the value "monthly," indicating that the purchase duration is measured in months.​
​
ClientToken string Optional Example value: 333456899ff****​
Ensure request idempotence. The client generates a unique parameter value automatically to ensure uniqueness across different requests, preventing duplicate operations when the client retries multiple times due to API timeouts or internal server errors.​
tip​
Only supports ASCII characters and cannot exceed 64 characters.​
​
Period integer Optional Example value: 1​
The number of months to purchase for the reserved storage capacity package ranges from 1 to 36.​
​
ReservedCapacity integer Optional Example: 50​
Reserved storage capacity package size, in GiB/hour.​
tip​
For detailed information on the deduction rules of the reserved storage capacity package, please refer to Reserved Storage Capacity Package.​
​
EffectiveAt string Optional Example value: 2025-11-26 21:44:05​
Effective time for Reserved Storage Capacity. Follow the ISO 8601 date format. Default is empty, which means it takes effect immediately. If a non-integer-hour effective time is specified, it takes effect at the corresponding whole hour. For instance, if specified time is 2024-11-25 21:50:05, the actual effective time would be 2024-11-25 21:00:00.​
​
​
​
Return parameters​
Below are the return parameters specific to this API. For more information, see Response Structure.​
OrderNumber string Example: Order738395864274233****​
Order number.​
​
ReservedStorageCapacityId string Example value: rsc-3vpnts78dk3x35cj****​
Reserved storage capacity package ID.​
​
​
​
Request example​
​
GET /?Action=PurchaseReservedStorageCapacity&Version=2020-04-01&Period=1&PeriodUnit=monthly&ZoneId=cn-beijing-a&ReservedStorageCapacityName=RSC01&VolumeType=ESSD_PL0&ReservedCapacity=20 HTTP/1.1​
Host: open.volcengineapi.com​
Region: cn-beijing​
ServiceName: storage_ebs​
​
Back to example​
​
{​
"ResponseMetadata": {​
"RequestId": "202511251604150541181320966C****",​
"Action": "PurchaseReservedStorageCapacity",​
"Version": "2020-04-01",​
"Service": "storage_ebs",​
"Region": "cn-beijing"​
},​
"Result": {​
"OrderNumber": "Order738395864274233****",​
"ReservedStorageCapacityId": "rsc-3vpnts78dk3x35cj****"​
}​
}​
​
error code​
The following table lists error codes related to this API and its business logic. For public error codes, refer to the Public Error Codes documentation.​
​
Status code​
error code​
error message​
Create Volume​
400​
ErrorRscVolumeTypeNoSupport​
This volume type does not support creating RSC (additional performance package).​
This volume type does not support RSC creation.​
400​
ErrorRscSizeInvalid​
The RSC capacity is not within the allowed range.​
RSC capacity is out of the allowed range.​
400​
ErrorRscZoneInvalid​
Please provide a correct zone ID.​
Provide a valid zone ID.​
400​
ErrorRscNameInvalid​
Please provide a correct RSC name.​
Enter the correct RSC name.​
400​
ErrorRscCheckQuotaFailed​
The total capacity of the created RSC exceeds the quota limit.​
The total purchased RSC capacity exceeds the Quota limit for this volume specification.​
400​
ErrorRscInvalidPeriodUnit​
The RSC billing cycle unit is invalid, please provide a valid billing cycle unit.​
This RSC purchase period is invalid. Please provide a valid purchase period.​
400​
ErrorRscInvalidPeriod​
The RSC billing cycle is invalid, only 1-36 months are supported.​
This RSC purchase cycle is invalid; only cycles from 1 to 36 months are supported.​
​
​
Last updated: 2026.07.13 18:18:25