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
Authorization information
Request parameters
Parameter | Type | Required | Description | Example |
---|---|---|---|---|
DdosRegionId | string | Yes | The region ID of the asset to query. Note
You can call the DescribeRegions operation to query the most recent region list.
| cn-hangzhou |
InstanceType | string | Yes | The type of the asset to query. Valid values:
| ecs |
Response parameters
Examples
Sample success responses
JSON
format
{
"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.