Invokes DescribeCacheReservePrice to query the price of a query cache reserve instance.
Try it now
Test
RAM authorization
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| Period |
integer |
Yes |
The purchase period. Unit: months. |
2 |
| QuotaGb |
integer |
No |
The cache reserve specification. Unit: GB. |
512000 |
| CrRegion |
string |
No |
The cache reserve region.
|
HK |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The response struct. |
||
| RequestId |
string |
The request ID. |
2430E05E-1340-5773-B5E1-B743929F46F2 |
| PriceModel |
object |
The price information. |
|
| Price |
number |
The final order price, which is the actual transaction price. |
1 |
| Currency |
string |
The currency. Valid values:
|
CNY |
| TotalPrice |
number |
The original order price. Original order price = actual transaction price + discount amount. |
2 |
| DiscountPrice |
number |
The discount amount of the order. |
1 |
| Rule |
object |
||
| RuleList |
array<object> |
The rule hits. |
|
|
object |
|||
| Name |
string |
The policy name. |
Policy A |
| RuleDescId |
integer |
The policy ID. |
1 |
Examples
Success response
JSON format
{
"RequestId": "2430E05E-1340-5773-B5E1-B743929F46F2",
"PriceModel": {
"Price": 1,
"Currency": "CNY",
"TotalPrice": 2,
"DiscountPrice": 1,
"Rule": {
"RuleList": [
{
"Name": "Policy A",
"RuleDescId": 1
}
]
}
}
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | InternalError | An internal exception occurred, please try again later. | An inner exception was triggered. Please try again later. |
| 400 | CheckPlanFailed | Invalid plan name or code. Check and try again. | Invalid plan name or code. Check and try again. |
| 400 | InvalidSiteICP | The specified website does not have an ICP filing or the filing information is invalid. Make sure your website is filed and try again. | The specified website does not have an ICP filing or the filing information is invalid. Make sure your website is filed and try again. |
| 400 | InvalidSiteName | Invalid website name. Check and try again. | Invalid website name. Check and try again. |
| 400 | SYSTEM.NoSpecificCodeFailed | Invalid subscription duration. Check and try again. | Invalid subscription duration. Check and try again. |
| 400 | InvalidComponent | The order parameters is invalid. | The order parameters is invalid. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.