Obtains the query volume of DNS over HTTPS (DoH) subdomains.

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 DescribeDohSubDomainStatistics

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

EndDate String Yes 2019-07-04

The end of the time range to query. Specify the time in the YYYY-MM-DD format.

The default value is the day when you perform the operation.

StartDate String Yes 2019-07-04

The beginning of the time range to query. Specify the time in the YYYY-MM-DD format.

You can query only the DNS records of the latest 90 days. The value of StartDate must be greater than or equal to the difference between the current date and 90.

SubDomain String Yes www.example.com

The subdomain whose statistics you want to query.

Lang String No en

The language type.

Response parameters

Parameter Type Example Description
RequestId String 0F32959D-417B-4D66-8463-68606605E3E2

The ID of the request.

Statistics Array of Statistic

The statistics list.

Timestamp Long 1544976000000

The timestamp.

TotalCount Long 3141592653

The total number of requests.

V4HttpCount Long 3141592653

The number of IPv4-based HTTP requests.

V4HttpsCount Long 3141592653

The number of IPv4-based HTTPS requests.

V6HttpCount Long 3141592653

The number of IPv6-based HTTP requests.

V6HttpsCount Long 3141592653

The number of IPv6-based HTTPS requests.

Examples

Sample requests

http(s)://alidns.aliyuncs.com/?Action=DescribeDohSubDomainStatistics
&EndDate=2019-07-04
&StartDate=2019-07-04
&SubDomain=www.example.com
&<Common request parameters>

Sample success responses

XML format

<RequestId>0F32959D-417B-4D66-8463-68606605E3E2</RequestId>
<Statistics>
    <TotalCount>3141592653</TotalCount>
    <V4HttpCount>3141592653</V4HttpCount>
    <V6HttpCount>3141592653</V6HttpCount>
    <Timestamp>1544976000000</Timestamp>
    <V4HttpsCount>3141592653</V4HttpsCount>
    <V6HttpsCount>3141592653</V6HttpsCount>
</Statistics>

JSON format

{
    "RequestId": "0F32959D-417B-4D66-8463-68606605E3E2",
    "Statistics": [{
        "TotalCount": "3141592653",
        "V4HttpCount": "3141592653",
        "V6HttpCount": "3141592653",
        "Timestamp": "1544976000000",
        "V4HttpsCount": "3141592653",
        "V6HttpsCount": "3141592653"
    }]
}

Error codes

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