Click or drag to resize

SessionInstallPolicy Method

Installs the policy to gateways.

Namespace:  Koopman.CheckPoint
Assembly:  CheckPoint.NET (in CheckPoint.NET.dll) Version: 0.5.1
Syntax
C#
public Task<string> InstallPolicy(
	string policy,
	string[] targets,
	bool access,
	bool threatPrevention,
	bool installOnAllClusterMembersOrFail = true,
	bool prepareOnly = false,
	string revision = null,
	CancellationToken cancellationToken = null
)
Request Example View Source

Parameters

policy
Type: SystemString
The policy to install.
targets
Type: SystemString
The target gateways.
access
Type: SystemBoolean
if set to true installs the access policy.
threatPrevention
Type: SystemBoolean
if set to true installs the threat prevention policy.
installOnAllClusterMembersOrFail (Optional)
Type: SystemBoolean
if set to true will fail if it cannot install policy to all cluster members. if set to false can complete with partial success if not all cluster members available.
prepareOnly (Optional)
Type: SystemBoolean
if set to true will prepare only.
revision (Optional)
Type: SystemString
The revision of the policy to install.
cancellationToken (Optional)
Type: System.ThreadingCancellationToken
The cancellation token.

Return Value

Type: TaskString
A task that represents the asynchronous operation. The task result contains the Check Point Task ID
See Also