Adds a routing algorithm to a logical table.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
dms:AddLogicTableRouteConfig |
create |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| TableId |
integer |
Yes |
The ID of the logical table. You can call the ListLogicTables operation to query the ID of the logical table. |
4**** |
| RouteKey |
string |
Yes |
The unique key of the routing algorithm. Note
|
id-hash-mod16 |
| RouteExpr |
string |
Yes |
The routing algorithm expression. For more information about how to configure a routing algorithm expression, see Configure a routing algorithm. |
#id#%16 |
| Tid |
integer |
No |
The ID of the tenant. You can call the GetUserActiveTenant operation to query the tenant ID. |
4*** |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| RequestId |
string |
The ID of the request. |
B43AD641-49C2-5299-9E06-1B37EC1B**** |
| ErrorCode |
string |
The error code returned. |
UnknownError |
| ErrorMessage |
string |
The error message returned. |
can not find table, tableId : 11133 |
| Success |
boolean |
Indicates whether the request was successful. Valid values:
|
true |
Examples
Success response
JSON format
{
"RequestId": "B43AD641-49C2-5299-9E06-1B37EC1B****",
"ErrorCode": "UnknownError",
"ErrorMessage": "can not find table, tableId : 11133",
"Success": true
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.