checkpoint 2.11.0 published on Wednesday, Sep 3, 2025 by checkpointsw
checkpoint.getManagementThreatException
Start a Neo task
Explain and create a checkpoint.getManagementThreatException resource
checkpoint 2.11.0 published on Wednesday, Sep 3, 2025 by checkpointsw
This resource allows you to execute Check Point Threat Exception.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as checkpoint from "@pulumi/checkpoint";
const threatRule = new checkpoint.ManagementThreatRule("threatRule", {
layer: "Standard Threat Prevention",
position: {
top: "top",
},
});
const threatException = new checkpoint.ManagementThreatException("threatException", {
layer: "Standard Threat Prevention",
position: {
top: "top",
},
ruleName: threatRule.name,
});
const dataThreatException = pulumi.all([threatException.layer, threatException.name, threatException.ruleName]).apply(([layer, name, ruleName]) => checkpoint.getManagementThreatExceptionOutput({
layer: layer,
name: name,
ruleName: ruleName,
}));
import pulumi
import pulumi_checkpoint as checkpoint
threat_rule = checkpoint.ManagementThreatRule("threatRule",
layer="Standard Threat Prevention",
position={
"top": "top",
})
threat_exception = checkpoint.ManagementThreatException("threatException",
layer="Standard Threat Prevention",
position={
"top": "top",
},
rule_name=threat_rule.name)
data_threat_exception = pulumi.Output.all(
layer=threat_exception.layer,
name=threat_exception.name,
rule_name=threat_exception.rule_name
).apply(lambda resolved_outputs: checkpoint.get_management_threat_exception_output(layer=resolved_outputs['layer'],
name=resolved_outputs['name'],
rule_name=resolved_outputs['rule_name']))
package main
import (
"github.com/pulumi/pulumi-terraform-provider/sdks/go/checkpoint/v2/checkpoint"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
threatRule, err := checkpoint.NewManagementThreatRule(ctx, "threatRule", &checkpoint.ManagementThreatRuleArgs{
Layer: pulumi.String("Standard Threat Prevention"),
Position: pulumi.StringMap{
"top": pulumi.String("top"),
},
})
if err != nil {
return err
}
threatException, err := checkpoint.NewManagementThreatException(ctx, "threatException", &checkpoint.ManagementThreatExceptionArgs{
Layer: pulumi.String("Standard Threat Prevention"),
Position: pulumi.StringMap{
"top": pulumi.String("top"),
},
RuleName: threatRule.Name,
})
if err != nil {
return err
}
_ = pulumi.All(threatException.Layer, threatException.Name, threatException.RuleName).ApplyT(func(_args []interface{}) (checkpoint.GetManagementThreatExceptionResult, error) {
layer := _args[0].(*string)
name := _args[1].(string)
ruleName := _args[2].(*string)
return checkpoint.GetManagementThreatExceptionResult(interface{}(checkpoint.LookupManagementThreatExceptionOutput(ctx, checkpoint.GetManagementThreatExceptionOutputArgs{
Layer: layer,
Name: name,
RuleName: ruleName,
}, nil))), nil
}).(checkpoint.GetManagementThreatExceptionResultOutput)
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Checkpoint = Pulumi.Checkpoint;
return await Deployment.RunAsync(() =>
{
var threatRule = new Checkpoint.ManagementThreatRule("threatRule", new()
{
Layer = "Standard Threat Prevention",
Position =
{
{ "top", "top" },
},
});
var threatException = new Checkpoint.ManagementThreatException("threatException", new()
{
Layer = "Standard Threat Prevention",
Position =
{
{ "top", "top" },
},
RuleName = threatRule.Name,
});
var dataThreatException = Checkpoint.GetManagementThreatException.Invoke(new()
{
Layer = threatException.Layer,
Name = threatException.Name,
RuleName = threatException.RuleName,
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.checkpoint.ManagementThreatRule;
import com.pulumi.checkpoint.ManagementThreatRuleArgs;
import com.pulumi.checkpoint.ManagementThreatException;
import com.pulumi.checkpoint.ManagementThreatExceptionArgs;
import com.pulumi.checkpoint.CheckpointFunctions;
import com.pulumi.checkpoint.inputs.GetManagementThreatExceptionArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var threatRule = new ManagementThreatRule("threatRule", ManagementThreatRuleArgs.builder()
.layer("Standard Threat Prevention")
.position(Map.of("top", "top"))
.build());
var threatException = new ManagementThreatException("threatException", ManagementThreatExceptionArgs.builder()
.layer("Standard Threat Prevention")
.position(Map.of("top", "top"))
.ruleName(threatRule.name())
.build());
final var dataThreatException = CheckpointFunctions.getManagementThreatException(GetManagementThreatExceptionArgs.builder()
.layer(threatException.layer())
.name(threatException.name())
.ruleName(threatException.ruleName())
.build());
}
}
resources:
threatRule:
type: checkpoint:ManagementThreatRule
properties:
layer: Standard Threat Prevention
position:
top: top
threatException:
type: checkpoint:ManagementThreatException
properties:
layer: Standard Threat Prevention
position:
top: top
ruleName: ${threatRule.name}
variables:
dataThreatException:
fn::invoke:
function: checkpoint:getManagementThreatException
arguments:
layer: ${threatException.layer}
name: ${threatException.name}
ruleName: ${threatException.ruleName}
Using getManagementThreatException
Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.
function getManagementThreatException(args: GetManagementThreatExceptionArgs, opts?: InvokeOptions): Promise<GetManagementThreatExceptionResult>
function getManagementThreatExceptionOutput(args: GetManagementThreatExceptionOutputArgs, opts?: InvokeOptions): Output<GetManagementThreatExceptionResult>def get_management_threat_exception(exception_group_name: Optional[str] = None,
exception_group_uid: Optional[str] = None,
id: Optional[str] = None,
layer: Optional[str] = None,
name: Optional[str] = None,
rule_name: Optional[str] = None,
rule_uid: Optional[str] = None,
uid: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetManagementThreatExceptionResult
def get_management_threat_exception_output(exception_group_name: Optional[pulumi.Input[str]] = None,
exception_group_uid: Optional[pulumi.Input[str]] = None,
id: Optional[pulumi.Input[str]] = None,
layer: Optional[pulumi.Input[str]] = None,
name: Optional[pulumi.Input[str]] = None,
rule_name: Optional[pulumi.Input[str]] = None,
rule_uid: Optional[pulumi.Input[str]] = None,
uid: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetManagementThreatExceptionResult]func LookupManagementThreatException(ctx *Context, args *LookupManagementThreatExceptionArgs, opts ...InvokeOption) (*LookupManagementThreatExceptionResult, error)
func LookupManagementThreatExceptionOutput(ctx *Context, args *LookupManagementThreatExceptionOutputArgs, opts ...InvokeOption) LookupManagementThreatExceptionResultOutput> Note: This function is named LookupManagementThreatException in the Go SDK.
public static class GetManagementThreatException
{
public static Task<GetManagementThreatExceptionResult> InvokeAsync(GetManagementThreatExceptionArgs args, InvokeOptions? opts = null)
public static Output<GetManagementThreatExceptionResult> Invoke(GetManagementThreatExceptionInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetManagementThreatExceptionResult> getManagementThreatException(GetManagementThreatExceptionArgs args, InvokeOptions options)
public static Output<GetManagementThreatExceptionResult> getManagementThreatException(GetManagementThreatExceptionArgs args, InvokeOptions options)
fn::invoke:
function: checkpoint:index/getManagementThreatException:getManagementThreatException
arguments:
# arguments dictionaryThe following arguments are supported:
- Layer string
- Layer that the rule belongs to identified by the name or UID.
- Exception
Group stringName - The name of the exception-group.
- Exception
Group stringUid - The UID of the exception-group.
- Id string
- Name string
- The name of the exception.
- Rule
Name string - The name of the parent rule.
- Rule
Uid string - The UID of the parent rule.
- Uid string
- Object unique identifier.
- Layer string
- Layer that the rule belongs to identified by the name or UID.
- Exception
Group stringName - The name of the exception-group.
- Exception
Group stringUid - The UID of the exception-group.
- Id string
- Name string
- The name of the exception.
- Rule
Name string - The name of the parent rule.
- Rule
Uid string - The UID of the parent rule.
- Uid string
- Object unique identifier.
- layer String
- Layer that the rule belongs to identified by the name or UID.
- exception
Group StringName - The name of the exception-group.
- exception
Group StringUid - The UID of the exception-group.
- id String
- name String
- The name of the exception.
- rule
Name String - The name of the parent rule.
- rule
Uid String - The UID of the parent rule.
- uid String
- Object unique identifier.
- layer string
- Layer that the rule belongs to identified by the name or UID.
- exception
Group stringName - The name of the exception-group.
- exception
Group stringUid - The UID of the exception-group.
- id string
- name string
- The name of the exception.
- rule
Name string - The name of the parent rule.
- rule
Uid string - The UID of the parent rule.
- uid string
- Object unique identifier.
- layer str
- Layer that the rule belongs to identified by the name or UID.
- exception_
group_ strname - The name of the exception-group.
- exception_
group_ struid - The UID of the exception-group.
- id str
- name str
- The name of the exception.
- rule_
name str - The name of the parent rule.
- rule_
uid str - The UID of the parent rule.
- uid str
- Object unique identifier.
- layer String
- Layer that the rule belongs to identified by the name or UID.
- exception
Group StringName - The name of the exception-group.
- exception
Group StringUid - The UID of the exception-group.
- id String
- name String
- The name of the exception.
- rule
Name String - The name of the parent rule.
- rule
Uid String - The UID of the parent rule.
- uid String
- Object unique identifier.
getManagementThreatException Result
The following output properties are available:
- Action string
- Comments string
- Destination
Negate bool - Destinations List<string>
- Enabled bool
- Id string
- Install
Ons List<string> - Layer string
- Owner string
- Protected
Scope boolNegate - Protected
Scopes List<string> - Protection
Or List<string>Sites - Service
Negate bool - Services List<string>
- Source
Negate bool - Sources List<string>
- Track string
- Exception
Group stringName - Exception
Group stringUid - Name string
- Rule
Name string - Rule
Uid string - Uid string
- Action string
- Comments string
- Destination
Negate bool - Destinations []string
- Enabled bool
- Id string
- Install
Ons []string - Layer string
- Owner string
- Protected
Scope boolNegate - Protected
Scopes []string - Protection
Or []stringSites - Service
Negate bool - Services []string
- Source
Negate bool - Sources []string
- Track string
- Exception
Group stringName - Exception
Group stringUid - Name string
- Rule
Name string - Rule
Uid string - Uid string
- action String
- comments String
- destination
Negate Boolean - destinations List<String>
- enabled Boolean
- id String
- install
Ons List<String> - layer String
- owner String
- protected
Scope BooleanNegate - protected
Scopes List<String> - protection
Or List<String>Sites - service
Negate Boolean - services List<String>
- source
Negate Boolean - sources List<String>
- track String
- exception
Group StringName - exception
Group StringUid - name String
- rule
Name String - rule
Uid String - uid String
- action string
- comments string
- destination
Negate boolean - destinations string[]
- enabled boolean
- id string
- install
Ons string[] - layer string
- owner string
- protected
Scope booleanNegate - protected
Scopes string[] - protection
Or string[]Sites - service
Negate boolean - services string[]
- source
Negate boolean - sources string[]
- track string
- exception
Group stringName - exception
Group stringUid - name string
- rule
Name string - rule
Uid string - uid string
- action str
- comments str
- destination_
negate bool - destinations Sequence[str]
- enabled bool
- id str
- install_
ons Sequence[str] - layer str
- owner str
- protected_
scope_ boolnegate - protected_
scopes Sequence[str] - protection_
or_ Sequence[str]sites - service_
negate bool - services Sequence[str]
- source_
negate bool - sources Sequence[str]
- track str
- exception_
group_ strname - exception_
group_ struid - name str
- rule_
name str - rule_
uid str - uid str
- action String
- comments String
- destination
Negate Boolean - destinations List<String>
- enabled Boolean
- id String
- install
Ons List<String> - layer String
- owner String
- protected
Scope BooleanNegate - protected
Scopes List<String> - protection
Or List<String>Sites - service
Negate Boolean - services List<String>
- source
Negate Boolean - sources List<String>
- track String
- exception
Group StringName - exception
Group StringUid - name String
- rule
Name String - rule
Uid String - uid String
Package Details
- Repository
- checkpoint checkpointsw/terraform-provider-checkpoint
- License
- Notes
- This Pulumi package is based on the
checkpointTerraform Provider.
checkpoint 2.11.0 published on Wednesday, Sep 3, 2025 by checkpointsw
