You can call this operation to query Elastic Compute Units (ECUs) that 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_ecu_list HTTPS|HTTP

Request parameters

Parameter Type Required Example Description
LogicalRegionId String No test_region

The ID of the logical region where you want to query ECUs that can be migrated. 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 a

The returned message.

RequestId String b197-40ab-9155-7ca7

The ID of the request.

EcuEntityList Array

The returned list of ECUs that can be migrated.

EcuId String 70ed3f59-b476-49aa-****-************

The ID of the ECU returned. To query the ECU ID, you can run dmidecode on the Elastic Compute Service (ECS) instance corresponding to the ECU.

Online Boolean true

Indicates whether the returned ECU is available.

DockerEnv Boolean false

Indicates whether Docker is installed on the ECS instance corresponding to the returned ECU.

CreateTime Long 1573281041101

The time when the returned ECU was created.

UpdateTime Long 1573281041109

The time when the returned ECU was updated.

IpAddr String 192.168.0.150

The intranet IP address allocated to the returned ECU.

HeartbeatTime Long 1573281041101

The heartbeat time of the ECU returned.

UserId String edas_com***_****@******-*****. ***

The ID of the user associated with the ECU returned.

Name String product_test003

The name of the ECU returned.

ZoneId String cn-bei****-*

The ID of the zone where the returned ECU is located.

RegionId String cn-beijing

The ID of the region where the returned ECU is located.

InstanceId String i-2zej4i2jd***********

The ID of the ECS instance corresponding to the ECU returned.

VpcId String vpc-2zef6ob8m************

The ID of the virtual private cloud (VPC) where the returned ECU is located.

AvailableCpu Integer 2

The number of available CPUs in the ECU returned.

AvailableMem Integer 2048

The amount of available memory in the ECU returned. Unit: MB

Cpu Integer 0

The total number of CPUs in the ECU returned.

Mem Integer 0

The total amount of memory in the ECU returned. Unit: MB

Examples

Sample requests

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

Sample success responses

JSON format

{
    "Message": "success",
    "Code": 200,
    "EcuEntityList": {
        "EcuEntity": [
            {
                "AvailableMem": 2048,
                "Mem": 0,
                "AvailableCpu": 2,
                "InstanceId": "i-2zej4i2jdf3ntwhjigne",
                "Online": true,
                "UpdateTime": 1573281041109,
                "UserId": "edas_****_test@aliyun-****.com",
                "ZoneId": "cn-beijing-h",
                "VpcId": "vpc-2zef6ob8mrlzv8x3q****",
                "IpAddr": "192.168.0.150",
                "Name": "product_test003",
                "Cpu": 0,
                "HeartbeatTime": 1573281041101,
                "CreateTime": 1573281041101,
                "RegionId": "test_region",
                "EcuId": "70ed3f59-b476-49aa-be09-9e6c375d****",
                "DockerEnv": false
            }
        ]
    }
}

XML format

<Message>success</Message>
<Code>200</Code>
<EcuEntityList>
    <EcuEntity>
        <AvailableMem>2048</AvailableMem>
        <Mem>0</Mem>
        <AvailableCpu>2</AvailableCpu>
        <InstanceId>i-2zej4i2jdf3ntwhj****</InstanceId>
        <Online>true</Online>
        <UpdateTime>1573281041109</UpdateTime>
        <UserId>edas_****_test@aliyun-****.com</UserId>
        <ZoneId>cn-beijing-h</ZoneId>
        <VpcId>vpc-2zef6ob8mrlzv8x3q****</VpcId>
        <IpAddr>192.168.0.150</IpAddr>
        <Name>product_test003</Name>
        <Cpu>0</Cpu>
        <HeartbeatTime>1573281041101</HeartbeatTime>
        <CreateTime>1573281041101</CreateTime>
        <RegionId>test_region</RegionId>
        <EcuId>70ed3f59-b476-49aa-be09-9e6c375d****</EcuId>
        <DockerEnv>false</DockerEnv>
    </EcuEntity>
</EcuEntityList>

Error codes

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