GetSensitiveData

更新时间:
复制 MD 格式

Queries the latest sensitive data in all the DataWorks workspaces of a tenant.

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

No authorization for this operation. If you encounter issues with this operation, contact technical support.

Request parameters

Parameter

Type

Required

Description

Example

PageSize

integer

Yes

The number of entries per page. Maximum value: 1000.

1000

PageNo

integer

Yes

The page number. Pages start from page 1.

1

Name

string

Yes

The parameters that you can configure to query the access records. Valid values:

  • dbType

  • instanceName

  • databaseName

  • projectName

  • clusterName

The sample value shows how to query the access records of sensitive data in the abc database of the Hologres instance ABC. Configure the parameters based on the compute engine that you use.

[ {"dbType":"hologres","instanceName":"ABC","databaseName":"abc"}, {"dbType":"ODPS.ODPS","projectName":"adbc"} ]

Response elements

Element

Type

Description

Example

object

The response parameters.

SensitiveData

object

The sensitive data returned, which includes totalCount and sensDatas. The sensDatas parameter includes the following fields:

  • guid: the metadata ID of the tenant. In MaxCompute, the format is Project name.Table name.Column name.

  • sensType: the type of the sensitive data.

  • sensLevel: the sensitivity level of the sensitive data.

RequestId

string

The request ID.

0000-ABCD-EFG****

Examples

Success response

JSON format

{
  "SensitiveData": {
    "sensDatas": [
      {
        "sensLevel": "L1",
        "guid": "dsg_demo.animal.dog",
        "sensType": "Name"
      }
    ],
    "totalCount": 2171
  },
  "RequestId": "0000-ABCD-EFG****"
}

Error codes

HTTP status code

Error code

Error message

Description

400 Invalid.Param The request parameter is invalid.
500 InternalError.DQC.BizError An internal error occurred.
403 Forbidden.NoTenant The tenant information cannot be obtained using user ID.

See Error Codes for a complete list.

Release notes

See Release Notes for a complete list.