Queries the list of table assets under an inventory task by using paging.
Operation description
Corresponds to the /knowledge/job/inventory/asset page in the console. Performs a paging query on the table-level asset information generated by a specified inventory task, and supports keyword filtering and sorting.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
dms:SearchInventoryAsset |
none |
*All Resource
|
None | None |
Request syntax
POST / HTTP/1.1
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| JobId |
integer |
Yes |
The ID of the inventory task. |
1001 |
| Query |
string |
No |
The search keyword used for fuzzy matching of asset information such as table names. |
order |
| Size |
integer |
No |
The number of entries to return on each page. Default value: 20. Maximum value: 100. |
20 |
| Offset |
integer |
No |
The pagination offset. Default value: 0. |
0 |
| SortBy |
string |
No |
The field by which to sort the results. Valid values: confidence and entityId. Default value: confidence. |
confidence |
| SortOrder |
string |
No |
The sort order. Valid values: asc for ascending order and desc for descending order. Default value: desc. |
desc |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The response content. |
||
| RequestId |
string |
Id of the request |
0C1CB646-1DE4-4AD0-B4A4-7D47DD52E931 |
| ErrorCode |
string |
The error code. |
UnknownError |
| ErrorMessage |
string |
The error message. |
UnknownError |
| Success |
boolean |
Indicates whether the request is successful. Valid values:
|
true |
| Data |
object |
The paginated results of table assets. |
|
| TotalCount |
integer |
The total number of entries. |
50 |
| Items |
array |
The list of table assets. |
|
| TableKnowledgeVO |
The table name. You can call the ListTables operation to obtain this parameter. Note
This parameter is required when the ResourceType parameter is set to META_TABLE or LOGIC_TABLE. |
[] |
Examples
Success response
JSON format
{
"RequestId": "0C1CB646-1DE4-4AD0-B4A4-7D47DD52E931",
"ErrorCode": "UnknownError",
"ErrorMessage": "UnknownError",
"Success": true,
"Data": {
"TotalCount": 50,
"Items": [
{
"TableId": 1001,
"TableName": "orders",
"DbId": 101,
"DbName": "business_db",
"DbType": "mysql",
"InstanceId": 10,
"InstanceName": "Business database instance",
"SchemaName": "business_db",
"EnvType": "product",
"Description": "Order table",
"AssetDescription": "Stores orders and their associated business information",
"Summary": "Order business data",
"Title": "Order information",
"AssetCreatedGmt": "2026-10-22 10:00:00",
"AssetModifiedGmt": "2026-10-22 10:30:00",
"Size": 128,
"NumRows": 10000,
"Level": 5,
"HotLevel": 3,
"LevelType": "locked",
"Logic": false
}
]
}
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.