Docs
api
Web Application Firewall(UEWAF)
DescribeWafDomainBlackList

Get Domain Blacklist - DescribeWafDomainBlackList

Overview

Get Domain Blacklist

Definition

Public Parameters

Parameter NameTypeDescription InformationRequired
ActionstringCorresponding API command name, the current API is DescribeWafDomainBlackList.Yes
PublicKeystringThe user’s public key can be obtained from ConsoleYes
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 to queryYes
LimitintLimit per page (Equivalent to page size)Yes
OffsetintPage Offset (Equivalent to page number)Yes
FilterstringThe IP, network segment, or IP segment you want to search for, pass the array (CIDRS).No
Sort.NstringSort parameter, supports “ExpireTime”, “-ExpireTime”, “CreateTime”, “-CreateTime”.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
ResBWInfoResBlacklist return results, refer to BWInfoResNo

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.dezai.com/?Action=DescribeWafDomainBlackList
&ProjectId=org-xxx
&FullDomain=www.test.com
&Offset=0
&Limit=10
&Remark=test

Response Example

{
  "Action": "DescribeWafDomainBlackListResponse",
  "Res": {
    "Count": 3,
    "Info": [
      {
        "ActionType": "forbidden",
        "CIDRS": [
          "1.2.3.4"
        ],
        "CreateTime": "2020-03-26 11:21:03",
        "ExpireTime": 1585193463,
        "ID": 251276,
        "Name": "",
        "Remark": "",
        "SRC": "",
        "Source": "custom",
        "State": 0,
        "Type": "custom"
      },
      {
        "ActionType": "forbidden",
        "CIDRS": [
          "2.2.2.2-2.2.2.10"
        ],
        "CreateTime": "2020-03-28 01:59:05",
        "ExpireTime": 1585332545,
        "ID": 252062,
        "Name": "",
        "Remark": "",
        "SRC": "",
        "Source": "custom",
        "State": 0,
        "Type": "custom"
      },
      {
        "ActionType": "forbidden",
        "CIDRS": [
          "2.2.2.2"
        ],
        "CreateTime": "2020-04-03 10:03:39",
        "ExpireTime": 1585880019,
        "ID": 252731,
        "Name": "",
        "Remark": "",
        "SRC": "",
        "Source": "custom",
        "State": 0,
        "Type": "custom"
      }
    ],
    "Total": 3
  },
  "RetCode": 0
}