Classification Rules - Get

Erhalten einer Klassifizierungsregel

GET {Endpoint}/classificationrules/{classificationRuleName}?api-version=2018-12-01-preview

URI-Parameter

Name In Required Type Description
classificationRuleName
path True
  • string
Endpoint
path True
  • string

Der Überprüfungsendpunkt Ihres Purview-Kontos. Beispiel: https://{accountName}.scan.purview.azure.com

api-version
query True
  • string

Die zu verwendende API-Version.

Antworten

Name Type Description
200 OK ClassificationRule:

Erfolgreich

Other Status Codes

Eine vom Überprüfungsdienst empfangene Fehlerantwort

Beispiele

ClassificationRules_Get

Sample Request

GET {Endpoint}/classificationrules/ClassificationRule1?api-version=2018-12-01-preview

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$"
      }
    ]
  }
}

Definitionen

CustomClassificationRule
Error
ErrorModel
ErrorResponseModel
Properties
SystemClassificationRule

CustomClassificationRule

Name Type Description
id
  • string
kind string:
  • Custom
name
  • string
properties

Error

Name Type Description
code
  • string
details
message
  • string
target
  • string

ErrorModel

Name Type Description
code
  • string
details
message
  • string
target
  • string

ErrorResponseModel

Name Type Description
error

Properties

Name Type Description
baseUrl
  • string
description
  • string

SystemClassificationRule

Name Type Description
id
  • string
kind string:
  • System
name
  • string
properties