Modifies the custom frequency control rule of a website.

Debugging

OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer. OpenAPI Explorer dynamically generates the sample code of the operation for different SDKs.

Request parameters

Parameter Type Required Example Description
Action String Yes ModifyWebCCRule

The operation that you want to perform. Set the value to ModifyWebCCRule.

Act String Yes close

The blocking type. Valid values:

  • close: Block
  • captcha: Captcha Verification
Count Integer Yes 3

The number of requests that is allowed from an individual IP address. Valid values: 2 to 2000.

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.
Interval Integer Yes 30

The check intervals. Valid values: 5 to 10800. Unit: seconds.

Mode String Yes prefix

The matching mode. Valid values:

  • prefix: Prefix Match
  • match: Exact Match
Name String Yes testrule

The name of the custom frequency control rule.

Ttl Integer Yes 10

The blocking duration. Valid values: 1 to 1440. Unit: minutes.

Uri String Yes /abc

The check path.

RegionId String No cn-hangzhou

The region ID of the instance. Valid values:

  • cn-hangzhou: mainland China, which indicates an Anti-DDoS Pro instance
  • ap-southeast-1: outside mainland China, which indicates an Anti-DDoS Premium instance
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.

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=ModifyWebCCRule
&Act=close
&Count=3
&Domain=www.aliyun.com
&Interval=30
&Mode=prefix
&Name=testrule
&Ttl=10
&Uri=/abc
&<Common request parameters>

Sample success responses

XML format

<ModifyWebCCRuleResponse>
      <RequestId>0bcf28g5-d57c-11e7-9bs0-d89d6717dxbc</RequestId>
</ModifyWebCCRuleResponse>

JSON format

{
  "RequestId": "0bcf28g5-d57c-11e7-9bs0-d89d6717dxbc"
}

Error codes

For a list of error codes, visit the API Error Center.