Freigeben über


New-DlpPolicy

Creates a new DLP policy in the tenant by using the NewPolicy DLPPolicyDefinition object.

Syntax

New-DlpPolicy
   -DisplayName <String>
   -EnvironmentType <String>
   [-DefaultConnectorClassification <String>]
   [-Environments <Object>]
   [-ApiVersion <String>]
   [<CommonParameters>]
New-DlpPolicy
   -NewPolicy <Object>
   [-ApiVersion <String>]
   [<CommonParameters>]

Description

The New-DlpPolicy cmdlet creates a new DLP policy for the logged in admin's tenant. Use Get-Help New-DlpPolicy -Examples for more detail.

Examples

EXAMPLE 1

New-DlpPolicy -NewPolicy $NewPolicy

Creates a new policy with the $NewPolicy object.

Parameters

-ApiVersion

Specifies the Api version that is called.

Type:String
Position:Named
Default value:2016-11-01
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-DefaultConnectorClassification

Default connector classification.

Type:String
Position:Named
Default value:General
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-DisplayName

Creates the policy with the input display name.

Type:String
Position:Named
Default value:None
Required:True
Accept pipeline input:False
Accept wildcard characters:False

-Environments

Comma separated string list used as input environments to either include or exclude, depending on the FilterType.

Type:Object
Position:Named
Default value:@()
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-EnvironmentType

The type of the environment: trial, production, sandbox, default.

Type:String
Position:Named
Default value:None
Required:True
Accept pipeline input:False
Accept wildcard characters:False

-NewPolicy

Creates a DLP policy with the NewPolicy object.

Type:Object
Position:Named
Default value:None
Required:True
Accept pipeline input:False
Accept wildcard characters:False