- Documentation
Elastic Compute Service
Elastic Compute Service
API Reference
Volumes
Reserved storage capacity
PurchaseReservedStorageCapacity - Purchase reserved storage capacity package
Reserved storage capacity
PurchaseReservedStorageCapacity - Purchase reserved storage capacity package
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.
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
Back to example
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.
Last updated: 2026.07.13 18:18:25