Get-AzPurviewClassificationRule
取得分類規則
語法
Get-AzPurviewClassificationRule
-Endpoint <String>
[-DefaultProfile <PSObject>]
[<CommonParameters>]
Get-AzPurviewClassificationRule
-Endpoint <String>
-Name <String>
[-DefaultProfile <PSObject>]
[<CommonParameters>]
Description
取得分類規則
範例
範例 1:依名稱取得自定義分類規則
Get-AzPurviewClassificationRule -Endpoint https://parv-brs-2.purview.azure.com/ -Name ClassificationRule1
ClassificationAction : Keep
ClassificationName : ClassificationName1
ColumnPattern : {{
"kind": "Regex",
"pattern": "column1"
}}
CreatedAt : 1/27/2022 4:36:25 AM
DataPattern : {{
"kind": "Regex",
"pattern": "^\\d{5}$"
}}
Description : This is a description
Id : classificationrules/ClassificationRule1
Kind : Custom
LastModifiedAt : 1/27/2022 4:36:25 AM
MinimumPercentageMatch : 60
Name : ClassificationRule1
RuleStatus : Enabled
Version : 1
取得名為 Classification1 的分類規則
範例 2:取得所有自定義分類規則
Get-AzPurviewClassificationRule -Endpoint https://parv-brs-2.purview.azure.com/
ClassificationAction : Keep
ClassificationName : ClassificationName1
ColumnPattern : {{
"kind": "Regex",
"pattern": "column1"
}}
CreatedAt : 1/27/2022 4:36:25 AM
DataPattern : {{
"kind": "Regex",
"pattern": "^\\d{5}$"
}}
Description : This is a description
Id : classificationrules/ClassificationRule1
Kind : Custom
LastModifiedAt : 1/27/2022 4:36:25 AM
MinimumPercentageMatch : 60
Name : ClassificationRule1
RuleStatus : Enabled
Version : 1
ClassificationAction : Keep
ClassificationName : ClassificationName2
ColumnPattern : {{
"kind": "Regex",
"pattern": "column2"
}}
CreatedAt : 1/27/2022 4:37:09 AM
DataPattern : {{
"kind": "Regex",
"pattern": "^\\d{6}$"
}}
Description : This is description
Id : classificationrules/ClassificationRule2
Kind : Custom
LastModifiedAt : 1/27/2022 4:37:09 AM
MinimumPercentageMatch : 60
Name : ClassificationRule2
RuleStatus : Enabled
Version : 1
取得所有自定義分類規則
參數
-DefaultProfile
DefaultProfile 參數無法運作。 如果針對不同的訂用帳戶執行 Cmdlet,請使用 SubscriptionId 參數。
類型: | PSObject |
別名: | AzureRMContext, AzureCredential |
Position: | Named |
預設值: | None |
必要: | False |
接受管線輸入: | False |
接受萬用字元: | False |
-Endpoint
purview 帳戶的掃描端點。 範例:https://{accountName}.purview.azure.com
類型: | String |
Position: | Named |
預設值: | None |
必要: | True |
接受管線輸入: | False |
接受萬用字元: | False |
-Name
.
類型: | String |
別名: | ClassificationRuleName |
Position: | Named |
預設值: | None |
必要: | True |
接受管線輸入: | False |
接受萬用字元: | False |