Queries the remaining quota that you can use the Diversion from Origin Server policy.

Note This operation is suitable only for Anti-DDoS Pro.

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 DescribeUnBlockCount

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

RegionId String No cn-hangzhou

The region ID of the instance. Set the value to cn-hangzhou, which indicates an Anti-DDoS Pro instance.

ResourceGroupId String No default

The ID of the resource group to which the instance belongs in Resource Management. This parameter is empty by default, which indicates that the instance belongs to the default resource group.

Response parameters

Parameter Type Example Description
RemainCount Integer 7

The remaining quota that you can use the Diversion from Origin Server policy.

RequestId String C33EB3D5-AF96-43CA-9C7E-37A81BC06A1E

The ID of the request.

TotalCount Integer 10

The total quota that you can use the Diversion from Origin Server policy.

Examples

Sample requests

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

Sample success responses

XML format

<DescribeUnBlockCountResponse>
      <RequestId>C33EB3D5-AF96-43CA-9C7E-37A81BC06A1E</RequestId>
      <TotalCount>10</TotalCount>
      <RemainCount>7</RemainCount>
</DescribeUnBlockCountResponse>

JSON format

{
    "RequestId": "C33EB3D5-AF96-43CA-9C7E-37A81BC06A1E",
    "TotalCount": 10,
    "RemainCount": 7
}

Error codes

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