Queries the tables in a database.
Operation description
You can call this operation only for database instances whose control mode is Security Collaboration.
Debugging
Authorization information
There is currently no authorization information disclosed in the API.
Request parameters
Parameter | Type | Required | Description | Example |
---|---|---|---|---|
Tid | long | No | The ID of the tenant. You can call the GetUserActiveTenant or ListUserTenants operation to query the tenant ID. | 3*** |
DatabaseId | string | Yes | The ID of the physical database. You can call the ListDatabases or SearchDatabase operation to obtain the ID of the physical database. | 1860**** |
PageNumber | integer | Yes | 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 name used to search for tables. Fuzzy search is supported. | test |
ReturnGuid | boolean | No | Specifies whether to return the GUID of a table. Valid values:
| true |
Response parameters
Examples
Sample success responses
JSON
format
{
"TotalCount": 1,
"RequestId": "B16FB618-5E96-4FFD-BB0D-490C890A4030",
"ErrorCode": "UnknownError",
"TableList": {
"Table": [
{
"DatabaseId": "1860****",
"TableName": "consumption_records",
"StoreCapacity": 1024,
"OwnerIdList": {
"OwnerIds": [
"51****"
]
},
"Description": "test",
"Encoding": "utf8",
"OwnerNameList": {
"OwnerNames": [
"owner_name"
]
},
"TableSchemaName": "qntest",
"TableType": "NORMAL",
"TableGuid": "IDB_44743****.qntest.consumption_records",
"Engine": "InnoDB",
"NumRows": 10085,
"TableId": "44743****"
}
]
},
"ErrorMessage": "UnknownError",
"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