Get Rules - Get Rules

Retrieves all rules associated with data assets.

GET {endpoint}/datagovernance/quality/business-domains/{businessDomainId}/data-products/{dataProductId}/data-assets/{dataAssetId}/rules?api-version=2026-01-12-preview

URI Parameters

Name In Required Type Description
businessDomainId
path True

string

Unique identifier for the business domain containing the data product

dataAssetId
path True

string

Unique identifier for the data asset

dataProductId
path True

string

Unique identifier for the data product containing the data asset

endpoint
path True

string (uri)

api-version
query True

string

minLength: 1

The API version to use for this operation.

Responses

Name Type Description
200 OK

RuleEntity[]

The request has succeeded.

Other Status Codes

Azure.Core.Foundations.ErrorResponse

An unexpected error response.

Headers

x-ms-error-code: string

Security

OAuth2Auth

Type: oauth2
Flow: implicit
Authorization URL: https://login.microsoftonline.com/common/oauth2/authorize

Scopes

Name Description
https://purview.azure.net/.default

Examples

CreateRules_DataAsset

Sample request

GET {endpoint}/datagovernance/quality/business-domains/abcdef12-3456-7890-abcd-ef1234567890/data-products/12345678-abcd-1234-ef00-123456abcdef/data-assets/abcd1234-5678-abcd-1234-abcd5678ef00/rules?api-version=2026-01-12-preview

Sample response

[
  {
    "name": "Empty/blank_fields_REGION",
    "id": "82f21bcc-ae71-40b9-88ab-dae3f64fd711",
    "description": "",
    "type": "NotNull",
    "typeProperties": {
      "column": {
        "type": "Column",
        "value": "REGION"
      }
    },
    "status": "Active",
    "score": -1,
    "businessDomain": {
      "type": "BusinessDomainReference",
      "referenceId": "76be16f9-5cb3-4839-83d6-4e3829a8ab0c"
    },
    "dataProduct": {
      "type": "DataProductReference",
      "referenceId": "2a1d2087-09e2-4ecf-817d-1f5bfcbc31bf"
    },
    "dataAsset": {
      "type": "DataAssetReference",
      "referenceId": "fadb55b6-aa10-47d5-82c4-5e2723ba7869"
    },
    "lastModifiedAt": "2025-05-22T14:58:42.5459631Z",
    "lastModifiedBy": "ca31eca9-668e-4933-82f8-69bdeecc6632",
    "createdAt": "2025-05-22T14:58:42.5459631Z",
    "createdBy": "ca31eca9-668e-4933-82f8-69bdeecc6632"
  },
  {
    "name": "Unique_values_ID",
    "id": "8de0ec1c-93da-4da0-8719-a8d89c54eeef",
    "description": "",
    "type": "Unique",
    "typeProperties": {
      "column": {
        "type": "Column",
        "value": "ID"
      }
    },
    "status": "Active",
    "score": -1,
    "businessDomain": {
      "type": "BusinessDomainReference",
      "referenceId": "76be16f9-5cb3-4839-83d6-4e3829a8ab0c"
    },
    "dataProduct": {
      "type": "DataProductReference",
      "referenceId": "2a1d2087-09e2-4ecf-817d-1f5bfcbc31bf"
    },
    "dataAsset": {
      "type": "DataAssetReference",
      "referenceId": "fadb55b6-aa10-47d5-82c4-5e2723ba7869"
    },
    "lastModifiedAt": "2025-05-22T14:58:51.5877268Z",
    "lastModifiedBy": "ca31eca9-668e-4933-82f8-69bdeecc6632",
    "createdAt": "2025-05-22T14:58:51.5877268Z",
    "createdBy": "ca31eca9-668e-4933-82f8-69bdeecc6632"
  },
  {
    "name": "Data_type_match_PRODUCT_CATEGORY",
    "id": "5a05d135-e588-4f07-bb21-946659cccbed",
    "description": "",
    "type": "TypeMatch",
    "typeProperties": {
      "column": {
        "type": "Column",
        "value": "PRODUCT_CATEGORY"
      }
    },
    "status": "Active",
    "score": -1,
    "businessDomain": {
      "type": "BusinessDomainReference",
      "referenceId": "76be16f9-5cb3-4839-83d6-4e3829a8ab0c"
    },
    "dataProduct": {
      "type": "DataProductReference",
      "referenceId": "2a1d2087-09e2-4ecf-817d-1f5bfcbc31bf"
    },
    "dataAsset": {
      "type": "DataAssetReference",
      "referenceId": "fadb55b6-aa10-47d5-82c4-5e2723ba7869"
    },
    "lastModifiedAt": "2025-06-27T10:36:55.1655298Z",
    "lastModifiedBy": "92522642-6537-4785-9fcd-fe58afaa43c5",
    "createdAt": "2025-06-27T10:36:55.1655298Z",
    "createdBy": "92522642-6537-4785-9fcd-fe58afaa43c5"
  },
  {
    "name": "Unique_values_CAMPAIGN_NAME",
    "id": "bd5225e4-0368-44e8-9ca2-609e073094b3",
    "description": "Ensure that the column contains unique values.",
    "type": "Unique",
    "typeProperties": {
      "column": {
        "type": "Column",
        "value": "CAMPAIGN_NAME"
      }
    },
    "status": "Active",
    "score": -1,
    "dimension": "Uniqueness",
    "businessDomain": {
      "type": "BusinessDomainReference",
      "referenceId": "76be16f9-5cb3-4839-83d6-4e3829a8ab0c"
    },
    "dataProduct": {
      "type": "DataProductReference",
      "referenceId": "2a1d2087-09e2-4ecf-817d-1f5bfcbc31bf"
    },
    "dataAsset": {
      "type": "DataAssetReference",
      "referenceId": "fadb55b6-aa10-47d5-82c4-5e2723ba7869"
    },
    "lastModifiedAt": "2025-06-27T10:37:27.3129053Z",
    "lastModifiedBy": "92522642-6537-4785-9fcd-fe58afaa43c5",
    "createdAt": "2025-06-27T10:37:27.3129053Z",
    "createdBy": "92522642-6537-4785-9fcd-fe58afaa43c5"
  },
  {
    "name": "Duplicate_rows_ID",
    "id": "37b0f339-0fdc-4a79-bbfe-34b96241b498",
    "description": "Ensure that the combination of columns is unique for each row to avoid duplicate entries.",
    "type": "Duplicate",
    "typeProperties": {
      "columns": [
        {
          "value": "ID",
          "type": "Column"
        },
        {
          "value": "COUNTRY",
          "type": "Column"
        }
      ]
    },
    "status": "Active",
    "score": -1,
    "dimension": "Accuracy",
    "businessDomain": {
      "type": "BusinessDomainReference",
      "referenceId": "76be16f9-5cb3-4839-83d6-4e3829a8ab0c"
    },
    "dataProduct": {
      "type": "DataProductReference",
      "referenceId": "2a1d2087-09e2-4ecf-817d-1f5bfcbc31bf"
    },
    "dataAsset": {
      "type": "DataAssetReference",
      "referenceId": "fadb55b6-aa10-47d5-82c4-5e2723ba7869"
    },
    "lastModifiedAt": "2025-06-27T10:37:27.3152367Z",
    "lastModifiedBy": "92522642-6537-4785-9fcd-fe58afaa43c5",
    "createdAt": "2025-06-27T10:37:27.3152367Z",
    "createdBy": "92522642-6537-4785-9fcd-fe58afaa43c5"
  }
]

Definitions

Name Description
Azure.Core.Foundations.Error

The error object.

Azure.Core.Foundations.ErrorResponse

A response containing error details.

Azure.Core.Foundations.InnerError

An object containing more specific information about the error. As per Azure REST API guidelines - https://aka.ms/AzureRestApiGuidelines#handling-errors.

Column

Column definition for dataset validation and quality checks

Reference

Reference to entities in the data governance hierarchy for relationship establishment

RuleEntity

Data quality rule entity with validation logic, execution parameters, and scoring

TypeProperties

Type-specific configuration properties for data quality rules.

Azure.Core.Foundations.Error

The error object.

Name Type Description
code

string

One of a server-defined set of error codes.

details

Azure.Core.Foundations.Error[]

An array of details about specific errors that led to this reported error.

innererror

Azure.Core.Foundations.InnerError

An object containing more specific information than the current object about the error.

message

string

A human-readable representation of the error.

target

string

The target of the error.

Azure.Core.Foundations.ErrorResponse

A response containing error details.

Name Type Description
error

Azure.Core.Foundations.Error

The error object.

Azure.Core.Foundations.InnerError

An object containing more specific information about the error. As per Azure REST API guidelines - https://aka.ms/AzureRestApiGuidelines#handling-errors.

Name Type Description
code

string

One of a server-defined set of error codes.

innererror

Azure.Core.Foundations.InnerError

Inner error.

Column

Column definition for dataset validation and quality checks

Name Type Description
type

string

Column data type or classification

value

string

Column name or identifier

Reference

Reference to entities in the data governance hierarchy for relationship establishment

Name Type Description
referenceId

string

Unique identifier of the referenced entity

type

string

Type classification of the referenced entity

RuleEntity

Data quality rule entity with validation logic, execution parameters, and scoring

Name Type Description
businessDomain

Reference

Business domain reference

createdAt

string (date-time)

Timestamp when this rule was created

createdBy

string

User identifier for the creator of the rule

dataAsset

Reference

Data asset reference

dataProduct

Reference

Data product reference

description

string

Detailed description of rule validation and business purpose

dimension

string

Optional business dimension or classification

id

string

Unique rule identifier

lastModifiedAt

string (date-time)

Timestamp when this rule was last modified

lastModifiedBy

string

User identifier for the last modifier of the rule

name

string

Descriptive name of the rule

score

number (double)

Quality score (0.0 to 1.0)

status

string

Current execution status

type

string

Rule type classification

typeProperties

TypeProperties

Type-specific configuration properties

TypeProperties

Type-specific configuration properties for data quality rules.

Name Type Description
column

Column

Column specification for column-specific rules.

columns

Column[]

List of columns for multi-column or relational rules (e.g., Duplicate, CustomTruth).

condition

string

Main logical condition or expression defining validation criteria.

emptyCriteria

string

Optional condition defining when a field or column is considered empty.

filterCriteria

string

Optional filter condition to limit rows that are validated by this rule.

pattern

string

Regex or pattern-based validation logic for format rules.