Queries the monitoring data of Layer 4 network traffic for one or more accelerated domain names. You can query data collected within the last 90 days.

Note
  • 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.
  • The monitoring data is measured in bytes.

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 software development kits (SDKs).

Request parameters

Parameter Type Required Example Description
Action String Yes DescribeDcdnDomainIpaTrafficData

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

DomainName String No example.com

The name of the accelerated domain name.

You can specify one or more accelerated domain names. Separate them with commas (,). By default, all accelerated domain names that belong to your Alibaba Cloud account are queried.

StartTime String No 2017-12-10T20:00:00Z

The beginning of the time range to query.

The time follows the ISO 8601 standard in the yyyy-MM-ddTHH:mm:ssZ format. The time is displayed in UTC.

EndTime String No 2017-12-10T21:00:00Z

The end of the time range to query.

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

Note The end time must be later than the start time.
TimeMerge String No 1

Specify whether to automatically calculate the value of the Interval parameter. If you set the TimeMerge parameter to 1, the value of the Interval parameter is automatically assigned based on the StartTime and EndTime parameters. You can set this parameter or the Interval parameter.

Interval String No 300

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

The valid values vary based on the values of the StartTime and EndTime parameters. Valid values:

  • If the time range between StartTime and EndTime is less than 3 days, valid values are 300, 3600, and 86400. Default value: 300.
  • If the time range between StartTime and EndTime is from 3 to 31 days (31 days excluded), valid values are 3600 and 86400. Default value: 3600.
  • If the time range between StartTime and EndTime is 31 days or longer, the valid value is 86400. Default value: 86400.
FixTimeGap String No false

Specify whether to implement padding with zeros. Valid values:

  • true: Yes
  • false: No
IspNameEn String No unicom

The name of the Internet service provider (ISP) for Dynamic Route for CDN (DCDN).

You can call the DescribeCdnRegionAndIsp operation to query the most recent ISP list. If you do not specify an ISP, all ISPs are queried.

LocationNameEn String No beijing

The name of the region.

You can call the DescribeCdnRegionAndIsp operation to query the most recent region list. If you do not specify a region, all regions are queried.

Response parameters

Parameter Type Example Description 
DataInterval String 300

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

DomainName String example.com

The accelerated domain name.

EndTime String 2017-12-10T21:00:00Z

The end of the time range that was queried.

RequestId String B955107D-E658-4E77-B913-E0AC3D31693E

The ID of the request.

StartTime String 2017-12-10T20:00:00Z

The beginning of the time range that was queried.

TrafficDataPerInterval Array of DataModule

The monitoring data of network traffic that was collected at each interval.

DataModule
IpaTraffic Float 423304182

The total amount of network traffic.

TimeStamp String 2017-12-10T20:00:00Z

The timestamp of the data returned.

Examples

Sample requests

http(s)://dcdn.aliyuncs.com/?Action=DescribeDcdnDomainIpaTrafficData
&DomainName=example.com
&StartTime=2017-12-10T20:00:00Z
&EndTime=2017-12-10T21:00:00Z
&<Common request parameters>

Sample success responses

XML format

<DescribeDcdnDomainIpaTrafficDataResponse>
	  <DomainName>example.com</DomainName>
	  <DataInterval>300</DataInterval>
	  <TrafficDataPerInterval>
		    <DataModule>
			      <TimeStamp>2017-12-10T20:00:00Z</TimeStamp>
			      <IpaTraffic>423304182</IpaTraffic>
		    </DataModule>
	  </TrafficDataPerInterval>
	  <RequestId>B955107D-E658-4E77-B913-E0AC3D31693E</RequestId>
	  <StartTime>2017-12-10T20:00:00Z</StartTime>
	  <EndTime>2017-12-10T21:00:00Z</EndTime>
</DescribeDcdnDomainIpaTrafficDataResponse>

JSON format

{
    "DomainName": "example.com",
    "DataInterval": "300",
    "TrafficDataPerInterval": {
        "DataModule": [
            {
                "TimeStamp": "2017-12-10T20:00:00Z",
                "IpaTraffic": 423304182
            }
        ]
    },
    "RequestId": "B955107D-E658-4E77-B913-E0AC3D31693E",
    "StartTime": "2017-12-10T20:00:00Z",
    "EndTime": "2017-12-10T21:00:00Z"
}

Error codes

HttpCode Error code Error message Required
400 MissingTimeParameter The StartTime and EndTime must be both specified. The error message returned because both the StartTime and EndTime parameters must be set.
400 InvalidEndTime.Malformed The specified EndTime is invalid. The error message returned because the format of the specified end time is invalid. Specify the time in the ISO 8601 standard in the yyyy-MM-ddTHH:mm:ssZ format. The time must be in UTC.
400 InvalidEndTime.Mismatch The specified EndTime is earlier than the StartTime. The error message returned because the specified end time is earlier than the specified start time.
400 InvalidStartTime.ValueNotSupported The specified StartTime is invalid. The error message returned because the specified start time parameter is invalid.

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