DescribeDataAssets

Updated at:

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

Try this API in OpenAPI Explorer, no manual signing needed. Successful calls auto-generate SDK code matching your parameters. Download it with built-in credential security for local usage.

Test

RAM authorization

The table below describes the authorization required to call this API. You can define it in a Resource Access Management (RAM) policy. The table's columns are detailed below:

  • Action: The actions can be used in the Action element of RAM permission policy statements to grant permissions to perform the operation.

  • API: The API that you can call to perform the action.

  • Access level: The predefined level of access granted for each API. Valid values: create, list, get, update, and delete.

  • Resource type: The type of the resource that supports authorization to perform the action. It indicates if the action supports resource-level permission. The specified resource must be compatible with the action. Otherwise, the policy will be ineffective.

    • For APIs with resource-level permissions, required resource types are marked with an asterisk (*). Specify the corresponding Alibaba Cloud Resource Name (ARN) in the Resource element of the policy.

    • For APIs without resource-level permissions, it is shown as All Resources. Use an asterisk (*) in the Resource element of the policy.

  • Condition key: The condition keys defined by the service. The key allows for granular control, applying to either actions alone or actions associated with specific resources. In addition to service-specific condition keys, Alibaba Cloud provides a set of common condition keys applicable across all RAM-supported services.

  • Dependent action: The dependent actions required to run the action. To complete the action, the RAM user or the RAM role must have the permissions to perform all dependent actions.

Action

Access level

Resource type

Condition key

Dependent action

yundun-sddp:DescribeDataAssets

get

*All Resource

*

  • acs:ResourceGroupId
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: Simplified Chinese.

  • en_us: English (US).

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: S1, which indicates a low risk level.

  • 3: S2, which indicates a medium risk level.

  • 4: S3, which indicates a high risk level.

  • 5: S4, which indicates the highest risk level.

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: MaxCompute project.

  • 2: MaxCompute table.

  • 3: MaxCompute package.

  • 11: AnalyticDB for MySQL database.

  • 12: AnalyticDB for MySQL table.

  • 21: OSS file bucket.

  • 22: OSS object.

  • 31: Tablestore instance.

  • 32: Tablestore table.

  • 51: ApsaraDB RDS database.

  • 52: ApsaraDB RDS table.

  • 61: Self-managed database on an ECS instance.

  • 62: Self-managed table on an ECS instance.

  • 71: DRDS database.

  • 72: DRDS table.

  • 81: PolarDB database.

  • 82: PolarDB table.

  • 91: AnalyticDB for PostgreSQL database.

  • 92: AnalyticDB for PostgreSQL table.

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: The data protection mechanism is disabled.

  • true: The data protection mechanism is enabled. Data in the project can only flow in and cannot flow out.

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: LabelSecurity is enabled.

  • false: LabelSecurity is disabled.

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:

  • 1: No sensitive data is detected. No risk.

  • 2: Level 1 sensitive data risk.

  • 3: Level 2 sensitive data risk.

  • 4: Level 3 sensitive data risk.

  • 5: Level 4 sensitive data risk.

  • 6: Level 5 sensitive data risk.

  • 7: Level 6 sensitive data risk.

  • 8: Level 7 sensitive data risk.

  • 9: Level 8 sensitive data risk.

  • 10: Level 9 sensitive data risk.

  • 11: Level 10 sensitive data risk.

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: Yes.

  • false: No.

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:

  • S1: Low risk level.

  • S2: Medium risk level.

  • S3: High risk level.

  • S4: Highest risk level.

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:

  • 1: MaxCompute.

  • 2: OSS.

  • 3: AnalyticDB for MySQL.

  • 4: Tablestore.

  • 5: ApsaraDB RDS.

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.