CreateCrossRegionReplication

Updated at:

Creates a cross-region replication task for a specified MaxCompute project and returns the task ID upon success. Each project can have at most one cross-region replication task. The backup region must be different from the source region, and the current tenant must have an available secondary quota in the backup region. Before creating the task, call ListAvailableReplicationRegions to query the available destination regions for the project.

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

POST /api/v1/crossRegionReplications HTTP/1.1

Request parameters

Parameter

Type

Required

Description

Example

region

string

No

The source region ID. This parameter is optional. The server preferentially uses the region where the default quota of the source project is located. If the project does not return this region, this parameter is used. If this parameter is also left empty, the region of the current request is used.

cn-shanghai

tenantId

string

No

The tenant ID. This parameter is optional. The server determines the tenant based on the caller identity. Specifying this parameter does not change the tenant to which the task belongs.

1000000000000000

body

object

No

The configuration of the cross-region replication task, including the source project name and the backup region ID.

projectName

string

Yes

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

example_project

backupRegion

string

Yes

The backup region ID. This parameter is required. Select an available destination region for the project.

cn-hangzhou

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.

200

errorCode

string

The error code returned when the request fails.

NO_PERMISSION

errorMsg

string

The error message returned when the request fails.

Access denied.

data

integer

The ID of the cross-region replication task returned after the task is created.

12345

Examples

Success response

JSON format

{
  "requestId": "00000000-0000-4000-8000-000000000001",
  "httpCode": 200,
  "errorCode": "NO_PERMISSION",
  "errorMsg": "Access denied.",
  "data": 12345
}

Error codes

See Error Codes for a complete list.

Release notes

See Release Notes for a complete list.