Skip to content

Files

Latest commit

author
Taygan Rifat
Feb 27, 2022
9e46d33 · Feb 27, 2022

History

History
64 lines (57 loc) · 1.58 KB

readScanRuleset.md

File metadata and controls

64 lines (57 loc) · 1.58 KB

pv scan readScanRuleset

Command Reference > scan > readScanRuleset

Description

Get a scan ruleset

Syntax

pv scan readScanRuleset --scanRulesetName=<val>

Required Arguments

--scanRulesetName (string)
The scan ruleset name.

Optional Arguments

None

API Mapping

Scanning Data Plane > Scan Rulesets > Get

GET https://{accountName}.purview.azure.com/scan/scanrulesets/{scanRulesetName}

Examples

Get a custom scan ruleset.

pv scan readScanRuleset --scanRulesetName "adls_parquet_only"
Sample response.

{
    "id": "scanrulesets/adls_parquet_only",
    "kind": "AdlsGen2",
    "name": "adls_parquet_only",
    "properties": {
        "collection": null,
        "createdAt": "2022-02-27T21:22:19.0970457Z",
        "description": null,
        "excludedSystemClassifications": [],
        "includedCustomClassificationRuleNames": [],
        "lastModifiedAt": "2022-02-27T21:22:19.0970462Z",
        "scanningRule": {
            "customFileExtensions": null,
            "fileExtensions": [
                "PARQUET"
            ]
        },
        "temporaryResourceFilters": [
            {
                "ingestTemporaryResource": true,
                "resourceFilterPattern": "(_SUCCESS|_started_\\d*|_committed_\\d*|_committed_vacuum\\d*)$"
            }
        ]
    },
    "scanRulesetType": "Custom",
    "status": "Enabled",
    "version": 1
}