Converts an instance use local disks to a cloud-native instance.
Debugging
Authorization information
The following table shows the authorization information corresponding to the API. The authorization information can be used in the Action policy element to grant a RAM user or RAM role the permissions to call this API operation. Description:
- Operation: the value that you can use in the Action element to specify the operation on a resource.
- Access level: the access level of each operation. The levels are read, write, and list.
- Resource type: the type of the resource on which you can authorize the RAM user or the RAM role to perform the operation. Take note of the following items:
- For mandatory resource types, indicate with a prefix of * .
- If the permissions cannot be granted at the resource level,
All Resourcesis used in the Resource type column of the operation.
- Condition Key: the condition key that is defined by the cloud service.
- Associated operation: other operations that the RAM user or the RAM role must have permissions to perform to complete the operation. To complete the operation, the RAM user or the RAM role must have the permissions to perform the associated operations.
| Operation | Access level | Resource type | Condition key | Associated operation |
|---|---|---|---|---|
| kvstore:TransformToEcs | update | *All Resources * |
| none |
Request parameters
| Parameter | Type | Required | Description | Example |
|---|---|---|---|---|
| InstanceClass | string | Yes | The instance specification of the cloud-native instance. For more information, see Overview . | tair.rdb.1g |
| ChargeType | string | No | The new billing method. Valid values:
| PostPaid |
| Period | long | No | The subscription duration of the instance. Unit: months. Valid values: 1, 2, 3, 4, 5, 6, 7, 8, 9, 12, 24, 36. Note
This parameter is available and required only if the ChargeType parameter is set to PrePaid.
| 1 |
| ShardCount | long | No | The number of data shards in the cloud-native cluster instance. | 2 |
| InstanceId | string | Yes | The ID of the instance that you want to convert. | r-bp1zxszhcgatnx**** |
| EngineVersion | string | Yes | The database engine version of the instance. Valid values: 5.0, 6.0, and 7.0. | 5.0 |
| EffectiveTime | string | No | The time when a database switchover is performed after data is migrated. Valid values:
Note
Default value: Immediately.
| Immediately |
| AutoRenew | string | No | Specifies whether to enable the auto-renewal feature. Valid values:
| false |
| AutoRenewPeriod | long | No | The subscription duration that is supported by auto-renewal. Unit: month. Valid values: 1, 2, 3, 6, and 12. Note
This parameter is required if the AutoRenew parameter is set to true.
| 1 |
| DryRun | boolean | No | Specifies whether to perform a precheck before the system creates the instance. Valid values:
| true |
Response parameters
Examples
Sample success responses
JSONformat
{
"RequestId": "DAABAD9B-890F-56C0-806C-6144946594AB",
"OrderId": "20905403119****"
}Error codes
For a list of error codes, visit the Service error codes.
Change history
| Change time | Summary of changes | Operation |
|---|
