TransformToEcs

Updated at:

Converts a local disk instance to a cloud-native instance.

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

kvstore:TransformToEcs

update

*All Resource

*

None None

Request parameters

Parameter

Type

Required

Description

Example

InstanceClass

string

Yes

The instance type of the destination cloud-native instance. For more information, see Instance type navigation.

Note

Note

  • For a cluster instance, you must specify a cloud-native cluster instance type that includes with.proxy and specify the ShardCount parameter to define the number of shards.

tair.rdb.1g tair.rdb.with.proxy.1g

ChargeType

string

No

The billing method of the destination instance. Valid values:

  • PostPaid: Pay-as-you-go.

  • PrePaid: Subscription. If you set this parameter to PrePaid, you must also specify the Period parameter.

Valid values:

  • PrePaid
  • PostPaid

PostPaid

Period

integer

No

The subscription duration. Unit: months. Valid values: 1 to 9, 12, 24, and 36.

Note

This parameter is required and takes effect only when the ChargeType parameter is set to PrePaid.

1

ShardCount

integer

No

The number of data shards in the cloud-native cluster instance.

2

InstanceId

string

Yes

The ID of the classic instance to be converted.

r-bp1zxszhcgatnx****

EngineVersion

string

Yes

The Redis-compatible engine version of the instance. Valid values: 5.0, 6.0, and 7.0.

Valid values:

  • 5.0
  • 6.0
  • 7.0
  • 8.1
  • 1.4

5.0

EffectiveTime

string

No

The time when the database switchover is performed after data migration. Valid values:

  • Immediately: The switchover is performed immediately after the migration is complete.

  • MaintainTime: The switchover is performed within the maintenance window.

Note

Default value: Immediately.

Valid values:

  • Immediately
  • MaintainTime

Immediately

AutoRenew

string

No

Specifies whether to enable auto-renewal. Valid values:

  • true: Enables auto-renewal.

  • false: Disables auto-renewal.

Valid values:

  • true
  • false

false

AutoRenewPeriod

integer

No

The auto-renewal epoch. Unit: months. Valid values: 1, 2, 3, 6, and 12.

Note

This parameter is required when the AutoRenew parameter is set to true.

Valid values:

  • 1
  • 2
  • 3
  • 6
  • 12

1

DryRun

boolean

No

Specifies whether to perform a dry run before creating the instance. Valid values:

  • true: Performs a dry run without creating the cloud-native instance. The dry run checks the request parameters, request format, service limits, and inventory. If the dry run fails, an error is returned. If the dry run succeeds, the DryRunOperation error code is returned.

  • false (default): Sends a normal request and creates the instance directly after the check passes.

true

IsAcrossZone

boolean

No

Specifies whether to migrate the instance across zones. Valid values:

  • true: Migrates the instance across zones.

  • false (default): Does not migrate the instance across zones.

Note

Default value: false.

false

IzNo

string

No

The ID of the destination primary zone after the instance is migrated to cloud disks.

This parameter is required when IsAcrossZone is set to true. It specifies the primary zone where the instance resides after the migration. You can call the DescribeZones operation to query the list of supported zones.

cn-hangzhou-*-aliyun

VSwitchId

string

No

The ID of the vSwitch in the destination primary zone after the instance is migrated to cloud disks.

This parameter is required when IsAcrossZone is set to true. It specifies the vSwitch in the destination zone. You can call the DescribeVSwitches operation to query the information about created vSwitches.

vsw-bp1e7clcw529l773d****

SecondaryIzNo

string

No

The ID of the destination secondary zone after the instance is migrated to cloud disks.

This parameter is required when IsAcrossZone is set to true and the instance needs to be deployed in a multi-zone architecture. It specifies the zone where the secondary node resides after the migration.

cn-hangzhou-*-aliyun

Response elements

Element

Type

Description

Example

object

Schema of Response

RequestId

string

Id of the request

DAABAD9B-890F-56C0-806C-6144946594AB

OrderId

string

The order ID.

20905403119****

Examples

Success response

JSON format

{
  "RequestId": "DAABAD9B-890F-56C0-806C-6144946594AB",
  "OrderId": "20905403119****"
}

Error codes

See Error Codes for a complete list.

Release notes

See Release Notes for a complete list.