Queries the sensitive data detection results of data assets that Data Security Center (DSC) is authorized to access.
Debugging
Authorization information
The following table shows the authorization information corresponding to the API. The authorization information can be used in the Action
policy element to grant a RAM user or RAM role the permissions to call this API operation. Description:
- Operation: the value that you can use in the Action element to specify the operation on a resource.
- Access level: the access level of each operation. The levels are read, write, and list.
- Resource type: the type of the resource on which you can authorize the RAM user or the RAM role to perform the operation. Take note of the following items:
- The required resource types are displayed in bold characters.
- If the permissions cannot be granted at the resource level,
All Resources
is used in the Resource type column of the operation.
- Condition Key: the condition key that is defined by the cloud service.
- Associated operation: other operations that the RAM user or the RAM role must have permissions to perform to complete the operation. To complete the operation, the RAM user or the RAM role must have the permissions to perform the associated operations.
Operation | Access level | Resource type | Condition key | Associated operation |
---|---|---|---|---|
yundun-sddp:DescribeDataAssets | get |
|
| none |
Request parameters
Parameter | Type | Required | Description | Example |
---|---|---|---|---|
Lang | string | No | The language of the content within the request and response. Default value: zh_cn. Valid values:
| zh_cn |
Name | string | No | The keyword that is used to search for data assets. Fuzzy search is supported. | test |
RiskLevels | string | No | The sensitivity level of the data asset. Separate multiple sensitivity levels with commas (,). Valid values:
| 2 |
RuleId | long | No | The unique ID of the sensitive data detection rule that the data assets to be queried hit. Note
If you query sensitive data detection results based on the sensitive data detection rule that the data assets hit, you can call the DescribeRules operation to query the ID of the sensitive data detection rule.
| 11122200 |
RangeId | integer | No | The type of the data asset that you want to query. Valid values:
| 1 |
PageSize | integer | No | The number of entries to return on each page. Default value: 20. | 20 |
CurrentPage | integer | No | The number of the page to return. | 1 |
Response parameters
Examples
Sample success responses
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\n",
"Sensitive": true,
"ObjectKey": "Internal\n",
"RiskLevelName": "Medium sensitivity level\n",
"OdpsRiskLevelName": "S4",
"ProductId": "5",
"Name": "gxdata",
"SensitiveCount": 24,
"Id": "268",
"ProductCode": "RDS"
}
]
}
Error codes
For a list of error codes, visit the Service error codes.
Change history
Change time | Summary of changes | Operation |
---|