docs
api
Web Application Firewall(UEWAF)
DescribeWafProtectionSummaryInfo

Get Protection Rule List - DescribeWafProtectionSummaryInfo

Overview

Get Protection Rule List

Definition

Public Parameters

Parameter NameTypeDescription InformationRequired
ActionstringCorresponding API command name, the current API is DescribeWafProtectionSummaryInfo.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
FullDomainstringDomain to queryYes

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
TotalCountintNumber of RulesNo
WorkModestringWorking ModeNo
RuleSetListarray[ProtectionSummaryRuleSetEntry]Rule set list, refer to ProtectionSummaryRuleSetEntryNo

Data Model

ProtectionSummaryRuleSetEntry

Field NameTypeDescription InformationRequired
RuleNamestringRule NameNo
RuleActionstringRule ActionNo
PriorityintPriorityNo
RiskRankstringRisk LevelNo
RiskTypestringRisk TypeNo
RuleSetIDintRule Set IDNo
RuleSetTypestringRule Set TypeNo
SysRulesetintStart ID of Rule SetNo
RuleDescriptionstringRule DescriptionNo
RuleListarray[ProtectionSummaryRuleInfo]For rule details, refer to ProtectionSummaryRuleInfoNo

ProtectionSummaryRuleInfo

Field NameTypeDescription InformationRequired
FieldstringMatch FieldNo
OperatorstringBehavior ActionNo
ContentstringMatching ContentNo
RuleIdintRule IDNo
DescriptionstringRule DescriptionNo

Example

Request Example

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

Response Example

{
  "Action": "DescribeWafProtectionSummaryInfoReponse",
  "RetCode": 0,
  "RuleSetList": [
    {
      "Location": "root",
      "Phase": "access",
      "Priority": 0,
      "RiskRank": "High",
      "RiskType": "scan",
      "RuleAction": "Deny",
      "RuleDescription": "",
      "RuleList": [
        {
          "Content": "2.2.2.2",
          "Description": "",
          "Field": "SrcIp",
          "Operator": "Contain",
          "RuleId": 45000,
          "UserRuleId": 45001
        }
      ],
      "RuleName": "test",
      "RuleSetID": 45000,
      "RuleSetType": "",
      "SysRuleset": 90045000
    }
  ],
  "TotalCount": 1,
  "WorkMode": "Alarm"
}
  • Company
  • ContactUs
  • Blog
Copyright © 2024 SurferCloud All Rights Reserved