Docs
api
Web Application Firewall(UEWAF)
DescribeWafDomainHostInfo

Get WAF Protection Domain List - DescribeWafDomainHostInfo

Overview

Get WAF Protection Domain List

Definition

Public Parameters

Parameter NameTypeDescription InformationRequired
ActionstringCorresponding API command name, the current API is DescribeWafDomainHostInfo.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
LimitintLimit per page (Equivalent to page size)Yes
OffsetintPage Offset (Equivalent to page number)Yes
FullDomainstringDomain name, used for querying a single domain nameNo

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
TotalCountintTotal Number of DomainsNo
DomainHostListarray[HostStatausInfo]Domain information list, refer to HostStatausInfoNo

Data Model

HostStatausInfo

Field NameTypeDescription InformationRequired
FullDomainstringDomain NameNo
WorkModestringWorking ModeNo
RecordIdintDomain Record IDNo
CertificateIDintCertificate IDNo
CnamestringCNAME Record ValueNo
WorkRegionsstringDeployment AreaNo
AntiCCstringEnable CC Protection?No
AssurancestringWhether to enable web page tampering preventionNo
CreateTimeintCreate TimestampNo
SrcIPInfoarray[SrcIPInfo]Source IP address information, see SrcIPInfoNo
HTTPRedirectionstringHTTP redirectionNo
HTTPBackstringEnable HTTPS offload, YES - YesNo
HttpStatusstringHTTP Status Description, WAF Active Detection ResultsNo
HttpExceptionstringHTTP Exception Information, WAF Active Detection ResultsNo
HttpsStatusstringHTTPS status, WAF active detection resultNo
HttpsExceptionstringHTTPS Exception Description, WAF Active Detection ResultNo
UniqueIPstringIs the IP address exclusive?No
RealIPHeaderstringReal IP HeaderNo
AttackCountintAttack TimesNo
DomainStatusarray[DomainStatus]WAF detects domain status information, refer to DomainStatus, ULB version is invalid.No
StatusintDomain validity, ULB version is valid, other versions are invalid, 1 indicates that the domain is normally connected, 0 indicates that the domain has been deleted from ULB, WAF only retains historical records.No

SrcIPInfo

Field NameTypeDescription InformationRequired
ProtostringProtocolNo
SrcIPstringSource IP AddressNo
Portarray[int]Source PortNo
URIstringURINo

DomainStatus

Field NameTypeDescription InformationRequired
RegionstringDeployment AreaNo
SchemestringProtocolNo
StatusstringStatus InformationNo
RawStatusstringOriginal Status InformationNo

Example

Request Example

https://api.dezai.com/?Action=DescribeWafDomainHostInfo
&ProjectId=org-xxx
&Offset=0
&Limit=10

Response Example

{
  "Action": "DescribeWafDomainHostInfoResponse",
  "DomainHostList": [
    {
      "AntiCC": "on",
      "Assurance": "off",
      "AttackCount": 0,
      "CertificateID": 0,
      "Cname": "ce43b831.uewaf.com",
      "CreateTime": 1584695681,
      "DefenceIps": {
        "cn-bj": [
          "106.7.27.194"
        ],
        "cn-gd": [
          "106.7.185.203"
        ]
      },
      "DomainStatus": [
        {
          "RawStatus": "Head http://106.5.185.203:80/: EOF",
          "Region": "cn-gd",
          "Scheme": "http",
          "Status": "Exception"
        },
        {
          "RawStatus": "Head http://106.5.27.194:80/: EOF",
          "Region": "cn-bj",
          "Scheme": "http",
          "Status": "Exception"
        }
      ],
      "FullDomain": "www.test.com",
      "HTTPRedirection": "NO",
      "HttpException": "Head http://106.5.27.194:80/: EOF",
      "HttpStatus": "Exception",
      "HttpsException": "",
      "HttpsStatus": "Unaccess",
      "RealIPHeader": "default",
      "RecordId": 46103,
      "SrcIPInfo": [
        {
          "Port": [
            80
          ],
          "Proto": "http",
          "SrcIP": "152.32.70.130",
          "URI": "http://152.32.170.130:80"
        }
      ],
      "UniqueIP": "NO",
      "WorkMode": "Alarm",
      "WorkRegions": "cn-bj,cn-gd"
    }
  ],
  "RetCode": 0,
  "TotalCount": 1
}