All Products
Search
Document Center

Anti-DDoS:DescribeDdosCount

Last Updated:Mar 01, 2024

Queries the number of assets that are under DDoS attacks in a specific region. The assets can be elastic IP addresses (EIPs). The assets can also be Elastic Compute Service (ECS) instances or Server Load Balancer (SLB) instances that are assigned public IP addresses.

Operation description

You can call the DescribeDdosCount operation to query the number of assets that are under DDoS attacks in a specific region.

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

OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer.

Authorization information

There is currently no authorization information disclosed in the API.

Request parameters

ParameterTypeRequiredDescriptionExample
DdosRegionIdstringYes

The region ID of the asset to query.

Note You can call the DescribeRegions operation to query the most recent region list.
cn-hangzhou
InstanceTypestringYes

The type of the asset to query. Valid values:

  • ecs: ECS instance
  • slb: SLB instance
  • eip: EIP
ecs

Response parameters

ParameterTypeDescriptionExample
object
RequestIdstring

The ID of the request.

7D66C762-324E-51CE-B461-2007996087B2
DdosCountobject

The number of assets that are under DDoS attacks.

BlackholeCountinteger

The number of assets for which blackhole filtering is triggered.

0
InstacenCountinteger

The total number of assets.

0
DefenseCountinteger

The number of assets for which traffic scrubbing is triggered.

4

Examples

Sample success responses

JSONformat

{
  "RequestId": "7D66C762-324E-51CE-B461-2007996087B2",
  "DdosCount": {
    "BlackholeCount": 0,
    "InstacenCount": 0,
    "DefenseCount": 4
  }
}

Error codes

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