You can call this operation to query regions to which a resource can be migrated.

Debugging

OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer. OpenAPI Explorer dynamically generates the sample code of the operation for different SDKs.

Request headers

This operation only uses common request headers. For more information, see the Common request parameters topic.

Request syntax

GET /pop/v5/resource/migrate_region_select HTTPS|HTTP

Request parameters

Parameter Type Required Example Description
LogicalRegionId String No ""

The ID of the logical region to which you want to migrate a resource. The value set for this parameter will replace the value of regionId.

Response parameters

Parameter Type Example Description
Code Integer 200

The returned code.

Message String success

The returned message.

RequestId String b197-40ab-9155-7ca7

The ID of the request.

RegionEntityList Array

The returned list of regions.

RegionNo String cn-beijing:beta

The ID of the region returned.

RegionName String Beta

The name of the region returned.

Examples

Sample requests

GET /pop/v5/resource/migrate_region_select HTTP/1.1
Common request headers

Sample success responses

JSON format

{
    "Message": "success",
    "RegionEntityList": {
        "RegionEntity": [
            {
                "RegionName": "Beta",
                "RegionNo": "cn-beijing:beta"
            },
            {
                "RegionName": "AllFlow",
                "RegionNo": "cn-beijing:AllFlow"
            },
            {
                "RegionName": "doc-test",
                "RegionNo": "cn-beijing:doc"
            },
            {
                "RegionName": "test_region",
                "RegionNo": "cn-beijing:test"
            }
        ]
    },
    "Code": 200
}

XML format

<Message>success</Message>
<RegionEntityList>
    <RegionEntity>
        <RegionName>Beta</RegionName>
        <RegionNo>cn-beijing:beta</RegionNo>
    </RegionEntity>
    <RegionEntity>
        <RegionName>AllFlow</RegionName>
        <RegionNo>cn-beijing:AllFlow</RegionNo>
    </RegionEntity>
    <RegionEntity>
        <RegionName>doc-test</RegionName>
        <RegionNo>cn-beijing:doc</RegionNo>
    </RegionEntity>
    <RegionEntity>
        <RegionName>test_region</RegionName>
        <RegionNo>cn-beijing:test</RegionNo>
    </RegionEntity>
</RegionEntityList>
<Code>200</Code>

Error codes

For a list of error codes, visit the API Error Center.