呼叫 DescribeCacheReservePrice 查詢快取保持執行個體價格。
調試
您可以在OpenAPI Explorer中直接運行該介面,免去您計算簽名的困擾。運行成功後,OpenAPI Explorer可以自動產生SDK程式碼範例。
調試
授權資訊
請求參數
|
名稱 |
類型 |
必填 |
描述 |
樣本值 |
| Period |
integer |
是 |
購買週期(單位:月)。 |
2 |
| QuotaGb |
integer |
否 |
快取保持規格(單位:GB)。 |
512000 |
| CrRegion |
string |
否 |
快取保持區域
|
HK |
返回參數
|
名稱 |
類型 |
描述 |
樣本值 |
|
object |
回應結構。 |
||
| RequestId |
string |
請求 ID。 |
2430E05E-1340-5773-B5E1-B743929F46F2 |
| PriceModel |
object |
價格資訊。 |
|
| Price |
number |
訂單最終價,實際交易價。 |
1 |
| Currency |
string |
幣種:
|
CNY |
| TotalPrice |
number |
訂單原價 = 訂單實際交易價 + 訂單優惠金額。 |
2 |
| DiscountPrice |
number |
訂單優惠金額。 |
1 |
| Rule |
object |
||
| RuleList |
array<object> |
命中策略。 |
|
|
object |
|||
| Name |
string |
策略名稱。 |
策略A |
| RuleDescId |
integer |
策略 ID。 |
1 |
樣本
正常返回樣本
JSON格式
{
"RequestId": "2430E05E-1340-5773-B5E1-B743929F46F2",
"PriceModel": {
"Price": 1,
"Currency": "CNY",
"TotalPrice": 2,
"DiscountPrice": 1,
"Rule": {
"RuleList": [
{
"Name": "策略A",
"RuleDescId": 1
}
]
}
}
}
錯誤碼
|
HTTP status code |
錯誤碼 |
錯誤資訊 |
描述 |
|---|---|---|---|
| 400 | InternalError | An internal exception occurred, please try again later. | 触发内部异常,请稍后再试。 |
| 400 | CheckPlanFailed | Invalid plan name or code. Check and try again. | 您配置的套餐名或套餐Code不正确,请确保已传入正确的套餐名或套餐Code后重试。 |
| 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. | 您配置的站点未备案或ICP备案信息不合法,请确保站点已完成备案后重试。 |
| 400 | InvalidSiteName | Invalid website name. Check and try again. | 您配置的站点名称不正确,请确保传入正确的站点名称后重试。 |
| 400 | SYSTEM.NoSpecificCodeFailed | Invalid subscription duration. Check and try again. | 您配置的套餐购买周期不正确,请检查后重试。 |
| 400 | InvalidComponent | The order parameters is invalid. | 订单配置参数不符合校验条件。 |
訪問錯誤中心查看更多錯誤碼。
變更歷史
更多資訊,參考變更詳情。