All Products
Search
Document Center

DataWorks:GetQualityEntity

Last Updated:Mar 23, 2026

Call GetQualityEntity to retrieve the partition expression.

Note

This API has been deprecated. We recommend migrating to dataworks-public(2024-05-18) - GetDataQualityScan for enhanced functionality and continued support. While the deprecated API remains temporarily accessible, no further updates or bug fixes will be provided.

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:*

get

*All Resource

*

None None

Request parameters

Parameter

Type

Required

Description

Example

ProjectName

string

Yes

The name of the engine or data source. You can find this name on the Data Source Configuration page.

autotest

TableName

string

Yes

The name of the partitioned table. You can call the GetMetaTablePartition operation to get the table name.

dual

EnvType

string

Yes

The type of the engine or data source. Valid values:

  • cdh

  • analyticdb_for_mysql

  • odps

  • emr

  • hadoop

  • holodb

  • hybriddb_for_postgresql

odps

MatchExpression

string

No

The partition expression.

dt=$[yyyymmdd]

ProjectId

integer

Yes

The ID of the DataWorks workspace. To find the workspace ID, log in to the DataWorks Console and go to the Workspace Configurations page.

123456

Response elements

Element

Type

Description

Example

object

The response object.

HttpStatusCode

integer

The HTTP status code.

200

RequestId

string

The request ID.

6d739ef6-098a-47****

ErrorMessage

string

The error message.

You have no permission.

ErrorCode

string

The error code.

401

Success

boolean

Indicates whether the request succeeded.

true

Data

array<object>

The data returned.

object

The details of the data.

RelativeNode

string

The scheduling node that is associated with the partition filter expression. This parameter includes the following sub-parameters:

  • ProjectName: The name of the workspace to which the scheduling node belongs.

  • NodeID: The ID of the scheduling node.

[{"projectName":"xc_DP****","nodeId":7000026****}]

OnDutyAccountName

string

The name of the Alibaba Cloud account of the owner.

test

Task

integer

The task node.

0

TableName

string

The name of the partitioned table.

test_dqc_de****

Followers

string

The subscribers who receive alert notifications. The value is the ID of an Alibaba Cloud account.

1822931****

OnDuty

string

The owner who configures the partition filter expression. The value is the ID of an Alibaba Cloud account.

1822931****

MatchExpression

string

The partition filter expression.

dt=$[yyyymmdd-1]

CreateTime

integer

The time when the partition filter expression was created.

1593964800000

ProjectName

string

The name of the engine or data source.

autotest

HasRelativeNode

boolean

Indicates whether the partition filter expression is associated with a scheduling node. Valid values:

  • true: The partition filter expression is associated with a scheduling node.

  • false: The partition filter expression is not associated with a scheduling node.

true

EnvType

string

The type of the engine or data source.

odps

EntityLevel

integer

The level of the partition filter expression. Valid values:

  • 0 (SQL-level): A data quality check is triggered after each SQL statement is run.

  • 1 (Task-level): A data quality check is triggered after all SQL statements are run.

0

ModifyUser

string

The user who updates the partition filter expression. The value is the ID of an Alibaba Cloud account.

1822931****

Sql

integer

The SQL-level partition filter expression.

0

Id

integer

The ID of the partition filter expression.

4003918

ModifyTime

integer

The time when the partition filter expression was last updated.

1593964800000

Examples

Success response

JSON format

{
  "HttpStatusCode": 200,
  "RequestId": "6d739ef6-098a-47****",
  "ErrorMessage": "You have no permission.",
  "ErrorCode": "401",
  "Success": true,
  "Data": [
    {
      "RelativeNode": "[{\"projectName\":\"xc_DP****\",\"nodeId\":7000026****}]",
      "OnDutyAccountName": "test",
      "Task": 0,
      "TableName": "test_dqc_de****",
      "Followers": "1822931****",
      "OnDuty": "1822931****",
      "MatchExpression": "dt=$[yyyymmdd-1]",
      "CreateTime": 1593964800000,
      "ProjectName": "autotest",
      "HasRelativeNode": true,
      "EnvType": "odps",
      "EntityLevel": 0,
      "ModifyUser": "1822931****",
      "Sql": 0,
      "Id": 4003918,
      "ModifyTime": 1593964800000
    }
  ]
}

Error codes

See Error Codes for a complete list.

Release notes

See Release Notes for a complete list.