Classification Rules - Get
Gets a classification rule.
GET {endpoint}/scan/classificationrules/{classificationRuleName}?api-version=2023-09-01
URI Parameters
Name | In | Required | Type | Description |
---|---|---|---|---|
classification
|
path | True |
string minLength: 3maxLength: 63 pattern: ^[A-Za-z0-9]+(?:-[A-Za-z0-9]+)*$ |
The classification rule name. |
endpoint
|
path | True |
string (url) |
The scanning endpoint of your purview account. Example: https://{accountName}.purview.azure.com. |
api-version
|
query | True |
string |
The api version to use. |
Responses
Name | Type | Description |
---|---|---|
200 OK | ClassificationRule: |
Success. |
Other Status Codes |
An error response received from the Scanning Service. Headers x-ms-error-code: string |
Security
azure_auth
Azure Active Directory OAuth2 Flow.
Type:
oauth2
Flow:
implicit
Authorization URL:
https://login.microsoftonline.com/common/oauth2/authorize
Scopes
Name | Description |
---|---|
user_impersonation | impersonate your user account |
Examples
ClassificationRules_Get
Sample request
GET {endpoint}/scan/classificationrules/ClassificationRule1?api-version=2023-09-01
Sample response
x-ms-request-id: d5496da4-9c52-402f-b067-83cc9ddea888
{
"id": "/subscriptions/12345678-1234-1234-12345678abc/resourceGroups/SampleResourceGroup/providers/Microsoft.DataCatalog/DataCatalogs/Catalog1/ClassificationRules/ClassificationRule1",
"name": "ClassificationRule1",
"kind": "Custom",
"properties": {
"minimumPercentageMatch": 80,
"classificationAction": "Keep",
"description": "second one",
"version": 4,
"classificationName": "CUSTOM.TEST.TWO",
"ruleStatus": "Enabled",
"createdAt": "2019-12-09T06:43:30.8478469Z",
"lastModifiedAt": "2019-12-09T07:04:53.2807344Z",
"dataPatterns": [
{
"kind": "Regex",
"pattern": "^data1$"
},
{
"kind": "Regex",
"pattern": "^data2$"
}
],
"columnPatterns": [
{
"kind": "Regex",
"pattern": "^column1$"
}
]
}
}
Definitions
Name | Description |
---|---|
Classification |
The action of classification rule. |
Classification |
The rule status of system classification rule. |
Custom |
Rule of custom classification. |
Custom |
The properties of custom classification rule. |
Error |
The error model. |
Error |
The error response model. |
Regex |
Pattern of regex classification rule. |
System |
The rule of system classification. |
System |
The properties of system classification rule. |
ClassificationAction
The action of classification rule.
Value | Description |
---|---|
Keep | |
Delete |
ClassificationRuleStatus
The rule status of system classification rule.
Value | Description |
---|---|
Enabled | |
Disabled |
CustomClassificationRule
Rule of custom classification.
Name | Type | Description |
---|---|---|
id |
string |
The resource identifier. |
kind |
string:
Custom |
The kind of classification rule. |
name |
string |
The resource name. |
properties |
The properties of custom classification rule. |
CustomClassificationRuleProperties
The properties of custom classification rule.
Name | Type | Description |
---|---|---|
classificationAction |
The action of classification rule. |
|
classificationName |
string |
The classification name of custom classification rule. |
columnPatterns | ClassificationRulePattern[]: |
The column patterns of custom classification rule. |
createdAt |
string (date-time) |
The create time of custom classification rule. |
dataPatterns | ClassificationRulePattern[]: |
The data patterns of custom classification rule. |
description |
string |
The description of custom classification rule. |
lastModifiedAt |
string (date-time) |
The last modified time of custom classification rule. |
minimumPercentageMatch |
number (double) |
|
ruleStatus |
The rule status of custom classification rule. |
|
version |
integer (int32) |
The version of custom classification rule. |
ErrorModel
The error model.
Name | Type | Description |
---|---|---|
code |
string |
A unique error code that identifies the specific error. |
details |
An array of nested ErrorModel objects that provides additional error details. |
|
message |
string |
A human-readable error message that provides more details about the error. |
target |
string |
The specific component that the error is associated with. |
ErrorResponseModel
The error response model.
Name | Type | Description |
---|---|---|
error |
The error model. |
RegexClassificationRulePattern
Pattern of regex classification rule.
Name | Type | Description |
---|---|---|
kind |
string:
Regex |
The properties of classification rule pattern. |
pattern |
string |
The pattern of regex classification rule pattern. |
SystemClassificationRule
The rule of system classification.
Name | Type | Description |
---|---|---|
id |
string |
The resource identifier. |
kind |
string:
System |
The kind of classification rule. |
name |
string |
The resource name. |
properties |
The properties of system classification rule. |
SystemClassificationRuleProperties
The properties of system classification rule.
Name | Type | Description |
---|---|---|
classificationName |
string |
The classification name of system classification rule. |
createdAt |
string (date-time) |
The create time of system classification rule. |
description |
string |
|
lastModifiedAt |
string (date-time) |
The last modified time of system classification rule. |
ruleStatus |
The rule status of system classification rule. |
|
version |
integer (int32) |
The version of system classification rule. |