docs
api
Web Application Firewall(UEWAF)
DescribeWafDomainWhiteList

Get Domain Whitelist - DescribeWafDomainWhiteList

Overview

Get Domain Whitelist

Definition

Public Parameters

Parameter NameTypeDescription InformationRequired
ActionstringCorresponding API command name, the current API is DescribeWafDomainWhiteList.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, sub-accounts must be filled in. Please refer to the GetProjectList interface.No
FullDomainstringDomain of the whitelist to be obtainedYes
LimitintEach request limits the return quantity, equivalent to page sizeYes
OffsetintOffset, equivalent to page numberYes
FilterstringThe IP, network segment, or IP segment you want to search for, pass the array (CIDRS).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
ResBWInfoResReturn result of whitelist, refer to BWInfoResYes

Data Model

BWInfoRes

Field NameTypeDescription InformationRequired
TotalintTotalNo
CountintReturn QuantityNo
Infoarray[BWInfo]Detail list, refer to BWInfoNo

BWInfo

Field NameTypeDescription InformationRequired
IDintBlacklist/Whitelist Rule IDNo
TypestringTypeNo
SourcestringJoin Method (Black)No
CIDRSarray[string]IP ListNo
CreateTimestringJoin TimeNo
ExpireTimeintExpiration TimeNo
StateintStatusNo
SRCstringJoin Method (White)No
NamestringRule NameNo
RemarkstringNote InformationNo

Example

Request Example

https://api.surfercloud.com/?Action=DescribeWafDomainWhiteList
&ProjectId=org-xxx
&FullDomain=www.test.com
&Offset=0
&Limit=10

Response Example

{
  "Action": "DescribeWafDomainWhiteListResponse",
  "Res": {
    "Count": 1,
    "Info": [
      {
        "ActionType": "accept",
        "CIDRS": [
          "1.1.1.1"
        ],
        "CreateTime": "2020-02-27 09:50:10",
        "ExpireTime": 0,
        "ID": 15022,
        "Name": "",
        "Remark": "",
        "SRC": "custom",
        "Source": "",
        "State": 0,
        "Type": ""
      }
    ],
    "Total": 1
  },
  "RetCode": 0
}
  • Company
  • ContactUs
  • Blog
Copyright © 2024 SurferCloud All Rights Reserved