Queries the statistics on one or more Anti-DDoS Pro or Anti-DDoS Premium instances, such as the numbers of protected domain names and ports.


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 DescribeInstanceStatistics

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

InstanceIds.N RepeatList Yes ddoscoo-cn-mp91j1ao****

The ID of instance N.

Note You can call the DescribeInstanceIds operation to query the IDs of all instances.
RegionId String No cn-hangzhou

The region ID of the instance. Valid values:

  • cn-hangzhou: mainland China, which indicates an Anti-DDoS Pro instance
  • ap-southeast-1: outside mainland China, which indicates an Anti-DDoS Premium instance

Response parameters

Parameter Type Example Description
InstanceStatistics Array

The statistical information of the instance.

DefenseCountUsage Integer 1

The number of advanced mitigation sessions used in this month.

Note This parameter is returned only if Anti-DDoS Premium instances are queried.
DomainUsage Integer 1

The number of domain names protected by the instance.

InstanceId String ddoscoo-cn-mp91j1ao****

The ID of the instance.

PortUsage Integer 2

The number of ports protected by the instance.

SiteUsage Integer 1

The number of websites protected by the instance.

RequestId String 642319A9-D1F2-4459-A447-E57CFC599FDE

The ID of the request.


Sample requests

&<Common request parameters>

Sample success responses

XML format


JSON format

    "InstanceStatistics": [
            "PortUsage": 2,
            "SiteUsage": 1,
            "InstanceId": "ddoscoo-cn-mp91j1ao****",
            "DomainUsage": 1
    "RequestId": "642319A9-D1F2-4459-A447-E57CFC599FDE"

Error codes

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