All Products
Search
Document Center

DataWorks:GetQualityEntity

Last Updated:Jul 31, 2026

Retrieves a 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 obtain the name from the datasource config.

autotest

TableName

string

Yes

The name of the partitioned table. You can call GetMetaTablePartition to query the partitioned 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. You can log on to the DataWorks console and go to the workspace configuration page to obtain the workspace ID.

123456

Response elements

Element

Type

Description

Example

object

The response struct.

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 call was successful.

true

Data

array<object>

The returned information.

object

The details of the returned data.

RelativeNode

string

The information about the scheduling node associated with the partition expression, including:

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

  • NodeID: the node ID of the scheduling node.

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

OnDutyAccountName

string

The Alibaba Cloud account name 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. The Alibaba Cloud account IDs that receive alert notifications.

1822931****

OnDuty

string

The owner. The account ID of the user who configured the partition expression.

1822931****

MatchExpression

string

The partition expression.

dt=$[yyyymmdd-1]

CreateTime

integer

The time when the partition expression was created.

The value is a 13-digit number, for example, 1593964800000.

1593964800000

ProjectName

string

The name of the engine or data source.

autotest

HasRelativeNode

boolean

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

  • true: Associated with scheduling.

  • false: Not associated with scheduling.

true

EnvType

string

The type of the engine or data source.

odps

EntityLevel

integer

The level of the partition expression. Valid values:

  • 0 (SQL level): DQC verification is triggered after each SQL statement is executed.

  • 1 (Task level): Verification is performed after all SQL statements are executed.

0

ModifyUser

string

The account ID of the user who updated the partition expression.

1822931****

Sql

integer

The SQL-level partition expression.

0

Id

integer

The ID of the partition expression.

4003918

ModifyTime

integer

The time when the partition expression was updated.

The value is a 13-digit number, for example, 1593964800000.

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.