Calls the CreateShardTask operation to create a sharding task.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
drds:CreateShardTask |
create |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| RegionId |
string |
No |
The region ID. |
cn-hangzhou |
| DrdsInstanceId |
string |
Yes |
The instance ID of the DRDS instance. |
drds************ |
| DbName |
string |
Yes |
The name of the database. |
test |
| SourceTableName |
string |
Yes |
The name of the source table. |
test_tb1 |
| TargetTableName |
string |
Yes |
The name of the target table. |
test_tb2 |
| TaskType |
string |
Yes |
The task type. Valid values: |
SINGLE_TO_SHARD |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| Data |
boolean |
The result of the task creation. |
true |
| RequestId |
string |
The request ID. |
F8997D95-94AD-416A-AE70-E24D08****** |
| Success |
boolean |
The result of the request. |
true |
Examples
Success response
JSON format
{
"Data": true,
"RequestId": "F8997D95-94AD-416A-AE70-E24D08******",
"Success": true
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 500 | InternalError | The request processing has failed due to some unknown error. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.