Enables or disables the Intelligent Protection policy for a website.
Debugging
Authorization information
There is currently no authorization information disclosed in the API.
Request parameters
Parameter | Type | Required | Description | Example |
---|---|---|---|---|
ResourceGroupId | string | No | 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. | default |
Domain | string | Yes | The domain name of the website. Note
A forwarding rule must be configured for a domain name. You can call the DescribeDomains operation to query all domain names.
| www.aliyun.com |
Config | string | Yes | The details of the Intelligent Protection policy. This parameter is a JSON string. The string contains the following fields:
| {"AiRuleEnable": 1} |
Response parameters
Examples
Sample success responses
JSON
format
{
"RequestId": "0bcf28g5-d57c-11e7-9bs0-d89d6717dxbc"
}
Error codes
For a list of error codes, visit the Service error codes.