You can call this operation to add IP addresses to the blacklist or whitelist of domains.

Request parameters

Name Type Required Description
Domain String Yes The domain name that you want to change settings for.
BlackList.N String No The IP addresses that you want to add to the blacklist. If you want to blacklist multiple IP addresses, specify multiple parameters as follows: BlackList. 1, BlackList. 2, BlackList. 3, ...
WhiteList.N String No The IP addresses that you want to add to the whitelist. If you want to whitelist multiple IP addresses, specify multiple parameters as follows: WhiteList. 1, WhiteList. 2, WhiteList. 3, ...

Response parameters

Name Type Description
RequestId String The GUID generated by Alibaba Cloud for the request.

Examples

Sample requests
{
  "Domain": "www.alibaba.com",
  "BlackList. 1" : "1.1.1.1",
  "BlackList. 2" : "2.2.2.2/24",
  "WhiteList. 1" : "3.3.3.3",
  "WhiteList. 2" : "4.4.4.4/24"
}
Sample responses
{
  "RequestId": "0bcf28g5-d57c-11e7-9bs0-d89d6717dxbc"
}