DescribeDataObjects
Queries the data detection results for tables and files.
Operation description
This operation queries the detection results of tables and files, allowing you to view the data detection results of assets from a global perspective.
Rate limit
The rate limit for this operation is 10 queries per second (QPS) per user. If the limit is exceeded, API calls are throttled, which may affect your services. Call this operation at a reasonable frequency.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
yundun-sddp:DescribeDataObjects |
get |
*All Resource
|
|
None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| Lang |
string |
No |
The language of the request and response. Default value: zh_cn. Valid values:
|
zh_cn |
| PageSize |
integer |
No |
Settings for the maximum number of data asset instances to return on each page during a paged query. This parameter controls paging. Default value: 10. |
10 |
| CurrentPage |
integer |
No |
The page number for paging during a paged query. Default value: 1. |
1 |
| ProductIds |
string |
No |
The IDs of the products to query. We recommend that you specify this parameter. Separate multiple IDs with commas (,). Valid values:
Note
OSS is mutually exclusive with other products. If OSS is specified, you cannot specify other products. By default, non-OSS products are queried. |
1,5 |
| ParentCategoryIds |
string |
No |
The IDs of the parent categories for the templates to query. Separate multiple IDs with commas (,). |
234,236,238 |
| QueryName |
string |
No |
The keyword of the data object to query. |
t_sddp_selfmysql_pers0 |
| ServiceRegionId |
string |
No |
The region where the asset resides. Valid values:
|
cn-hangzhou |
| TemplateId |
integer |
Yes |
The ID of the industry template. Note
You can call the DescribeCategoryTemplateList operation to obtain the ID of the industry template. |
1 |
| DomainId |
integer |
No |
The ID of the data domain to which the data asset belongs. |
2 |
| ModelTagIds |
string |
No |
The data tags to query. Separate multiple tags with commas (,). Valid values:
|
101,102 |
| RiskLevels |
string |
No |
The risk levels of the data assets to query. Separate multiple levels with commas (,). Valid values:
|
2 |
| InstanceId |
string |
No |
The keyword of the asset instance ID. |
8vb54hn2g9j191ddz |
| ModelIds |
string |
No |
The model IDs of the industry template. Separate multiple IDs with commas (,). Note
You can call the DescribeTemplateAllRules operation to obtain the model IDs of the industry template. |
101 |
| FileType |
integer |
No |
The OSS file types that support detection. Note
You can call the DescribeDocTypes operation to obtain the OSS file types that support detection. Use the value of the Code field in the response. This parameter is valid only for queries of OSS assets. |
100001 |
| FileCategoryCode |
integer |
No |
The file category code. |
1 |
| MemberAccount |
integer |
No |
The ID of the member accounts. |
**********8103 |
| FeatureType |
integer |
No |
[Deprecated] This parameter is deprecated. |
2 |
| APIVersion |
integer |
No |
Used for canary release evaluation. |
1 |
| RegionId |
string |
No |
The region of the data catalog display page. |
cn-zhangjiakou |
| ProductId |
integer |
No |
The product of the data catalog. |
5 |
| RuleIds |
string |
No |
The rule filter. |
1,2,3 |
| RiskLevelIdList |
string |
No |
The classification filter. |
1,2,3 |
| TableName |
string |
No |
The task name filter. |
TableName |
| DbName |
string |
No |
The database name filter. |
dataBaseName |
| TaskId |
integer |
No |
The task ID filter. |
1 |
| Bucket |
string |
No |
The OSS bucket filter. |
bucketName |
| Project |
string |
No |
The SLS project filter. |
project |
| LogStore |
string |
No |
The SLS Logstore filter. |
logstore |
| LogStoreFlag |
integer |
No |
Specifies whether to query data at the Logstore dimension. The SLS page in the data catalog has two levels. This parameter determines whether to query Logstore-level data. |
1 |
| Path |
string |
No |
The file path filter. |
road |
| EngineType |
string |
No |
The database engine type. Valid values: MySQL, SQLServer, Oracle, PostgreSQL, and MongoDB. |
MySQL |
| FacetType |
string |
No |
The facet dimension for data catalog association filtering. Valid values: rule (category), task (node), instance, and db (database). If this parameter is not specified or is left empty, the original list and count query is executed and the behavior remains unchanged. If a valid value is specified, the list query is skipped and only content.hitValues is returned. If an invalid value is specified, a parameter error is returned. |
instance |
| IsRevision |
integer |
No |
Specifies whether to filter revision items. |
0 |
| Cursor |
string |
No |
The cursor pagination token. |
eyJmaW5pc2hlZF9hdF91cyI6MTc4MjM2MTY2NTAwMDAwMCwicnVuX2lkIjoiNGM1ZjcwMWMtMTI4YS00MWRkLTg2MDctZTc5OGVlYTk5YjJiIn0 |
| CursorDirection |
string |
No |
The cursor direction, which specifies whether to navigate to the previous page (PREVIOUS) or the next page (NEXT). |
PREVIOUS |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| CurrentPage |
integer |
The Settings for the current page number during paging in a paged query. Default value: 1. |
1 |
| RequestId |
string |
The ID of the request. This ID is a unique identifier generated by Alibaba Cloud for the request and can be used for troubleshooting. |
E6F6460E-4330-549A-BD89-C183FB17571E |
| PageSize |
integer |
The Settings for the maximum number of data asset instances to return on each page during paging in a paged query. Default value: 10. |
10 |
| TotalCount |
integer |
The total number of returned entries. |
21 |
| Items |
array<object> |
The list of data objects. |
[] |
|
array<object> |
The list of data objects. |
[] |
|
| Name |
string |
The name of the data object. |
t_sddp_selfmysql_pers0 |
| Id |
string |
The unique ID of the data object. |
20000 |
| TemplateId |
integer |
The ID of the industry template. |
1 |
| ProductId |
integer |
The ID of the product to which the data object belongs. Valid values:
|
5 |
| InstanceDescription |
string |
The description of the data object instance. |
instance description |
| ProductCode |
string |
The name of the product to which the data object belongs. Valid values:
|
RDS |
| SensitiveCount |
integer |
The number of sensitive data entries. |
1 |
| ObjectType |
string |
The object type of the data object. |
text type |
| Path |
string |
The path of the data object. |
rm-12**.db_*** |
| RegionName |
string |
The name of the region. |
cn-hangzhou |
| Categories |
array |
The list of industry categories to which the sensitive data belongs. |
|
|
string |
The industry category of the sensitive data. Multiple categories are separated by commas. |
general sensitive information |
|
| ModelTags |
array<object> |
The list of data tags. |
|
|
object |
The list of data tags. |
||
| Id |
integer |
The ID of the data tag. Valid values:
|
101 |
| Name |
string |
The name of the data tag. Valid values:
|
Personal sensitive information |
| RuleList |
array<object> |
The list of matched detection models. |
|
|
object |
The list of matched detection models. |
||
| RuleId |
integer |
The ID of the detection model. |
1080 |
| RuleName |
string |
The name of the detection model. |
name |
| RiskLevelId |
integer |
The risk level ID of the sensitive data detection rule. Valid values:
|
2 |
| RiskLevelName |
string |
The risk level name of the data asset table. Valid values:
|
S1 |
| RuleCount |
integer |
The number of matched detection models. |
590 |
| RuleCategoryNameList |
string |
The description of the rule information from the top to the bottom of the template. |
Personal sensitive information-ID card |
| SampleList |
string |
The sample data. |
["Lucy","Tom"] |
| ObjectFileCategory |
string |
The name of the file category. |
text file |
| MemberAccount |
integer |
The ID of the member accounts. |
**********8103 |
| LastModifiedTime |
integer |
The last update time of the file. Unit: milliseconds. |
1687676649830 |
| InstanceId |
string |
The instance ID of the data asset. |
rm-12***** |
| LastScanTime |
integer |
The timestamp of the last scan. Unit: milliseconds. |
1687676649830 |
| RegionId |
string |
The ID of the region to which the data object belongs. |
cn-hangzhou |
| Comment |
string |
The comment of the column. |
comment |
| DataType |
string |
The data type of the database column. |
varchar |
| EngineType |
string |
The type of the engine. |
TABLE |
| DbName |
string |
The name of the database. |
DataBaseName |
| TableName |
string |
The name of the table. |
tableName |
| RiskLevelId |
integer |
The sensitivity level. |
1 |
| TaskId |
integer |
The ID of the task. |
1 |
| TaskNumber |
integer |
The number of the user task. |
1000 |
| TaskName |
string |
The name of the task. |
test-task |
| IsRevision |
integer |
The revision status. |
-1 |
| MaskStatus |
integer |
The encryption status of the column. |
-1 |
| FileCategoryCode |
integer |
The type of the file. |
1 |
| Size |
integer |
The size of the file. |
1000 |
| RuleCount |
integer |
The number of matched rules. |
10 |
| Sx |
string |
The array of the number of matched rules for each sensitivity level. The format is "S1,S2,S3,S4,S5,S6,S7,S8,S9,S10", where S1 represents the number of matched rules at the S1 sensitivity level. |
1,2,3,0,0,0,0,5,0,0 |
| TemplateName |
string |
The name of the template. |
test |
| Project |
string |
The Simple Log Service (SLS) project. |
project |
| LogStore |
string |
The SLS Logstore. |
logStore |
| ClusterType |
string |
The type of the cluster. |
ask |
| HitValues |
array |
The associated filter used to return the filtered values. |
["linxiu","sddptest"] |
|
string |
The first matched value of the root node. |
linxiu |
|
| SyncStatus |
string |
The status of the synchronization link. |
Completed |
| PreviousCursor |
string |
The cursor for the previous page. |
eyJmaW5pc2hlZF9hdF91cyI6MTc4MjcxOTMyODAwMDAwMCwicnVuX2lkIjoiNWM1NTU3OTUtYmFjMi00OTU3LThiM2YtNjBmODkzNWQ1NTRiIn0 |
| NextCursor |
string |
The cursor for the next page. |
eyJmaW5pc2hlZF9hdF91cyI6MTc4MjcxOTMyODAwMDAwMCwicnVuX2lkIjoiNWM1NTU3OTUtYmFjMi00OTU3LThiM2YtNjBmODkzNWQ1NTRiIn0 |
| HasPrevious |
boolean |
Indicates whether a previous page exists. |
True |
| HasNext |
boolean |
Indicates whether a next page exists. |
True |
| ErrorCode |
string |
The error code. |
ASYNC_QUERY_FAILED |
| ErrorMessage |
string |
The specific cause of the failure. |
Query failed. Please try again later. |
Examples
Success response
JSON format
{
"CurrentPage": 1,
"RequestId": "E6F6460E-4330-549A-BD89-C183FB17571E",
"PageSize": 10,
"TotalCount": 21,
"Items": [
{
"Name": "t_sddp_selfmysql_pers0",
"Id": "20000",
"TemplateId": 1,
"ProductId": 5,
"InstanceDescription": "instance description",
"ProductCode": "RDS",
"SensitiveCount": 1,
"ObjectType": "text type",
"Path": "rm-12**.db_***",
"RegionName": "cn-hangzhou",
"Categories": [
"general sensitive information"
],
"ModelTags": [
{
"Id": 101,
"Name": "Personal sensitive information"
}
],
"RuleList": [
{
"RuleId": 1080,
"RuleName": "name",
"RiskLevelId": 2,
"RiskLevelName": "S1",
"RuleCount": 590,
"RuleCategoryNameList": "Personal sensitive information-ID card",
"SampleList": "[\"Lucy\",\"Tom\"]"
}
],
"ObjectFileCategory": "text file",
"MemberAccount": 0,
"LastModifiedTime": 1687676649830,
"InstanceId": "rm-12*****",
"LastScanTime": 1687676649830,
"RegionId": "cn-hangzhou",
"Comment": "comment",
"DataType": "varchar",
"EngineType": "TABLE",
"DbName": "DataBaseName",
"TableName": "tableName",
"RiskLevelId": 1,
"TaskId": 1,
"TaskNumber": 1000,
"TaskName": "test-task",
"IsRevision": -1,
"MaskStatus": -1,
"FileCategoryCode": 1,
"Size": 1000,
"RuleCount": 10,
"Sx": "1,2,3,0,0,0,0,5,0,0",
"TemplateName": "test",
"Project": "project",
"LogStore": "logStore",
"ClusterType": "ask"
}
],
"HitValues": [
"linxiu"
],
"SyncStatus": "Completed",
"PreviousCursor": "eyJmaW5pc2hlZF9hdF91cyI6MTc4MjcxOTMyODAwMDAwMCwicnVuX2lkIjoiNWM1NTU3OTUtYmFjMi00OTU3LThiM2YtNjBmODkzNWQ1NTRiIn0",
"NextCursor": "eyJmaW5pc2hlZF9hdF91cyI6MTc4MjcxOTMyODAwMDAwMCwicnVuX2lkIjoiNWM1NTU3OTUtYmFjMi00OTU3LThiM2YtNjBmODkzNWQ1NTRiIn0",
"HasPrevious": true,
"HasNext": true,
"ErrorCode": "ASYNC_QUERY_FAILED",
"ErrorMessage": "Query failed. Please try again later."
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.