DsgQueryDetails

Updated at:

Queries export details.

Operation description

This API corresponds to the query feature on the Data Security Guard console interface. It retrieves sensitive data identification results for a specified tenant by associating with the tenant ID.

  • Supports filtering by dimensions such as data source type and project workspace.

  • Supports ascending or descending sorting on a specific field.

  • Supports paging.

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

dataworks:DsgQueryDetails

none

*All Resource

*

None None

Request parameters

Parameter

Type

Required

Description

Example

PageSize

integer

Yes

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

10

EndTime

string

Yes

The end time of the query range. Example: "2026-06-30 23:59:59".

2026-06-30 23:59:59

Ip

string

No

The internal IP address of the ECU.

203.107.80.20

BeginTime

string

Yes

The start time of the query range. Example: "2026-06-26 00:00:00".

2026-06-26 00:00:00

PageNo

integer

Yes

The page number. Minimum value: 1.

10

SensLevel

string

No

The classification level. Example: 3.

3

ProjectId

string

No

The project workspace name (essentially ProjectName). Example: dsg_demo_gw.

dsg_demo_gw

RuleType

string

No

The type of triggered sensitive rule. Example: Name.

Name.

EngineName

string

Yes

The engine type. Valid values:

  • ODPS.ODPS

  • EMR

  • HOLO.POSTGRES

ODPS.ODPS

NodeId

string

No

The node ID.

123541234

User

string

No

The operator account. Example: dsg_test.

dsg_test

IpAare

string

No

The region to which the IP address belongs. Example: China-Beijing-Beijing, or internal IP address.

China-Beijing-Beijing.

Rows

integer

No

The minimum value of the export volume.

1

Response elements

Element

Type

Description

Example

object

The export detailed paged data.

Success

boolean

Indicates whether the request was successful.

true

ErrorCode

string

The error code.

1031203110005

ErrorMessage

string

The error message.

success

HttpStatusCode

integer

The HTTP status code.

200

Data

any

The operation result. Valid values:

  • true: The operation was successful.

  • false: The operation failed.

select a;

RequestId

string

The request ID. You can use this ID to troubleshoot issues.

C99E2BE6-9DEA-5C2E-8F51-1DDCFEADE490

DynamicErrorCode

string

The error code. The value is the same as ErrorCode.

400

DynamicErrorMessage

string

The error message. The value is the same as ErrorMessage.

Missing parameter

AccessDeniedDetail

string

The details of the access denial. This field is returned only when RAM authentication fails.

None

Examples

Success response

JSON format

{
  "Success": true,
  "ErrorCode": "1031203110005",
  "ErrorMessage": "success",
  "HttpStatusCode": 200,
  "Data": "select a;",
  "RequestId": "C99E2BE6-9DEA-5C2E-8F51-1DDCFEADE490",
  "DynamicErrorCode": "400",
  "DynamicErrorMessage": "Missing parameter",
  "AccessDeniedDetail": "None"
}

Error codes

HTTP status code

Error code

Error message

Description

400 BADPARAMETERS Parameters are missing or in the wrong format.

See Error Codes for a complete list.

Release notes

See Release Notes for a complete list.