Disables traffic scrubbing for an asset. The asset can be an elastic IP address (EIP). The asset can also be an Elastic Compute Service (ECS) instance or Server Load Balancer (SLB) instance that is assigned a public IP address.
Usage notes
You can call the ModifyDdosStatus operation to disable traffic scrubbing for an asset.
Before you call this operation, you can call the DescribeInstance operation to query the DDoS mitigation status of an asset. If the value of the InstanceStatus parameter is mitigating in the response, you can call the ModifyDdosStatus operation to disable traffic scrubbing.
Limits
You can call this operation up to 10 times per second per account. If the number of the calls per second exceeds the limit, throttling is triggered. As a result, your business may be affected. We recommend that you take note of the limit when you call this operation.
Debugging
Request parameters
Parameter | Type | Required | Example | Description |
---|---|---|---|---|
Action | String | Yes | ModifyDdosStatus |
The operation that you want to perform. Set the value to ModifyDdosStatus. |
DdosRegionId | String | Yes | cn-hangzhou |
The region ID of the asset for which you want to disable traffic scrubbing. Note You can call the DescribeRegions operation to query the most recent region list.
|
InstanceType | String | Yes | ecs |
The type of the asset for which you want to disable traffic scrubbing. Valid values:
|
InstanceId | String | Yes | i-8vb92grktcqipjmi**** |
The ID of the asset for which you want to disable traffic scrubbing. Note You can call the DescribeInstance operation to query the IDs of ECS instances, SLB instances, and EIPs within the current
Alibaba Cloud account.
|
All Alibaba Cloud API operations must include common request parameters. For more information about common request parameters, see Common parameters.
For more information about sample requests, see the "Examples" section of this topic.
Response parameters
Parameter | Type | Example | Description |
---|---|---|---|
RequestId | String | C06033C3-20DF-5055-8F46-9354F86857DD |
The ID of the request. |
Examples
Sample requests
http(s)://[Endpoint]/?Action=ModifyDdosStatus
&DdosRegionId=cn-hangzhou
&InstanceType=ecs
&InstanceId=i-8vb92grktcqipjmi****
&Common request parameters
Sample success responses
XML
format
HTTP/1.1 200 OK
Content-Type:application/xml
<ModifyDdosStatusResponse>
<RequestId>C06033C3-20DF-5055-8F46-9354F86857DD</RequestId>
</ModifyDdosStatusResponse>
JSON
format
HTTP/1.1 200 OK
Content-Type:application/json
{
"RequestId" : "C06033C3-20DF-5055-8F46-9354F86857DD"
}
Error codes
For a list of error codes, visit the API Error Center.