DescribeCloudRouterDCToDCTraffic

1. API Description

This API is used to query cloud router access point bandwidth information from data center to data center in the specified date range.

circle-info

Note

  • You can obtain data center information in the Layer 3 Cloud Router by calling the DescribeCloudRouters API.

  • The time span between the start time and end time must not exceed one day.

  • Only traffic data within the last 30 days can be queried.

  • This API aggregates bandwidth data by data center and cannot distinguish traffic of individual access points within the same data center.\ For example, when querying bandwidth from data center A to Z, the returned result represents the total bandwidth from all access points in A to Z. It is not possible to retrieve bandwidth data between specific access points.

2. Input Parameters

The following request parameter list only provides API request parameters.

Parameter Name
Required
Type
Description

cloudRouterId

Yes

String

Layer 3 Cloud Router ID.

sourceDcId

Yes

String

Source data center ID.

destinationDcId

Yes

String

Destination data center ID.

startTime

Yes

Start time.

Use UTC time according to the ISO8601 standard. Format: YYYY-MM-DDThh:mm:ssZ.

endTime

No

End time.

Use UTC time according to the ISO8601 standard. Format: YYYY-MM-DDThh:mm:ssZ. End time is current time by default.

3. Output Parameters

Parameter Name
Type
Description

requestId

String

The unique request ID, which is returned for each request. RequestId is required for locating a problem.

dataList

Array of TrafficData

List of bandwidth data.

in95

Float

Inbound burstable 95th bandwidth.

inAvg

Integer

Average value of inbound bandwidth.

inMax

Integer

Maximum value of inbound bandwidth.

inMin

Integer

Minimum value of inbound bandwidth.

out95

Integer

Outbound burstable 95th bandwidth.

outAvg

Integer

Average value of outbound bandwidth.

outMax

Integer

Maximum value of outbound bandwidth.

outMin

Integer

Minimum value of outbound bandwidth.

unit

String

Unit of bandwidth. For example, bps.

4. Code Example

Query the bandwidth information of the access point from data center to data center in a cloud router in one day.

5. Developer Resources

Zenlayer Cloud API 2.0 integrates SDKs to make it easier for you to call APIs. More programming languages will be supported.

6. Error Codes

The following only lists the error codes related to the API business logic. For other error codes, see Common Error Codes.​

HTTP Status Code
Error Code
Description

404

INVALID_DATACENTER_NOT_FOUND

Data center does not exist.

403

INVALID_START_TIME_MUST_BEFORE_END_TIME

The start time should be earlier than the end time.

403

INVALID_TIME_RANGE

Invalid date range. The date range should be within 24 hours.

403

TIME_OUT_OF_RANGE

Only the bandwidth information within 30 days are supported to query.

403

INVALID_TIME_FORMAT

Invalid time format.

Last updated