All Products
Search
Document Center

Anti-DDoS:ModifyDefenseThreshold

Last Updated:Nov 13, 2024

Changes the scrubbing thresholds for an asset that is assigned a public IP address.

Operation description

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

You can run this interface directly in OpenAPI Explorer, saving you the trouble of calculating signatures. After running successfully, OpenAPI Explorer can automatically generate SDK code samples.

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.
OperationAccess levelResource typeCondition keyAssociated operation
yundun-ddos:ModifyDefenseThresholdupdate
  • All Resources
    *
    none
none

Request parameters

ParameterTypeRequiredDescriptionExample
DdosRegionIdstringYes

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
InstanceTypestringYes

The type of the asset. Valid values:

  • ecs: an Elastic Compute Service (ECS) instance.
  • slb: a Server Load Balancer (SLB) instance.
  • eip: an elastic IP address (EIP).
  • ipv6: an IPv6 gateway.
  • swas: a simple application server.
  • waf: a Web Application Firewall (WAF) instance of the Exclusive edition.
  • ga_basic: a Global Accelerator (GA) instance.
ecs
InstanceIdstringYes

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****
BpsintegerNo

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
PpsintegerNo

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
IsAutobooleanNo

Specifies whether to automatically adjust the scrubbing threshold based on the traffic load on the asset. Valid values:

  • true: automatically adjusts the scrubbing thresholds. You do not need to configure the Bps and Pps parameters.
  • false: The scrubbing threshold is not automatically adjusted. You must configure the Bps and Pps parameters.

Default value: false.

false
InternetIpstringNo

The IP address of the asset.

192.0.XX.XX

Response parameters

ParameterTypeDescriptionExample
object
RequestIdstring

The ID of the request, which is used to locate and troubleshoot issues.

BC0607F8-A9F3-5E11-977B-D59CD58C64ED

Examples

Sample success responses

JSONformat

{
  "RequestId": "BC0607F8-A9F3-5E11-977B-D59CD58C64ED"
}

Error codes

For a list of error codes, visit the Service error codes.

Change history

Change timeSummary of changesOperation
No change history