Queries the content of an operations report.

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 DescribeDcdnReport

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

EndTime String Yes 2021-07-02T01:00:00Z

The end of the time range to query. The time in the ISO 8601 standard in the YYYY-MM-DDTHH:mm:ssZ format. The time must be in UTC.

ReportId Long Yes 2

The ID of the operations report that you want to query. You can specify only one ID in each call. You can call the DescribeDcdnSubList operation to query report IDs.

StartTime String Yes 2021-07-02T00:00:00Z

The start of the time range to query. The time in the ISO 8601 standard in the YYYY-MM-DDTHH:mm:ssZ format. The time must be in UTC.

DomainName String No www.example1.com,www.example2.com

The domain names that you want to query. Separate domain names with commas (,).

Area String No shanghai

The region. You can call the DescribeDcdnRegionAndIsp operation to query the most recent region list.

  • If you do not specify a region, all regions are queried.
  • If you specify a region, data about the specified region is returned. You can specify one or more regions. Separate multiple regions with commas (,).
IsOverseas String No 0

Specifies whether the region is outside mainland China. Valid values:

  • 1: outside mainland China
  • 0: inside mainland China
HttpCode String No 2xx

The HTTP status code. Valid values:

  • 2xx: HTTP 2xx status codes
  • 3xx: HTTP 3xx status codes
  • 4xx: HTTP 4xx status codes
  • 5xx: HTTP 5xx status codes

If you do not specify an HTTP status code, all HTTP status codes are queried.

Parameters required by each report metric

Report metric

Required parameter

Description

Page view (PV) and unique visitor (UV)

Action, ReportId, DomainName, StartTime, and EndTime

Other parameters are not supported.

Top client IP addresses (ranked by the amount of network traffic)

Action, ReportId, DomainName, Area, StartTime, and EndTime

Other parameters are not supported.

Top client IP addresses (ranked by the number of requests)

Action, ReportId, DomainName, Area, StartTime, and EndTime

Other parameters are not supported.

Distribution of requests by region

Action, ReportId, DomainName, IsOverseas, StartTime, and EndTime

Other parameters are not supported.

Distribution of Internet service providers

Action, ReportId, DomainName, IsOverseas, StartTime, and EndTime

Other parameters are not supported.

Frequently used referer headers (ranked by the amount of network traffic)

Action, ReportId, DomainName, StartTime, and EndTime

Other parameters are not supported.

Frequently used referer headers (ranked by the number of requests)

Action, ReportId, DomainName, StartTime, and EndTime

Other parameters are not supported.

Frequently requested URLs (ranked by the amount of network traffic)

Action, ReportId, DomainName, HttpCode, StartTime, and EndTime

Other parameters are not supported.

Frequently requested URLs (ranked by the number of requests)

Action, ReportId, DomainName, HttpCode, StartTime, and EndTime

Other parameters are not supported.

Frequently requested back-to-origin URLs (ranked by the amount of network traffic)

Action, ReportId, DomainName, HttpCode, StartTime, and EndTime

Other parameters are not supported.

Frequently requested back-to-origin URLs (ranked by the number of requests)

Action, ReportId, DomainName, HttpCode, StartTime, and EndTime

Other parameters are not supported.

Domain names ranked by the amount of network traffic

Action, ReportId, StartTime, and EndTime

Other parameters are not supported.

Response parameters

Parameter Type Example Description
Content String "data":[{"deliver":{"report":{"title":"TopUrlByAcc","format":"table","shape":"","header":["url","traf","traf_rate","acc","acc_rate"]}}

The content of the operations report.

RequestId String 04F0F334-1335-436C-A1D7-6C044FE73368

The ID of the request.

Fields of the Content parameter

Parameter

Type

Description

deliver

report

The type of the report.

data

String[]

The content in the operations report, for example, [{"Header Field 1":"value1","Header Field 2":"value2"}, {"Header Field 1":"value3","Header Field 2":"value4"}].

Fields of the report parameter

Parameter

Type

Description

title

String

The title of the operations report.

format

String

The type of the operations report. Valid values:

chart: The returned report is a chart.

table: The returned report is a table.

shape

String

The type of the chart. When format is a table, ignore this field. Valid values:

line: The returned report is a line chart.

pie: The returned report is a pie chart.

bar: The returned report is a bar chart.

header

String[]

The fields that are used as the table headers.

legend

String

The fields that are used as the legends.

xAxis

String

The x-axis of the chart. This value is empty if the x-axis does not exist.

yAxis

String

The y-axis of the chart. This value is empty if the y-axis does not exist.

Examples

Sample requests

http(s)://dcdn.aliyuncs.com/?Action=DescribeDcdnReport
&ReportId=2
&DomainName=www.example1.com,www.example2.com
&StartTime=2021-07-02T00:00:00Z
&EndTime=2021-07-02T01:00:00Z
&<Common request parameters>

Sample success responses

XML format

<DescribeDcdnReportResponse>
  <RequestId>04F0F334-1335-436C-A1D7-6C044FE73368</RequestId>
  <Content>
        <data>
              <deliver>
                    <report>
                          <title>TopUrlByAcc</title>
                          <format>table</format>
                          <shape></shape>
                          <header>url</header>
                          <header>traf</header>
                          <header>traf_rate</header>
                          <header>acc</header>
                          <header>acc_rate</header>
                    </report>
              </deliver>
              <data>
                    <acc>440</acc>
                    <acc_rate>0.200%</acc_rate>
                    <traf>22</traf>
                    <url>http://example.com</url>
                    <traf_rate>0.100%</traf_rate>
              </data>
              <data>
                    <acc>440</acc>
                    <acc_rate>0.200%</acc_rate>
                    <traf>22</traf>
                    <url>http://example.com</url>
                    <traf_rate>0.100%</traf_rate>
              </data>
        </data>
  </Content>
</DescribeDcdnReportResponse>

JSON format

{
    "RequestId":"04F0F334-1335-436C-A1D7-6C044FE73368",
    "Content":{
        "data":[
            {
                "deliver":{
                    "report":{
                        "title":"TopUrlByAcc",
                        "format":"table",
                        "shape":"",
                        "header":[
                            "url",
                            "traf",
                            "traf_rate",
                            "acc",
                            "acc_rate"
                        ]
                    }
                },
                "data":[
                        {
                            "acc":440,
                            "acc_rate":"0.200%",
                            "traf":22,
                            "url":"http://example.com",
                            "traf_rate":"0.100%"
                        },
                        {
                            "acc":440,
                            "acc_rate":"0.200%",
                            "traf":22,
                            "url":"http://example.com",
                            "traf_rate":"0.100%"
                        }                                          
                ]
            }
        ]
    }
}

Error codes

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