SwitchCrossRegionReplication
Switches the specified MaxCompute project to the backup cluster configured for its cross-region replication task and marks the task as switched. If the project passes tenant verification and has no replication tasks to be switched, the operation directly returns ok. To switch the compute quota, configure the quota of the destination cluster separately.
Try it now
Test
RAM authorization
Request syntax
POST /api/v1/crossRegionReplications/{projectName}/switch HTTP/1.1
Path Parameters
|
Parameter |
Type |
Required |
Description |
Example |
| projectName |
string |
Yes |
The name of the MaxCompute project to switch to the backup cluster. This parameter is required. |
example_project |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| tenantId |
string |
No |
This parameter is optional. The server uses the tenant ID associated with the current request identity to verify project ownership. Specifying this parameter does not change the tenant that performs the operation. |
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 request succeeds. |
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 |
string |
The value ok returned when the request is processed successfully. This value is returned when the switchover is completed, the project has no replication tasks, or the tasks have already been switched. |
ok |
Examples
Success response
JSON format
{
"requestId": "00000000-0000-4000-8000-000000000001",
"httpCode": 200,
"errorCode": "NO_PERMISSION",
"errorMsg": "Access denied.",
"data": "ok"
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.