Adds a routing algorithm to a logical table.
Debugging
Authorization information
There is currently no authorization information disclosed in the API.
Request parameters
Parameter | Type | Required | Description | Example |
---|---|---|---|---|
TableId | long | 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 | long | No | The ID of the tenant. You can call the GetUserActiveTenant operation to query the tenant ID. | 4*** |
Response parameters
Examples
Sample success responses
JSON
format
{
"RequestId": "B43AD641-49C2-5299-9E06-1B37EC1B****",
"ErrorCode": "UnknownError",
"ErrorMessage": "can not find table, tableId : 11133",
"Success": true
}
Error codes
For a list of error codes, visit the Service error codes.
Change history
Change time | Summary of changes | Operation |
---|
No change history