您现在访问的是微软AZURE全球版技术文档网站,若需要访问由世纪互联运营的MICROSOFT AZURE中国区技术文档网站,请访问 https://docs.azure.cn.

Classification Rules - Get

获取分类规则

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

URI 参数

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

Purview 帐户的扫描终结点。 示例:https://{accountName}.scan.purview.azure.com

api-version
query True
  • string

使用的 API 版本。

响应

Name Type Description
200 OK ClassificationRule:

成功

Other Status Codes

从扫描服务收到的错误响应

示例

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

定义

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