ListTagMetaAsset
Retrieves the database and table information added to the data center of a DataAgent workspace.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
dms:ListTagMetaAsset |
get |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| Tid |
integer |
No |
The tenant ID. Note
You can obtain the tenant ID by hovering over the profile picture in the upper-right corner of the system. For more information, see View tenant information. |
3*** |
| TagName |
string |
Yes |
The tag name. To retrieve the database and table information in a DataAgent workspace, pass the value in the following format: |
sys::DMS-DA::cn-hangzhou::space:abcde |
| MetaType |
string |
Yes |
The metadata type.
|
META_DATABASE |
| MetaParentId |
string |
No |
The parent MetaId of the asset.
|
123456 |
| SearchKey |
string |
No |
The search keyword. Fuzzy search is supported. |
test |
| PageNumber |
integer |
Yes |
The page number. |
1 |
| PageSize |
integer |
Yes |
The number of entries per page. |
50 |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| RequestId |
string |
The request ID. |
0C1CB646-1DE4-4AD0-B4A4-7D47DD52E931 |
| ErrorCode |
string |
The error code. This parameter is returned when an error occurs. |
UnknownError |
| ErrorMessage |
string |
The error message returned when the request fails. |
UnknownError |
| Success |
boolean |
Indicates whether the request was successful. Valid values:
|
true |
| Data |
array<object> |
The returned data. |
|
|
array<object> |
The returned data. |
||
| MetaType |
string |
The metadata type. Valid values:
|
META_DATABASE |
| MetaEntityAttrs |
object |
The metadata entity attributes. When MetaType is set to META_DATABASE, the following information is included:
When MetaType is set to META_TABLE, the following information is included:
|
{"schemaName": "test"} |
| TotalCount |
integer |
The total number of records that meet the specified conditions. |
100 |
Examples
Success response
JSON format
{
"RequestId": "0C1CB646-1DE4-4AD0-B4A4-7D47DD52E931",
"ErrorCode": "UnknownError",
"ErrorMessage": "UnknownError",
"Success": true,
"Data": [
{
"MetaType": "META_DATABASE",
"MetaEntityAttrs": {
"schemaName": "test"
}
}
],
"TotalCount": 100
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.