docs
api
DDoS Attack Protection(UDDos)
GetCleanServicePrice

Get the price of the cleaning package - GetCleanServicePrice

Overview

Get the price of the cleaning package

Definition

Public Parameters

Parameter NameTypeDescription InformationRequired
ActionstringCorresponding API command name, the current API is GetCleanServicePrice.Yes
PublicKeystringThe user's public key can be obtained from Console (opens in a new tab)Yes
SignaturestringUser signature generated based on public key and API command, see Signature AlgorithmYes

Request Parameters

Parameter NameTypeDescription InformationRequired
ChargeTypestringBilling Type (Month: Monthly, Year: Yearly)Yes
CleanRegionstringMaintain and update the available region list through GetCleanServiceRegion to cope with the expanding data centers. As of 2019-01-24, the currently available list can be seen in the enumeration:Yes
QuantityintProtection Duration (0 represents end of the purchase month, end of the year)Yes
MaxCleanCapacityintTraffic cleaning upper limit protection traffic (unit G), default 5No

Response Field

Field NameTypeDescription InformationRequired
RetCodeintReturn status code. If it is 0, it means successful return. If it is not 0, it means failure.Yes
ActionstringOperation command name.Yes
MessagestringReturns an error message, providing detailed description when RetCode is non-zero.No
PriceintCleaning Package PriceYes

Example

Request Example

https://api.surfercloud.com/?Action=GetCleanServicePrice
&ChargeType=Month
&CleanRegion=TpaukPxG
&MaxCleanCapacity=2
&Quantity=3

Response Example

{
  "Action": "GetCleanServicePriceResponse",
  "Price": 8,
  "RetCode": 0
}
  • Company
  • ContactUs
  • Blog
Copyright © 2024 SurferCloud All Rights Reserved