Docs
api
Web Application Firewall(UEWAF)
ModifyWafDomainHostInfo

Edit Protection Domain Information - ModifyWafDomainHostInfo

Overview

Edit Protection Domain Information

Definition

Public Parameters

Parameter NameTypeDescription InformationRequired
ActionstringCorresponding API command name, the current API is ModifyWafDomainHostInfo.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
SrcIP.NstringOrigin IP InformationYes
WorkRegionsstringWorkspace, a subset of the areas purchased by the user, separated by commas, such as: cn-bj,cn-shYes
FullDomainstringThe domain name being edited, either the domain name or record ID must be filled in.Yes
HTTPRedirectionstringUse HTTP redirection, YES for allowed, NO for not allowed, only applicable under the condition of HTTPS:YES, HTTP:NONo
CertificateIDintHTTPS Certificate NumberNo
RealIPHeaderstringObtain the real client address field, used when docking with other proxies such as CDN.No
WorkModestringWorking Mode, Defence: Enable Protection Rules, Alarm: Record without Blocking, Inactive: AllowNo

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

Example

Request Example

https://api.dezai.com/?Action=ModifyWafDomainHostInfo
&ProjectId=org-xxx
&FullDomain=https://www.test.com
&SrcIP.0=1.2.3.4
&HTTPRedirection=NO
&WorkRegions=cn-gd
&CertificateID=901

Response Example

{
  "Action": "ModifyWafDomainHostInfoResponse",
  "RetCode": 0
}