Share via


New-AdminDlpPolicy

Creates and inserts a new api policy into the tenant. By default the environment filter is off, and all API connections are in the no business data group (lbi).

Syntax

Default (Default)

New-AdminDlpPolicy
    -DisplayName <String>
    [-EnvironmentName <String>]
    [-BlockNonBusinessDataGroup <Boolean>]
    [-ApiVersion <String>]
    [-SchemaVersion <String>]
    [<CommonParameters>]

Description

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

Examples

EXAMPLE 1

New-AdminDlpPolicy -DisplayName "MetroBank Policy"

Creates a new policy with the display name 'MetroBank Policy' in the tenant.

EXAMPLE 2

New-AdminDlpPolicy -DisplayName "MetroBank Policy" -EnvironmentName Default-02c201b0-db76-4a6a-b3e1-a69202b479e6

Creates a new policy with the display name 'MetroBank Policy' in the environment Default-02c201b0-db76-4a6a-b3e1-a69202b479e6.

EXAMPLE 3

New-AdminDlpPolicy -DisplayName "MetroBank Policy" -BlockNonBusinessDataGroup $true

Creates a new policy with the display name 'MetroBank Policy' in the tenant and blocks lbi data group.

EXAMPLE 4

New-AdminDlpPolicy -DisplayName "MRA Digital" -SchemaVersion 2018-11-01

Creates a new policy with the display name 'MRA Digital' and schema version '2018-11-01' (includes HTTP connectors).

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

-BlockNonBusinessDataGroup

Block non-business data group.

Parameter properties

Type:Boolean
Default value:False
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

-DisplayName

Creates the policy with the input display name.

Parameter properties

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

Parameter sets

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

-EnvironmentName

The environment's identifier.

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:True
Value from remaining arguments:False

-SchemaVersion

Specifies the schema version to use, 2016-11-01 or 2018-11-01 (HTTP connectors included).

Parameter properties

Type:String
Default value:2016-10-01-preview
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.