Queries logical tables in a logical database.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
dms:ListLogicTables |
list |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| Tid |
integer |
No |
The ID of the tenant. Note
To view the tenant ID, hover over the profile picture in the upper-right corner of the Data Management (DMS) console. For more information, see Manage DMS tenants. |
-1 |
| DatabaseId |
string |
Yes |
The ID of the logical database. |
1 |
| PageNumber |
integer |
No |
The number of the page to return. |
1 |
| PageSize |
integer |
No |
The number of entries to return on each page. |
10 |
| SearchName |
string |
No |
The keyword that is used to search for the logical tables. Prefix match is supported. |
test |
| ReturnGuid |
boolean |
No |
Specifies whether to return the GUID of the table. |
true |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| TotalCount |
integer |
The total number of logical tables that meet the query conditions. |
1 |
| LogicTableList |
object |
||
| LogicTable |
array<object> |
The details of the logical tables. |
|
|
array<object> |
|||
| DatabaseId |
string |
The ID of the logical database. |
1 |
| TableName |
string |
The name of the logical table. |
test |
| TableCount |
string |
The number of logical tables. |
4 |
| OwnerIdList |
object |
||
| OwnerIds |
array |
The IDs of the owners of the logical tables. |
|
|
string |
The ID of the owner of a logical table. |
1 |
|
| OwnerNameList |
object |
||
| OwnerNames |
array |
The nicknames of the owners of the logical tables. |
|
|
string |
The nickname of the owner of a logical table. |
owner_name |
|
| SchemaName |
string |
The logical database to which the logical table belongs. |
yuyang_test |
| Logic |
boolean |
Indicates whether the table is a logical table. The value is fixed to true. |
true |
| TableExpr |
string |
The expression of the logical table. |
test[1-4] |
| TableGuid |
string |
The GUID of the logical table. |
IDB_L_308302.yuyang_test.test_ch |
| TableId |
string |
The ID of the logical table. |
1 |
| RequestId |
string |
The ID of the request. |
F1E6484F-9DF1-4406-9BDE-0861C4629B69 |
| ErrorCode |
string |
The error code. |
UnknownError |
| ErrorMessage |
string |
The error message. |
UnknownError |
| Success |
boolean |
Indicates whether the request is successful. |
true |
Examples
Success response
JSON format
{
"TotalCount": 1,
"LogicTableList": {
"LogicTable": [
{
"DatabaseId": "1",
"TableName": "test",
"TableCount": "4",
"OwnerIdList": {
"OwnerIds": [
"1"
]
},
"OwnerNameList": {
"OwnerNames": [
"owner_name"
]
},
"SchemaName": "yuyang_test",
"Logic": true,
"TableExpr": "test[1-4]",
"TableGuid": "IDB_L_308302.yuyang_test.test_ch",
"TableId": "1"
}
]
},
"RequestId": "F1E6484F-9DF1-4406-9BDE-0861C4629B69",
"ErrorCode": "UnknownError",
"ErrorMessage": "UnknownError",
"Success": true
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.