GetCrossRegionReplicationTrends

Updated at:

Queries the daily cross-region replication trends of a specified MaxCompute project to retrieve the source project data volume, replicated data volume, and daily replication traffic. You must specify the backup region, start date, and end date. If no matching replication tasks exist, an empty list is returned.

Try it now

Try this API in OpenAPI Explorer, no manual signing needed. Successful calls auto-generate SDK code matching your parameters. Download it with built-in credential security for local usage.

Test

RAM authorization

No authorization for this operation. If you encounter issues with this operation, contact technical support.

Request syntax

GET /api/v1/crossRegionReplications/{projectName}/repTrends HTTP/1.1

Path Parameters

Parameter

Type

Required

Description

Example

projectName

string

Yes

The name of the MaxCompute project that serves as the replication source. This parameter is required.

example_project

Request parameters

Parameter

Type

Required

Description

Example

backupRegion

string

Yes

The ID of the backup region for the replication task. This parameter is required.

cn-hangzhou

startDate

string

Yes

The start date of the query. This parameter is required. The format is yyyy-MM-dd. The date must be valid and cannot be later than the end date.

2026-12-01

endDate

string

Yes

The end date of the query. This parameter is required. The format is yyyy-MM-dd. The date must be valid. If the end date is the same as the start date, the trend records for that day are queried.

2026-12-03

tenantId

string

No

The ID of the tenant to which the replication task belongs. If this parameter is omitted or an empty string is passed, the tenant ID corresponding to the current request identity is used.

1000000000000000

Response elements

Element

Type

Description

Example

object

PopResult

requestId

string

The unique identifier of the request. You can provide this value for troubleshooting.

00000000-0000-4000-8000-000000000001

httpCode

integer

The HTTP status code of the request. The value is 200 if the query is successful, or 400 if the date format is invalid.

200

errorCode

string

The error code returned when the request fails. If the date is not a valid yyyy-MM-dd date, ILLEGAL_ARGUMENT is returned.

ILLEGAL_ARGUMENT

errorMsg

string

The error message returned when the request fails.

startDate must be a valid date in yyyy-MM-dd format

data

object

The query result, which contains a list of daily cross-region replication trends.

crossRegionReplicationTrends

array<object>

The list of cross-region replication trend records. If no matching replication tasks exist, the list is empty.

object

projectName

string

The name of the MaxCompute project that serves as the replication source.

example_project

totalDataSize

integer

The total data volume of the source project on the statistical date.

1048576

replicatedDataSize

integer

The amount of replicated data in the backup region on the statistical date.

524288

replicationFlowSize

integer

The cross-region replication traffic corresponding to the trend record. If no transmission record is matched for the day within the query range, 0 is returned.

131072

dateTime

string

The statistical date to which the trend record belongs.

2026-12-04T00:00:00.000+08:00

Examples

Success response

JSON format

{
  "requestId": "00000000-0000-4000-8000-000000000001",
  "httpCode": 200,
  "errorCode": "ILLEGAL_ARGUMENT",
  "errorMsg": "startDate must be a valid date in yyyy-MM-dd format",
  "data": {
    "crossRegionReplicationTrends": [
      {
        "projectName": "example_project",
        "totalDataSize": 1048576,
        "replicatedDataSize": 524288,
        "replicationFlowSize": 131072,
        "dateTime": "2026-12-04T00:00:00.000+08:00"
      }
    ]
  }
}

Error codes

See Error Codes for a complete list.

Release notes

See Release Notes for a complete list.