Queries the statistics on advanced mitigation sessions of an Anti-DDoS Premium instance.

Usage notes

You can call the DescribeDefenseCountStatistics operation to query the information about advanced mitigation sessions of an Anti-DDoS Premium instance. For example, you can query the number of advanced mitigation sessions that are used within the current calendar month and the number of available global advanced mitigation sessions.

Notice This operation is suitable only for Anti-DDoS Premium.

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. OpenAPI Explorer dynamically generates the sample code of the operation for different SDKs.

Request parameters

Parameter Type Required Example Description
Action String Yes DescribeDefenseCountStatistics

The operation that you want to perform. Set the value to DescribeDefenseCountStatistics.

RegionId String No ap-southeast-1

The region ID of the instance. Set the value to ap-southeast-1, which indicates Anti-DDoS Premium instances outside the Chinese mainland.

ResourceGroupId String No rg-acfm2pz25js****

The ID of the resource group to which the Anti-DDoS Premium instance belongs in Resource Management.

If you do not specify this parameter, the instance belongs to the default resource group.

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 310A41FD-0990-5610-92E0-A6A55D7C6444

The ID of the request.

DefenseCountStatistics Object

The statistics on the number of advanced mitigation sessions.

FlowPackCountRemain Integer 0

The number of available global advanced mitigation sessions for the Insurance mitigation plan.

MaxUsableDefenseCountCurrentMonth Integer 20

The maximum number of advanced mitigation sessions available for the current calendar month. The advanced mitigation sessions include the advanced mitigation sessions that are provided free of charge and the global advanced mitigation sessions that you purchase.

DefenseCountTotalUsageOfCurrentMonth Integer 0

The number of advanced mitigation sessions that are used within the current calendar month.

SecHighSpeedCountRemain Integer 0

The number of available global advanced mitigation sessions for the Secure Mainland China Acceleration (Sec-MCA) mitigation plan.

Examples

Sample requests

http(s)://[Endpoint]/?Action=DescribeDefenseCountStatistics
&Common request parameters

Sample success responses

XML format

HTTP/1.1 200 OK
Content-Type:application/xml

<DescribeDefenseCountStatisticsResponse>
    <RequestId>310A41FD-0990-5610-92E0-A6A55D7C6444</RequestId>
    <DefenseCountStatistics>
        <FlowPackCountRemain>0</FlowPackCountRemain>
        <MaxUsableDefenseCountCurrentMonth>20</MaxUsableDefenseCountCurrentMonth>
        <DefenseCountTotalUsageOfCurrentMonth>0</DefenseCountTotalUsageOfCurrentMonth>
        <SecHighSpeedCountRemain>0</SecHighSpeedCountRemain>
    </DefenseCountStatistics>
</DescribeDefenseCountStatisticsResponse>

JSON format

HTTP/1.1 200 OK
Content-Type:application/json

{
  "RequestId" : "310A41FD-0990-5610-92E0-A6A55D7C6444",
  "DefenseCountStatistics" : {
    "FlowPackCountRemain" : 0,
    "MaxUsableDefenseCountCurrentMonth" : 20,
    "DefenseCountTotalUsageOfCurrentMonth" : 0,
    "SecHighSpeedCountRemain" : 0
  }
}

Error codes

For a list of error codes, visit the API Error Center.