Queries the price of an Anti-DDoS Pro or Anti-DDoS Premium instance.
Try it now
Test
RAM authorization
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| DDoSBurstableDomesticProtection |
string |
Yes |
The specification of the instance in the Chinese mainland. Valid values:
|
cn_300 |
| DDoSBurstableOverseasProtection |
string |
Yes |
The specification of the instance outside the Chinese mainland. Valid values:
|
overseas_300 |
| DDoSBillingMode |
string |
Yes |
The billing method. Valid values:
|
CleanTraffic |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The response struct. |
||
| RequestId |
string |
The request ID. |
36af3fcc-43d0-441c-86b1-428951dc8225 |
| PriceModel |
object |
The price information. |
|
| Price |
number |
The final price of the order, which is the actual transaction price. |
60 |
| Currency |
string |
The currency. Valid values:
|
CNY |
| TotalPrice |
number |
The original price of the order. Original price = actual transaction price + discount amount. |
100 |
| DiscountPrice |
number |
The discount amount of the order. |
40 |
| Rule |
object |
||
| RuleList |
array<object> |
The rule hits. |
|
|
object |
|||
| Name |
string |
The policy name. |
PolicyA. |
| RuleDescId |
integer |
The policy ID. |
1 |
Examples
Success response
JSON format
{
"RequestId": "36af3fcc-43d0-441c-86b1-428951dc8225",
"PriceModel": {
"Price": 60,
"Currency": "CNY",
"TotalPrice": 100,
"DiscountPrice": 40,
"Rule": {
"RuleList": [
{
"Name": "PolicyA.",
"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.