DescribeDataAssets
Searches for data assets on the Sensitive Data Protection overview page.
Operation description
This operation is generally used to query data of various asset types on the Sensitive Data Protection overview page.
Precautions
This operation is deprecated and no longer maintained.
QPS limit
The queries per second (QPS) limit per user is 10. If the limit is exceeded, API calls are throttled, which may affect your business. Call the operation at a reasonable rate.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
yundun-sddp:DescribeDataAssets |
get |
*All Resource
|
|
None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| Lang |
string |
No |
Specifies the language of the request and response. Default value: zh_cn. Valid values:
|
zh_cn |
| Name |
string |
No |
Specifies the keyword used to query assets. Fuzzy match is supported. |
test |
| RiskLevels |
string |
No |
Specifies the risk levels of the data assets to query. Separate multiple risk levels with commas (,). Valid values:
|
2 |
| RuleId |
integer |
No |
Specifies the ID of the sensitive data detection rule that the data asset hits. Note
To search for data assets based on the sensitive data detection rules that the assets hit, you can call the DescribeRules operation to obtain the rule IDs. |
11122200 |
| RangeId |
integer |
No |
Specifies the Asset Type of the data asset to query. Valid values:
|
1 |
| PageSize |
integer |
No |
Specifies the paging size, which is the maximum number of entries to return on each page for a paged query. Default value: 20. |
20 |
| CurrentPage |
integer |
No |
Specifies the current page number for paging in a paged query. |
1 |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| CurrentPage |
integer |
The current page number for paging in a paged query. |
1 |
| RequestId |
string |
The unique identifier generated by Alibaba Cloud for the request. |
71064826-726F-4ADA-B879-05D8055476FB |
| PageSize |
integer |
The paging size, which is the maximum number of entries returned on each page in a paged query. |
20 |
| TotalCount |
integer |
The total number of data assets that contain sensitive data. |
1 |
| Items |
array<object> |
The list of data assets. |
|
|
object |
|||
| Acl |
string |
The ACL settings of the OSS bucket. Note
This parameter is returned only when the RangeId request parameter is set to 21, which indicates that the data asset to query is an OSS bucket. |
private |
| CreationTime |
integer |
The time when the data asset was created. Unit: milliseconds. |
1536751124000 |
| DataType |
string |
The data type of the data asset. |
OSS_BUCKET |
| Owner |
string |
The account to which the data asset belongs. |
dtdep-239-****** |
| SensitiveRatio |
string |
The proportion of sensitive data in all data assets. |
45% |
| Protection |
boolean |
The protection status of the data asset. Fixed value: false. This parameter returns true or false only when the RangeId request parameter is set to 1, which indicates that the data asset to query is a MaxCompute project. Valid values:
|
false |
| Labelsec |
boolean |
Specifies whether LabelSecurity is enabled for the MaxCompute project. This parameter is valid only when RangeId is set to 1, which indicates a MaxCompute project. Valid values:
|
true |
| TotalCount |
integer |
The total number of data assets. For example, the total number of projects, packages, or tables in MaxCompute, the total number of databases or tables in ApsaraDB RDS, or the total number of buckets or objects in OSS. |
432 |
| RiskLevelId |
integer |
The risk level ID of the data asset. A higher risk level ID indicates that the detected data is more sensitive. Valid values:
|
2 |
| RuleName |
string |
The name of the sensitive data detection rule that the data asset hits. |
***Rule |
| Sensitive |
boolean |
Indicates whether the data asset contains sensitive data. Valid values:
|
true |
| ObjectKey |
string |
The key of the OSS object. Note
This parameter is returned only when the RangeId request parameter is set to 22, which indicates that the data asset to query is an OSS object. |
test.txt |
| RiskLevelName |
string |
The risk level name of the data asset. |
High risk |
| OdpsRiskLevelName |
string |
The risk level name of the MaxCompute asset. Valid values:
Note
This parameter is returned only when the RangeId request parameter is set to 1, which indicates that the data asset to query is a MaxCompute project. |
S4 |
| ProductId |
string |
The product type ID of the data asset. Valid values:
|
5 |
| Name |
string |
The name of the data asset. |
gxdata |
| SensitiveCount |
integer |
The total number of sensitive data assets. For example, the total number of sensitive projects, packages, or tables in MaxCompute, the total number of sensitive databases or tables in ApsaraDB RDS, or the total number of sensitive buckets or objects in OSS. |
24 |
| Id |
string |
The unique ID of the data asset. |
268 |
| ProductCode |
string |
The name of the product to which the data asset belongs. |
RDS |
Examples
Success response
JSON format
{
"CurrentPage": 1,
"RequestId": "71064826-726F-4ADA-B879-05D8055476FB",
"PageSize": 20,
"TotalCount": 1,
"Items": [
{
"Acl": "private",
"CreationTime": 1536751124000,
"DataType": "OSS_BUCKET",
"Owner": "dtdep-239-******",
"SensitiveRatio": "45%",
"Protection": false,
"Labelsec": true,
"TotalCount": 432,
"RiskLevelId": 2,
"RuleName": "***Rule",
"Sensitive": true,
"ObjectKey": "test.txt",
"RiskLevelName": "High risk",
"OdpsRiskLevelName": "S4",
"ProductId": "5",
"Name": "gxdata",
"SensitiveCount": 24,
"Id": "268",
"ProductCode": "RDS"
}
]
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.