Skip to content

Latest commit

 

History

History
 
 

prevention-policies

Add-CsPreventGroup

Add a Host Group to a Prevention policy

References

Documentation, Swagger

Parameters

-Id: The Prevention Policy ID

-Group: The Host Group ID

Example

PS> Add-CsPreventGroup -Id <string> -Group <string>

Disable-CsPreventPolicy

Disable Prevention policies

References

Swagger

Parameters

-Id: An array of one or more Prevention policy IDs

Example

PS> Disable-CsPreventPolicy -Id @(<string>, <string>)

Edit-CsPreventPolicy

Update Prevention Policies by specifying the ID of the policy and details to update

References

Documentation, Swagger

Parameters

-Resources: An array of Prevention policy properties

Example

PS> Edit-CsPreventPolicy -Resources @(@{ id = <string>; name = <string>; description = <string> })

Enable-CsPreventPolicy

Enable Prevention policies

References

Swagger

Parameters

-Id: An array of one or more Prevention policy IDs

Example

PS> Enable-CsPreventPolicy -Id @(<string>, <string>)

Get-CsPreventMemberId

Search for members of a Prevention policy in your environment

References

Swagger

Parameters

-Id: The ID of the Prevention policy to search for members of

-Filter: The filter expression that should be used to limit the results

-Limit: The maximum records to return [default: 5000]

-Offset: The offset to start retrieving records from [default: 0]

-All: Repeat request until all results are returned

Example

PS> Get-CsPreventMemberId -Id <string>

Get-CsPreventMemberInfo

Search for details about members of a Prevention policy in your environment

References

Swagger

Parameters

-Id: The ID of the Prevention policy to search for members of

-Filter: The filter expression that should be used to limit the results

-Limit: The maximum records to return [default: 5000]

-Offset: The offset to start retrieving records from [default: 0]

-All: Repeat request until all results are returned

Example

PS> Get-CsPreventMemberInfo -Id <string>

Get-CsPreventPolicyId

Search for Prevention policies in your environment

References

Swagger

Parameters

-Filter: The filter expression that should be used to limit the results

-Limit: The maximum records to return [default: 500]

-Offset: The offset to start retrieving records from [default: 0]

-All: Repeat request until all results are returned

Example

PS> Get-CsPreventPolicyId

Get-CsPreventPolicyInfo

Search for info about Prevention policies

References

Documentation, Swagger

Parameters

-Id: The IDs of specific Prevention policies to return

-Filter: The filter expression that should be used to limit the results

-Limit: The maximum records to return [default: 500]

-Offset: The offset to start retrieving records from [default: 0]

-All: Repeat request until all results are returned

Example

PS> Get-CsPreventPolicyInfo

New-CsPreventPolicy

Create Prevention policies by specifying details about the policy to create

References

Documentation, Swagger

Parameters

-Resources: An array of Prevention policy properties

Example

PS> New-CsPreventPolicy -Resources @(@{ name = <string>; platform_name = <string> })

Remove-CsPreventGroup

Remove a Host Group from a Prevention policy

References

Swagger

Parameters

-Id: The Prevention policy ID

-Group: The Host Group ID

Example

PS> Remove-CsPreventGroup -Id <string> -Group <string>

Remove-CsPreventPolicy

Delete a set of Prevention policies by specifying their IDs

References

Swagger

Parameters

-Id: The IDs of the Prevention policies to delete

Example

PS> Remove-CsPreventPolicy -Id @(<string>, <string>)

Set-CsPreventPrecedence

Sets the precedence of Prevention policies based on the order of IDs specified in the request

References

Documentation, Swagger

Parameters

-Platform: The operating system platform the Prevention policies are assigned to

-Id: An array of one or more Prevention policy IDs

Example

PS> Set-CsPreventPrecedence -Platform <string> -Id @(<string>, <string>)