Queries the proportions of HTTP status codes that are returned during back-to-origin routing.

Usage notes

  • The maximum number of times that each user can call this operation per second is 100.
  • If you do not set StartTime or EndTime, data collected within the last 24 hours is queried. If you set both StartTime and EndTime, data collected within the specified time range is queried.
Time granularity

The time granularity supported by the Interval parameter, the maximum time period within which historical data is available, and the data delay vary with the time range to query, as described in the following table.

Time granularity

Time range to query

Historical data available

Data delay

5 minutes

3 days

93 days

15 minutes

1 hour

31 days

186 days

4 hours

1 day

366 days

366 days

04:00 on the next day

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 DescribeDomainSrcHttpCodeData

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

DomainName String No example.com,example.org

You can specify multiple domain names and separate them with commas (,). You can specify at most 500 domain names in each call.

StartTime String No 2019-11-30T05:33:00Z

The start of the time range to query.

Specify the time in the ISO 8601 standard in the yyyy-MM-ddTHH:mm:ssZ format. The time must be in UTC.

EndTime String No 2019-11-30T05:40:00Z

The end of the time range to query.

Specify the time in the ISO 8601 standard in the yyyy-MM-ddTHH:mm:ssZ format. The time must be in UTC. The time must be in UTC.

Note The end time must be later than the start time.
Interval String No 300

The time interval between the data entries. Unit: seconds.

The time granularity varies with the time range to query. Supported values: 300 (5 minutes), 3600 (1 hour), and 86400 (1 day). For more information, see Usage notes.

Response parameters

Parameter Type Example Description
EndTime String 2015-11-30T05:40:00Z

The end of the time range that was queried.

StartTime String 2015-11-30T05:33:00Z

The beginning of the time range that was queried.

RequestId String BC858082-736F-4A25-867B-E5B67C85ACF7

The ID of the request.

DomainName String example.com,example.org

The accelerated domain name.

DataInterval String 300

The time interval between the data entries returned. Unit: seconds.

HttpCodeData Array of UsageData

The proportions of HTTP status codes at each time interval.

UsageData
TimeStamp String 2015-11-30T05:30:00Z

The timestamp of the data returned.

Value Array of CodeProportionData

The proportions of HTTP status codes.

CodeProportionData
Code String 200

The HTTP status code.

Proportion String 67.1458998935037

The proportion of the HTTP status code.

Count String 2300

The total number of HTTP status codes returned.

Examples

Sample requests

http://cdn.aliyuncs.com/?Action=DescribeDomainSrcHttpCodeData
&DomainName=example.com,example.org
&StartTime=2019-11-30T05:33:00Z
&EndTime=2019-11-30T05:40:00Z
&<Common request parameters>

Sample success responses

XML format

HTTP/1.1 200 OK
Content-Type:application/xml

<DescribeDomainSrcHttpCodeDataResponse>	
<HttpCodeData>
    <UsageData>
        <TimeStamp>2019-11-30T05:35:00Z</TimeStamp>
        <Value>
            <CodeProportionData>
                <Count>1</Count>
                <Proportion>100</Proportion>
                <Code>200</Code>
            </CodeProportionData>
        </Value>
    </UsageData>
</HttpCodeData>
<DataInterval>300</DataInterval>
<RequestId>A2E05931-13B7-40C3-843F-ECD9423959C1</RequestId>
<EndTime>2019-11-30T05:40:00Z</EndTime>
<StartTime>2019-11-30T05:33:00Z</StartTime>
</DescribeDomainSrcHttpCodeDataResponse>

JSON format

HTTP/1.1 200 OK
Content-Type:application/json

{
  "HttpCodeData" : {
    "UsageData" : [ {
      "TimeStamp" : "2019-11-30T05:35:00Z",
      "Value" : {
        "CodeProportionData" : [ {
          "Count" : 1,
          "Proportion" : 100,
          "Code" : "200"
        } ]
      }
    } ]
  },
  "DataInterval" : 300,
  "RequestId" : "A2E05931-13B7-40C3-843F-ECD9423959C1",
  "EndTime" : "2019-11-30T05:40:00Z",
  "StartTime" : "2019-11-30T05:33:00Z"
}

Error codes

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