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.
Debugging
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:
|
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. |
Examples
Sample requests
http(s)://[Endpoint]/?Action=DescribeInstanceStatistics
&InstanceIds.1=ddoscoo-cn-mp91j1ao****
&<Common request parameters>
Sample success responses
XML
format
<DescribeInstanceStatisticsResponse>
<InstanceStatistics>
<PortUsage>2</PortUsage>
<SiteUsage>1</SiteUsage>
<InstanceId>ddoscoo-cn-mp91j1ao****</InstanceId>
<DomainUsage>1</DomainUsage>
</InstanceStatistics>
<RequestId>642319A9-D1F2-4459-A447-E57CFC599FDE</RequestId>
</DescribeInstanceStatisticsResponse>
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.