Changes the scrubbing thresholds for an asset that is assigned a public IP address.
Operation description
Debugging
Authorization information
The following table shows the authorization information corresponding to the API. The authorization information can be used in the Action
policy element to grant a RAM user or RAM role the permissions to call this API operation. Description:
- Operation: the value that you can use in the Action element to specify the operation on a resource.
- Access level: the access level of each operation. The levels are read, write, and list.
- Resource type: the type of the resource on which you can authorize the RAM user or the RAM role to perform the operation. Take note of the following items:
- The required resource types are displayed in bold characters.
- If the permissions cannot be granted at the resource level,
All Resources
is used in the Resource type column of the operation.
- Condition Key: the condition key that is defined by the cloud service.
- Associated operation: other operations that the RAM user or the RAM role must have permissions to perform to complete the operation. To complete the operation, the RAM user or the RAM role must have the permissions to perform the associated operations.
Operation | Access level | Resource type | Condition key | Associated operation |
---|---|---|---|---|
yundun-ddos:ModifyDefenseThreshold | update |
|
| none |
Request parameters
Parameter | Type | Required | Description | Example |
---|---|---|---|---|
DdosRegionId | string | Yes | The region ID of the asset for which you want to change the scrubbing thresholds. Note
You can call the DescribeRegions operation to query the most recent region list.
| cn-hangzhou |
InstanceType | string | Yes | The type of the asset. Valid values:
| ecs |
InstanceId | string | Yes | The ID of the asset. Note
You can call the DescribeInstance operation to query the IDs of ECS instances, SLB instances, and EIPs within the current Alibaba Cloud account.
| i-uf6idy3c57psf7vu**** |
Bps | integer | No | The traffic scrubbing threshold. Unit: Mbit/s. The traffic scrubbing threshold cannot exceed the peak inbound or outbound Internet traffic, whichever is larger, of the asset. When you modify Bps, Pps is required. Otherwise, Bps does not take effect. You can use the monitoring tool that is provided by the asset to query the Internet traffic of the asset:
| 100 |
Pps | integer | No | The packet scrubbing threshold. Unit: packets per second (PPS). When you modify Pps, Bps is required. Otherwise, Pps does not take effect. The packet scrubbing threshold cannot exceed the peak number of inbound or outbound packets, whichever is larger, of the asset. You can use the monitoring tool that is provided by the asset to query the number of packets of the asset:
| 70000 |
IsAuto | boolean | No | Specifies whether to automatically adjust the scrubbing threshold based on the traffic load on the asset. Valid values:
Default value: false. | false |
InternetIp | string | No | The IP address of the asset. | 192.0.XX.XX |
Response parameters
Examples
Sample success responses
JSON
format
{
"RequestId": "BC0607F8-A9F3-5E11-977B-D59CD58C64ED"
}
Error codes
For a list of error codes, visit the Service error codes.
Change history
Change time | Summary of changes | Operation |
---|