Queries the routing algorithms of a logical table.


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 ListLogicTableRouteConfig

The operation that you want to perform. Set the value to ListLogicTableRouteConfig.

TableId Long Yes 1****

The ID of the logical table. You can call the ListLogicTables operation to query the ID of the logical table.

Tid Long No 3***

The ID of the tenant. You can call the GetUserActiveTenant operation to query the tenant ID.

RegionId String No cn-hangzhou

The region in which DMS is activated. For more information, see RegionID parameter.

Response parameters

Parameter Type Example Description
RequestId String 7C6A0D7D-B034-59F6-854C-32425AC6****

The ID of the request.

ErrorCode String MissingTableId

The error code returned.

ErrorMessage String TableId is mandatory for this action.

The error message returned.

Success Boolean true

Indicates whether the request was successful. Valid values:

  • true: The request was successful.
  • false: The request failed.
LogicTableRouteConfigList Array of LogicTableRouteConfig

The routing algorithms.

RouteKey String 1

The unique key of the routing algorithm.

RouteExpr String #id#%16\t

The routing algorithm expression.

TableId Long 4****

The ID of the logical table.


Sample requests

&Common request parameters

Sample success responses

XML format

HTTP/1.1 200 OK

            <RouteExpr>#id#%16	</RouteExpr>
            <RouteExpr>#id#%16	</RouteExpr>
            <RouteKey>id-hash-mod17	</RouteKey>
            <RouteExpr>#id#%16	</RouteExpr>

JSON format

HTTP/1.1 200 OK

  "RequestId" : "7C6A0D7D-B034-59F6-854C-32425AC6****",
  "LogicTableRouteConfigList" : {
    "LogicTableRouteConfig" : [ {
      "TableId" : "1****",
      "RouteExpr" : "#id#%16\t",
      "RouteKey" : "1"
    }, {
      "TableId" : "1****",
      "RouteExpr" : "#id#%16\t",
      "RouteKey" : "id-hash-mod17\t"
    }, {
      "TableId" : "1****",
      "RouteExpr" : "#id#%16\t",
      "RouteKey" : "id-test"
    } ]
  "Success" : true

Error codes

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