Configures the IP address whitelist and blacklist for a website.
Debugging
Request parameters
Parameter | Type | Required | Example | Description |
---|---|---|---|---|
Action | String | Yes | ConfigWebIpSet |
The operation that you want to perform. Set the value to ConfigWebIpSet. |
Domain | String | Yes | www.aliyun.com |
The domain name of the website. Note A forwarding rule must be configured for the domain name. You can call the DescribeDomains operation to query all domain names.
|
RegionId | String | No | cn-hangzhou |
The region ID of the instance. Valid values:
|
ResourceGroupId | String | No | default |
The ID of the resource group to which the instance belongs in Resource Management. This parameter is empty by default, which indicates that the instance belongs to the default resource group. |
BlackList.N | RepeatList | No | 1.1.1.1 |
IP address N or CIDR block N that you want to add to the blacklist. The maximum value of N is 200. You can add a maximum of 200 IP addresses or CIDR blocks to the blacklist. |
WhiteList.N | RepeatList | No | 2.2.2.2/24 |
IP address N or CIDR block N that you want to add to the whitelist. The maximum value of N is 200. You can add a maximum of 200 IP addresses or CIDR blocks to the whitelist. |
Response parameters
Parameter | Type | Example | Description |
---|---|---|---|
RequestId | String | 0bcf28g5-d57c-11e7-9bs0-d89d6717dxbc |
The ID of the request. |
Examples
Sample requests
http(s)://[Endpoint]/?Action=ConfigWebIpSet
&Domain=www.aliyun.com
&BlackList.1=1.1.1.1
&WhiteList.1=2.2.2.2/24
&<Common request parameters>
Sample success responses
XML
format
<ConfigWebIpSetResponse>
<RequestId>0bcf28g5-d57c-11e7-9bs0-d89d6717dxbc</RequestId>
</ConfigWebIpSetResponse>
JSON
format
{
"RequestId": "0bcf28g5-d57c-11e7-9bs0-d89d6717dxbc"
}
Error codes
For a list of error codes, visit the API Error Center.