Queries Elastic Compute Service (ECS) instances 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 uses only the common request header. For more information, see Common request parameters.

Request syntax

GET /pop/v5/resource/migrate_ecu_list HTTP/1.1

Request parameters

Parameter Type Position Required Example Description
LogicalRegionId String Query No cn-hangzhou or cn-hangzhou:test

The ID of the namespace.

  • The ID of a custom namespace is in the format of Region ID:Namespace identifier. For example, cn-beijing:test is the ID of a custom namespace.
  • The ID of the default namespace is in the format of region ID. For example, cn-beijing is the ID of the default namespace.

Response parameters

Parameter Type Example Description
Code Integer 200

The HTTP status code.

EcuEntityList Array of EcuEntity

The ECS instances that can be migrated.

EcuEntity
AvailableCpu Integer 2

The number of available CPUs. Unit: cores.

AvailableMem Integer 2048

The size of available memory. Unit: MB.

Cpu Integer 0

The CPU quota set by the system. Unit: cores. The value 0 indicates that no quota is set by the system.

CreateTime Long 1573281041101

The time when the elastic compute unit (ECU) was created. This value is a UNIX timestamp representing the number of milliseconds that have elapsed since the epoch time January 1, 1970, 00:00:00 UTC.

DockerEnv Boolean false

Indicates whether Docker was installed. Valid values:

  • true: Docker was installed.
  • false: Docker was not installed.
EcuId String 70ed3f59-b476-49aa-****-************

The unique ID of the ECU. To query the ID, you can run the dmidecode command on the ECS instance that corresponds to the ECU.

HeartbeatTime Long 1573281041101

The heartbeat time of the ECU. This value is a UNIX timestamp representing the number of milliseconds that have elapsed since the epoch time January 1, 1970, 00:00:00 UTC.

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

The ID of the ECS instance.

IpAddr String 192.168.0.150

The private IP address of the ECU.

Mem Integer 0

The total size of memory.

Name String product_test003

The name of the ECS instance.

Online Boolean true

Indicates whether the ECS instance is online.

  • true: The ECS instance is online.
  • false: The ECS instance is offline.
RegionId String cn-beijing

The ID of the region.

UpdateTime Long 1573281041109

The time when the ECU was updated. This value is a UNIX timestamp representing the number of milliseconds that have elapsed since the epoch time January 1, 1970, 00:00:00 UTC.

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

The ID of the Alibaba Cloud account to which the ECU belongs.

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

VPC ID

ZoneId String cn-bei****-*

The ID of the zone.

Message String success

The returned message that indicates whether the request is successful.

RequestId String b197-40ab-9155-7ca7

The ID of the request.

Examples

Sample requests

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

Sample success responses

XML format

<Message>success</Message>
<Code>200</Code>
<EcuEntityList>
    <EcuEntity>
        <AvailableMem>2048</AvailableMem>
        <Mem>0</Mem>
        <AvailableCpu>2</AvailableCpu>
        <InstanceId>i-2zej4i2jdf3ntw****</InstanceId>
        <Online>true</Online>
        <UpdateTime>1573281041109</UpdateTime>
        <UserId>edas_****_test@aliyun-****.com</UserId>
        <ZoneId>cn-beijing-h</ZoneId>
        <VpcId>vpc-2zef6ob8mrlzv8x3****</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-9e6c37****</EcuId>
        <DockerEnv>false</DockerEnv>
    </EcuEntity>
</EcuEntityList>

JSON format

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

Error codes

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