Set-AdminDlpPolicy

Updates a policy's environment and default API group settings. Upserts the environment list input (doesn't append).

Syntax

Set-AdminDlpPolicy
   -PolicyName <String>
   [-FilterType <String>]
   [-Environments <String>]
   [-DefaultGroup <String>]
   [-SetNonBusinessDataGroupState <String>]
   [-ApiVersion <String>]
   [-SchemaVersion <String>]
   [<CommonParameters>]
Set-AdminDlpPolicy
   -PolicyName <String>
   [-DefaultGroup <String>]
   -EnvironmentName <String>
   [-SetNonBusinessDataGroupState <String>]
   [-ApiVersion <String>]
   [-SchemaVersion <String>]
   [<CommonParameters>]

Description

The Set-AdminDlpPolicy cmdlet updates details on the policy, such as environment filter and default API group. Use Get-Help Set-AdminDlpPolicy -Examples for more detail.

Examples

EXAMPLE 1

Set-AdminDlpPolicy -PolicyName 78d6c98c-aaa0-4b2b-91c3-83d211754d8a -FilterType None

Clears the environment filter for the policy 78d6c98c-aaa0-4b2b-91c3-83d211754d8a.

EXAMPLE 2

Set-AdminDlpPolicy -PolicyName 78d6c98c-aaa0-4b2b-91c3-83d211754d8a -FilterType Include -Environments "febb5387-84d7-4717-8345-334a34402f3d,83d98843-bfd7-47ef-bfcd-dc628810ae7b"

Only applies the policy to the environments febb5387-84d7-4717-8345-334a34402f3d and 83d98843-bfd7-47ef-bfcd-dc628810ae7b.

EXAMPLE 3

Set-AdminDlpPolicy -PolicyName 78d6c98c-aaa0-4b2b-91c3-83d211754d8a -FilterType Exclude -Environments "febb5387-84d7-4717-8345-334a34402f3d,83d98843-bfd7-47ef-bfcd-dc628810ae7b"

Applies the policy to all environments except febb5387-84d7-4717-8345-334a34402f3d and 83d98843-bfd7-47ef-bfcd-dc628810ae7b.

EXAMPLE 4

Set-AdminDlpPolicy -PolicyName 78d6c98c-aaa0-4b2b-91c3-83d211754d8a -DefaultGroup hbi

Sets the default data group attribute to be hbi (business data only).

EXAMPLE 5

Set-AdminDlpPolicy -PolicyName 78d6c98c-aaa0-4b2b-91c3-83d211754d8a -SchemaVersion 2018-11-01

Sets the DLP policy to schema version '2018-11-01', allowing for the use of HTTP connectors.

EXAMPLE 6

Set-AdminDlpPolicy -PolicyName 78d6c98c-aaa0-4b2b-91c3-83d211754d8a -SetNonBusinessDataGroupState "Block"

Sets non-business data (lbi) to a block state.

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

-DefaultGroup

The default group setting, hbi or lbi.

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

-EnvironmentName

The environment ID.

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:String
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-FilterType

Identifies which filter type the policy will have, none, include, or exclude.

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

-PolicyName

Policy name that is updated.

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

-SchemaVersion

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

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

-SetNonBusinessDataGroupState

Set non business data group (lbi) to a Block or Unblock state.

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