ListAvailableReplicationRegions
Queries the destination regions available for cross-region replication for a specified MaxCompute project and returns a list of region IDs. You can call this operation before configuring cross-region replication for a project to confirm the available destination regions. This operation is free of charge.
Try it now
Test
RAM authorization
Request syntax
GET /api/v1/crossRegionReplications/{projectName}/availableReplicationRegions 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. |
example_project |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
No parameters required.
Response elements
|
Element |
Type |
Description |
Example |
|
object |
PopResult<List |
||
| requestId |
string |
The unique identifier of the request, which can be used 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 |
array |
The list of region IDs that can serve as destinations for cross-region replication. The list does not include the region where the source project is located. If no destination regions are available, an empty list is returned. |
|
|
string |
The region ID of the destination region. |
cn-hangzhou |
Examples
Success response
JSON format
{
"requestId": "00000000-0000-4000-8000-000000000001",
"httpCode": 200,
"errorCode": "NO_PERMISSION",
"errorMsg": "Access denied.",
"data": [
"cn-hangzhou"
]
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.