Queries the price, type, and status of the package.
Operation description
The subscription duration is measured in months.
Try it now
Test
RAM authorization
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| Period |
integer |
No |
The subscription period in months. |
1 |
| PlanName |
string |
No |
The plan name. |
basic |
| Amount |
integer |
No |
The number of plans. |
1 |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The response structure. |
||
| RequestId |
string |
The request ID. |
50423A7F-A83D-1E24-B80E-86DD25790759 |
| PriceModel |
object |
The pricing information. |
|
| RatePlan |
object |
||
| PlanPriceList |
array<object> |
The pricing details for the plans. |
|
|
object |
|||
| PlanName |
string |
The plan name. |
basic |
| PlanType |
string |
The plan type. Valid values:
|
normal |
| PlanStatus |
string |
The plan status. Valid values:
|
unsaled |
| Currency |
string |
The currency. Valid values:
|
CNY |
| TotalPrice |
number |
The list price, which is the sum of |
2 |
| DiscountPrice |
number |
The discount amount. |
1 |
| Price |
number |
The final transaction price. |
1 |
| Coverages |
string |
The acceleration regions supported by the plan. |
overseas,global,domestic |
| Position |
integer |
The plan priority. |
1 |
| ChargeType |
string |
The billing method. Valid values:
|
PREPAY |
| PlanTraffic |
string |
The data transfer capacity of the plan. |
1000 |
| EdgeCompute |
string |
The edge computing configuration. |
er_on |
| EdgeWaf |
string |
The edge WAF configuration. |
waf_off |
| DcdnPlan |
string |
The DCDN plan edition. |
basicplan |
| AccelerateType |
string |
The acceleration type. |
smartrouting_off |
| EdgeDdos7Layer |
string |
The Layer 7 edge DDoS configuration. |
ddos_off |
| Layer4Traffic |
string |
The data transfer capacity for Layer 4 acceleration. |
1000 |
| EdgeDdos4Layer |
string |
The Layer 4 edge DDoS configuration. |
ddos_off |
| CrossborderTraffic |
string |
The amount of cross-border traffic. |
1000 |
| EdgeLb7Layer |
string |
The Layer 7 load balancing configuration. |
lb_off |
| EdgeLb4Layer |
string |
The Layer 4 load balancing configuration. |
lb_off |
| Layer4TrafficIntl |
string |
The data transfer capacity for overseas Layer 4 acceleration. |
1000 |
| EdgeDdos4LayerIntl |
string |
The overseas Layer 4 edge DDoS configuration. |
ddos_off |
| EdgeLb4LayerIntl |
string |
The overseas Layer 4 load balancing configuration. |
lb_off |
| EdgeDdosInstanceCn |
string |
The China (mainland) DDoS instance. |
cn_300 |
| EdgeDdosInstanceIntl |
string |
The overseas DDoS instance. |
overseas_300 |
| EdgeWafInstance |
string |
The WAF instance. |
enterprise_bot |
| Rule |
object |
||
| RuleList |
array<object> |
The matched pricing rules. |
|
|
object |
|||
| Name |
string |
The rule name. |
策略A |
| RuleDescId |
integer |
The rule ID. |
1 |
Examples
Success response
JSON format
{
"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": "策略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 | InvalidInstance | The instance ID is missing or invalid. Make sure that the instance ID is valid and try again. | The instance ID is missing or invalid. Make sure that the instance ID is valid and try again. |
| 400 | InvalidComponent | The order parameters is invalid. | The order parameters is invalid. |
| 400 | EnterpriseAmountErr | Enterprise plans do not support bulk purchase. | Enterprise plans do not support bulk purchase. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.