docs
api
Web Application Firewall(UEWAF)
DescribeAntiCCRules

CC Defense Rule List - DescribeAntiCCRules

Overview

CC Defense Rule List

Definition

Public Parameters

Parameter NameTypeDescription InformationRequired
ActionstringCorresponding API command name, the current API is DescribeAntiCCRules.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
ProjectIdstringProject ID. If not filled in, the default project is used, and the sub-account must be filled in. Please refer to the GetProjectList interface.No
DomainstringTo query the domain of the protection rulesYes

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
ResAntiCcResCC Rules, refer to AntiCcResNo

Data Model

AntiCcRes

Field NameTypeDescription InformationRequired
StatestringCC Protection Status of the Specified DomainYes
ModestringCC Protection Mode for Specified DomainYes
MaxintMaximum Capacity of CC RulesYes
Rulesarray[AntiCcRule]CC Rule List, refer to AntiCcRuleYes

AntiCcRule

Field NameTypeDescription InformationRequired
IdintRule IDYes
UristringURIYes
ModestringModeYes
DurationintDuration Statistics. Unit: Seconds.Yes
ReqsintRequest TimesYes
ActionstringExecute ActionYes
ValidityintAction Validity Period, Unit: MinutesYes

Example

Request Example

https://api.surfercloud.com/?Action=DescribeAntiCCRules
&ProjectId=org-xxx
&Domain=www.test.com

Response Example

{
  "Action": "DescribeAntiCCRulesResponse",
  "Res": {
    "Max": 30,
    "Mode": "normal",
    "Rules": [
      {
        "Action": "forbidden",
        "Duration": 10,
        "Id": 43804,
        "Mode": "equal",
        "Reqs": 2,
        "Uri": "/index.html",
        "Validity": 60
      },
      {
        "Action": "forbidden",
        "Duration": 10,
        "Id": 44451,
        "Mode": "equal",
        "Reqs": 20,
        "Uri": "/index.html",
        "Validity": 60
      }
    ],
    "State": "on"
  },
  "RetCode": 0
}
  • Company
  • ContactUs
  • Blog
Copyright © 2024 SurferCloud All Rights Reserved