Partilhar via


Get-DlpPolicy

Retrieves a list of DLP policy objects.

Syntax

Default (Default)

Get-DlpPolicy
    [-PolicyName <String>]
    [-ApiVersion <String>]
    [<CommonParameters>]

Description

The Get-DlpPolicy cmdlet retrieves policy objects for the logged in admin's tenant. Use Get-Help Get-DlpPolicy -Examples for more detail.

Examples

EXAMPLE 1

Get-DlpPolicy

Retrieves all policies in the tenant.

Parameters

-ApiVersion

Specifies the Api version that is called.

Parameter properties

Type:String
Default value:2016-11-01
Supports wildcards:False
DontShow:False

Parameter sets

(All)
Position:Named
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-PolicyName

Get the specific policy by using policy name.

Parameter properties

Type:String
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

(All)
Position:Named
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

CommonParameters

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable, -ProgressAction, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.