Call CreateShardTask to create a sharding task.


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 parameters

Parameter Type Required Example Description
Action String Yes CreateShardTask

Required parameter. Value: CreateShardTask.

DbName String Yes test

The name of the DRDS database.

DrdsInstanceId String Yes drds************

The ID of the DRDS instance.

SourceTableName String Yes test_tb1

The name of the source table.

TargetTableName String Yes test_tb2

The name of the destination table.

TaskType String Yes SINGLE_TO_SHARD

The type of the task. Valid values: SHARD_TO_SINGLE, SINGLE_TO_SHARD, SHARD_TO_SHARD.

RegionId String No cn-hangzhou

The ID of the region where the resource group resides.

Response parameters

Parameter Type Example Description
Data Boolean true

Task creation result

RequestId String F8997D95-94AD-416A-AE70-E24D08******

The ID of the request.

Success Boolean true

The result of the operation.


Sample requests

http(s):// Action=CreateShardTask
&<Common request parameters>

Sample success responses

XML format


JSON format


Error codes

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