Queries the routing algorithms of a logical table.

Debugging

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.

LogicTableRouteConfig
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.

Examples

Sample requests

http(s)://dms-enterprise.aliyuncs.com/?Action=ListLogicTableRouteConfig
&TableId=1****
&Tid=3***
&Common request parameters

Sample success responses

XML format

HTTP/1.1 200 OK
Content-Type:application/xml

<ListLogicTableRouteConfigResponse>
    <RequestId>7C6A0D7D-B034-59F6-854C-32425AC6****</RequestId>
    <LogicTableRouteConfigList>
        <LogicTableRouteConfig>
            <TableId>1****</TableId>
            <RouteExpr>#id#%16	</RouteExpr>
            <RouteKey>1</RouteKey>
        </LogicTableRouteConfig>
        <LogicTableRouteConfig>
            <TableId>1****</TableId>
            <RouteExpr>#id#%16	</RouteExpr>
            <RouteKey>id-hash-mod17	</RouteKey>
        </LogicTableRouteConfig>
        <LogicTableRouteConfig>
            <TableId>1****</TableId>
            <RouteExpr>#id#%16	</RouteExpr>
            <RouteKey>id-test</RouteKey>
        </LogicTableRouteConfig>
    </LogicTableRouteConfigList>
    <Success>true</Success>
</ListLogicTableRouteConfigResponse>

JSON format

HTTP/1.1 200 OK
Content-Type:application/json

{
  "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.