Adds a routing algorithm configuration 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 table in the logical database. You can call the ListLogicTables operation to obtain the value of this parameter. |
4**** |
| RouteKey |
string |
Yes |
The unique key of the routing algorithm. Note
|
id-hash-mod16 |
| RouteExpr |
string |
Yes |
The expression of the routing algorithm. You can refer to the DMS documentation to configure the routing algorithm expression. For more information, see Routing algorithm configuration. |
#id#%16 |
| Tid |
integer |
No |
The tenant ID. You can call the GetUserActiveTenant operation to obtain the value of this parameter. |
4*** |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| RequestId |
string |
The request ID. |
B43AD641-49C2-5299-9E06-1B37EC1B**** |
| ErrorCode |
string |
The error code. |
UnknownError |
| ErrorMessage |
string |
The error message. |
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.