查询套餐价格,包括套餐类型以及套餐状态等信息。
接口说明
购买周期单位为月。
调试
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。
调试
授权信息
|
操作 |
访问级别 |
资源类型 |
条件关键字 |
关联操作 |
|
esa:DescribeRatePlanPrice |
create |
*全部资源
|
无 | 无 |
请求参数
|
名称 |
类型 |
必填 |
描述 |
示例值 |
| Period |
integer |
否 |
购买周期(单位:月)。 |
1 |
| PlanName |
string |
否 |
套餐名称。 |
basic |
| Amount |
integer |
否 |
套餐数量。 |
1 |
返回参数
|
名称 |
类型 |
描述 |
示例值 |
|
object |
响应结构。 |
||
| RequestId |
string |
请求 ID。 |
50423A7F-A83D-1E24-B80E-86DD25790759 |
| PriceModel |
object |
价格信息。 |
|
| RatePlan |
object |
||
| PlanPriceList |
array<object> |
套餐价格信息。 |
|
|
object |
|||
| PlanName |
string |
套餐名称。 |
basic |
| PlanType |
string |
套餐类型:
|
normal |
| PlanStatus |
string |
套餐状态:
|
unsaled |
| Currency |
string |
币种:
|
CNY |
| TotalPrice |
number |
订单原价 = 订单实际交易价 + 订单优惠金额。 |
2 |
| DiscountPrice |
number |
订单优惠金额。 |
1 |
| Price |
number |
订单最终价,实际交易价。 |
1 |
| Coverages |
string |
套餐支持的加速区域。 |
overseas,global,domestic |
| Position |
integer |
套餐优先级。 |
1 |
| ChargeType |
string |
计费类型
|
PREPAY |
| PlanTraffic |
string |
套餐容量。 |
1000 |
| EdgeCompute |
string |
边缘计算。 |
er_on |
| EdgeWaf |
string |
边缘 WAF。 |
waf_off |
| DcdnPlan |
string |
套餐版本。 |
basicplan |
| AccelerateType |
string |
加速类型。 |
smartrouting_off |
| EdgeDdos7Layer |
string |
七层边缘 ddos。 |
ddos_off |
| Layer4Traffic |
string |
四层加速容量。 |
1000 |
| EdgeDdos4Layer |
string |
四层边缘 ddos。 |
ddos_off |
| CrossborderTraffic |
string |
中国网络优化。 |
1000 |
| EdgeLb7Layer |
string |
七层负载均衡。 |
lb_off |
| EdgeLb4Layer |
string |
四层负载均衡。 |
lb_off |
| Layer4TrafficIntl |
string |
海外四层加速容量。 |
1000 |
| EdgeDdos4LayerIntl |
string |
海外四层边缘 ddos。 |
ddos_off |
| EdgeLb4LayerIntl |
string |
海外四层负载均衡。 |
lb_off |
| EdgeDdosInstanceCn |
string |
国内 DDoS 实例。 |
cn_300 |
| EdgeDdosInstanceIntl |
string |
海外 DDoS 实例。 |
overseas_300 |
| EdgeWafInstance |
string |
waf 实例。 |
enterprise_bot |
| Rule |
object |
||
| RuleList |
array<object> |
命中策略。 |
|
|
object |
|||
| Name |
string |
策略名称。 |
Policy A |
| RuleDescId |
integer |
策略 ID。 |
1 |
示例
正常返回示例
JSON格式
{
"RequestId": "50423A7F-A83D-1E24-B80E-86DD25790759",
"PriceModel": {
"RatePlan": {
"PlanPriceList": [
{
"PlanName": "basic",
"PlanType": "normal",
"PlanStatus": "unsaled",
"Currency": "CNY",
"TotalPrice": 2,
"DiscountPrice": 1,
"Price": 1,
"Coverages": "overseas,global,domestic",
"Position": 1,
"ChargeType": "PREPAY",
"PlanTraffic": "1000",
"EdgeCompute": "er_on",
"EdgeWaf": "waf_off",
"DcdnPlan": "basicplan",
"AccelerateType": "smartrouting_off",
"EdgeDdos7Layer": "ddos_off",
"Layer4Traffic": "1000",
"EdgeDdos4Layer": "ddos_off",
"CrossborderTraffic": "1000",
"EdgeLb7Layer": "lb_off",
"EdgeLb4Layer": "lb_off",
"Layer4TrafficIntl": "1000",
"EdgeDdos4LayerIntl": "ddos_off",
"EdgeLb4LayerIntl": "lb_off",
"EdgeDdosInstanceCn": "cn_300",
"EdgeDdosInstanceIntl": "overseas_300",
"EdgeWafInstance": "enterprise_bot"
}
]
},
"Rule": {
"RuleList": [
{
"Name": "Policy 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 | InvalidInstance | The instance ID is missing or invalid. Make sure that the instance ID is valid and try again. | 实例ID缺失或者参数无效,请确认实例ID无误后重试。 |
| 400 | InvalidComponent | The order parameters is invalid. | 订单配置参数不符合校验条件。 |
| 400 | EnterpriseAmountErr | Enterprise plans do not support bulk purchase. | 企业版套餐不支持批量购买。 |
访问错误中心查看更多错误码。
变更历史
更多信息,参考变更详情。