All Products
Search
Document Center

Enterprise Distributed Application Service:MigrateEcu

Last Updated:Dec 22, 2025

Transfers an ECU to the default cluster in a specified namespace.

Operation description

Usage notes

This API operation is deprecated. Use the TransformClusterMember operation instead. For more information, see TransformClusterMember.

This operation imports an Elastic Compute Service (ECS) instance and reinstalls its operating system. This process deletes all data on the instance. You must also reset the logon password. Before you import an instance, back up its data or make sure it contains no important data.

Terms

  • Namespace: A logical concept in Enterprise Distributed Application Service (EDAS) used to isolate resources and microservices. Resources include clusters, ECS instances, and applications. Namespaces can be default or custom. Each region has one default namespace and can have multiple custom namespaces. By default, only the default namespace is available. You do not need to create a custom namespace if you do not want to isolate resources and microservices.

  • ECU: An ECS instance becomes an Elastic Compute Unit (ECU) after it is imported into a cluster.

  • ECC: An ECU in a cluster becomes an Elastic Compute Container (ECC) after it is deployed in an application.

Try it now

Try this API in OpenAPI Explorer, no manual signing needed. Successful calls auto-generate SDK code matching your parameters. Download it with built-in credential security for local usage.

Test

RAM authorization

The table below describes the authorization required to call this API. You can define it in a Resource Access Management (RAM) policy. The table's columns are detailed below:

  • Action: The actions can be used in the Action element of RAM permission policy statements to grant permissions to perform the operation.

  • API: The API that you can call to perform the action.

  • Access level: The predefined level of access granted for each API. Valid values: create, list, get, update, and delete.

  • Resource type: The type of the resource that supports authorization to perform the action. It indicates if the action supports resource-level permission. The specified resource must be compatible with the action. Otherwise, the policy will be ineffective.

    • For APIs with resource-level permissions, required resource types are marked with an asterisk (*). Specify the corresponding Alibaba Cloud Resource Name (ARN) in the Resource element of the policy.

    • For APIs without resource-level permissions, it is shown as All Resources. Use an asterisk (*) in the Resource element of the policy.

  • Condition key: The condition keys defined by the service. The key allows for granular control, applying to either actions alone or actions associated with specific resources. In addition to service-specific condition keys, Alibaba Cloud provides a set of common condition keys applicable across all RAM-supported services.

  • Dependent action: The dependent actions required to run the action. To complete the action, the RAM user or the RAM role must have the permissions to perform all dependent actions.

Action

Access level

Resource type

Condition key

Dependent action

edas:MigrateEcu

update

*All Resource

*

None None

Request syntax

POST /pop/v5/resource/migrate_ecu HTTP/1.1

Request parameters

Parameter

Type

Required

Description

Example

InstanceIds

string

Yes

The IDs of the instances. To specify multiple instances, separate the IDs with commas (,).

i-2zej4i2jdf3ntwhj****

LogicalRegionId

string

No

The ID of the namespace.

  • A custom namespace ID is in the format Region ID:Namespace identifier. Example: cn-beijing:tdy218.

  • A default namespace ID is the same as its region ID. Example: cn-beijing.

cn-hangzhou:test_region

Response elements

Element

Type

Description

Example

object

The API response.

Code

integer

The status code of the API call.

200

Message

string

The returned message.

success

Data

string

The data returned.

  • true: The operation was successful.

  • false: The operation failed.

true

RequestId

string

The request ID.

04B0ABAF-95F2-42B6-A7B1****

Examples

Success response

JSON format

{
  "Code": 200,
  "Message": "success",
  "Data": "true",
  "RequestId": "04B0ABAF-95F2-42B6-A7B1****"
}

Error codes

See Error Codes for a complete list.

Release notes

See Release Notes for a complete list.