Enables or disables the Black Lists and White Lists (Domain Names) policy for a domain name.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
yundun-ddoscoo:ModifyWebIpSetSwitch |
update |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| ResourceGroupId |
string |
No |
The ID of the resource group to which the instance belongs in Resource Management. Default value: empty, indicating that the instance belongs to the default resource group. |
default |
| Domain |
string |
Yes |
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 for which forwarding rules are configured. |
www.aliyun.com |
| Config |
string |
Yes |
The configuration of the Blacklist/Whitelist (Domain Names) feature, in JSON format. The JSON string contains the following field: bwlist_enable: the status of the Blacklist/Whitelist (Domain Names) feature. This field is required and must be of the integer type. Valid values:
|
{"bwlist_enable":1} |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| RequestId |
string |
The request ID. |
0bcf28g5-d57c-11e7-9bs0-d89d6717dxbc |
Examples
Success response
JSON format
{
"RequestId": "0bcf28g5-d57c-11e7-9bs0-d89d6717dxbc"
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.