Modifies the IP whitelist and blacklist of a domain name.

Request parameters

Name Type Required Description
Domain String Yes The domain name to be operated.
Black List Yes The list of IP addresses or segments to be added to the blacklist. For example, ["1.1.1.1", "2.2.2.2/24"].
Note If this parameter is left blank, the blacklist will be cleared.
White List Yes The list of IP addresses or segments to be added to the whitelist. For example, ["1.1.1.1", "2.2.2.2/24"].
Note If this parameter is left blank, the whitelist will be cleared.

Response parameters

Name Type Description
RequestId String The unique identifier (ID) for this request.

Example

Request example
https://ddospro.cn-hangzhou.aliyuncs.com/?Action=ModifyDomainBlackWhiteList
&Domain=www.aliyun.com
&Black=["1.1.1.1", "2.2.2.2/24"]
&White=["1.1.1.1", "2.2.2.2/24"]
&public parameters
Response example
  • JSON format
    {
    	"RequestId": "C33EB3D5-AF96-43CA-9C7E-37A81BC06A1E"
    }