docs
api
DDoS Attack Protection(UDDos)
GetCleanServiceStatistics

Retrieve Cleaned Traffic History Statistics - GetCleanServiceStatistics

Overview

Retrieve Cleaned Traffic History Statistics

Definition

Public Parameters

Parameter NameTypeDescription InformationRequired
ActionstringCorresponding API command name, the current API is GetCleanServiceStatistics.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
ResourceIdstringResource ID, cannot be emptyYes
BeginTimestringStart Time QueryYes
EndTimestringEnd Time QueryYes
DefenceIPstringWhen DefenceIP is empty, the interface returns the top 5 IPs with the highest attacked traffic in the resource's region;
When DefenceIP is a specific IP, the interface returns the pre- and post-cleaning traffic data of that IP in the resource's region.
No

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
DefenceIPListarray[string]When DefenceIP is empty, only return the array list of TOP 5 traffic IPs.Yes
CleanStatisticsstringWhen DefenceIP represents a single IP, only this item is returned. It represents the PPS and BPS information of this IP during the specified time.Yes

Example

Request Example

https://api.surfercloud.com/?Action=GetCleanServiceStatistics
&ResourceId=usecure_UCLEAN-2cy3wd
&top_organization_id=200000103
&organization_id=200000217
&account_id=200000103
&BeginTime=1523089529
&EndTime=1593089529
&DefenceIP=120.132.20.20

Response Example

{
  "Action": "GetCleanServiceStatisticsResponse",
  "DefenceIPList": [
    "106.75.145.36",
    "106.75.175.222",
    "106.75.49.5",
    "120.132.20.20"
  ],
  "RetCode": 0
}
  • Company
  • ContactUs
  • Blog
Copyright © 2024 SurferCloud All Rights Reserved