1. Packages
  2. Checkpoint Provider
  3. API Docs
  4. getManagementThreatRule
checkpoint 2.12.0 published on Monday, Nov 10, 2025 by checkpointsw
checkpoint logo
checkpoint 2.12.0 published on Monday, Nov 10, 2025 by checkpointsw

    This resource allows you to execute Check Point Threat Rule.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as checkpoint from "@pulumi/checkpoint";
    
    const testManagementThreatRule = new checkpoint.ManagementThreatRule("test", {
        name: "threat rule",
        layer: "Standard Threat Prevention",
        position: {
            top: "top",
        },
    });
    const test = checkpoint.getManagementThreatRuleOutput({
        layer: testManagementThreatRule.layer,
        name: testManagementThreatRule.name,
    });
    
    import pulumi
    import pulumi_checkpoint as checkpoint
    
    test_management_threat_rule = checkpoint.ManagementThreatRule("test",
        name="threat rule",
        layer="Standard Threat Prevention",
        position={
            "top": "top",
        })
    test = checkpoint.get_management_threat_rule_output(layer=test_management_threat_rule.layer,
        name=test_management_threat_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 {
    		testManagementThreatRule, err := checkpoint.NewManagementThreatRule(ctx, "test", &checkpoint.ManagementThreatRuleArgs{
    			Name:  pulumi.String("threat rule"),
    			Layer: pulumi.String("Standard Threat Prevention"),
    			Position: pulumi.StringMap{
    				"top": pulumi.String("top"),
    			},
    		})
    		if err != nil {
    			return err
    		}
    		_ = checkpoint.LookupManagementThreatRuleOutput(ctx, checkpoint.GetManagementThreatRuleOutputArgs{
    			Layer: testManagementThreatRule.Layer,
    			Name:  testManagementThreatRule.Name,
    		}, nil)
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Checkpoint = Pulumi.Checkpoint;
    
    return await Deployment.RunAsync(() => 
    {
        var testManagementThreatRule = new Checkpoint.ManagementThreatRule("test", new()
        {
            Name = "threat rule",
            Layer = "Standard Threat Prevention",
            Position = 
            {
                { "top", "top" },
            },
        });
    
        var test = Checkpoint.GetManagementThreatRule.Invoke(new()
        {
            Layer = testManagementThreatRule.Layer,
            Name = testManagementThreatRule.Name,
        });
    
    });
    
    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.CheckpointFunctions;
    import com.pulumi.checkpoint.inputs.GetManagementThreatRuleArgs;
    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 testManagementThreatRule = new ManagementThreatRule("testManagementThreatRule", ManagementThreatRuleArgs.builder()
                .name("threat rule")
                .layer("Standard Threat Prevention")
                .position(Map.of("top", "top"))
                .build());
    
            final var test = CheckpointFunctions.getManagementThreatRule(GetManagementThreatRuleArgs.builder()
                .layer(testManagementThreatRule.layer())
                .name(testManagementThreatRule.name())
                .build());
    
        }
    }
    
    resources:
      testManagementThreatRule:
        type: checkpoint:ManagementThreatRule
        name: test
        properties:
          name: threat rule
          layer: Standard Threat Prevention
          position:
            top: top
    variables:
      test:
        fn::invoke:
          function: checkpoint:getManagementThreatRule
          arguments:
            layer: ${testManagementThreatRule.layer}
            name: ${testManagementThreatRule.name}
    

    Using getManagementThreatRule

    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 getManagementThreatRule(args: GetManagementThreatRuleArgs, opts?: InvokeOptions): Promise<GetManagementThreatRuleResult>
    function getManagementThreatRuleOutput(args: GetManagementThreatRuleOutputArgs, opts?: InvokeOptions): Output<GetManagementThreatRuleResult>
    def get_management_threat_rule(id: Optional[str] = None,
                                   layer: Optional[str] = None,
                                   name: Optional[str] = None,
                                   uid: Optional[str] = None,
                                   opts: Optional[InvokeOptions] = None) -> GetManagementThreatRuleResult
    def get_management_threat_rule_output(id: Optional[pulumi.Input[str]] = None,
                                   layer: Optional[pulumi.Input[str]] = None,
                                   name: Optional[pulumi.Input[str]] = None,
                                   uid: Optional[pulumi.Input[str]] = None,
                                   opts: Optional[InvokeOptions] = None) -> Output[GetManagementThreatRuleResult]
    func LookupManagementThreatRule(ctx *Context, args *LookupManagementThreatRuleArgs, opts ...InvokeOption) (*LookupManagementThreatRuleResult, error)
    func LookupManagementThreatRuleOutput(ctx *Context, args *LookupManagementThreatRuleOutputArgs, opts ...InvokeOption) LookupManagementThreatRuleResultOutput

    > Note: This function is named LookupManagementThreatRule in the Go SDK.

    public static class GetManagementThreatRule 
    {
        public static Task<GetManagementThreatRuleResult> InvokeAsync(GetManagementThreatRuleArgs args, InvokeOptions? opts = null)
        public static Output<GetManagementThreatRuleResult> Invoke(GetManagementThreatRuleInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetManagementThreatRuleResult> getManagementThreatRule(GetManagementThreatRuleArgs args, InvokeOptions options)
    public static Output<GetManagementThreatRuleResult> getManagementThreatRule(GetManagementThreatRuleArgs args, InvokeOptions options)
    
    fn::invoke:
      function: checkpoint:index/getManagementThreatRule:getManagementThreatRule
      arguments:
        # arguments dictionary

    The following arguments are supported:

    Layer string
    Layer that the rule belongs to identified by the name or UID.
    Id string
    Name string
    Rule name.
    Uid string
    Object unique identifier.
    Layer string
    Layer that the rule belongs to identified by the name or UID.
    Id string
    Name string
    Rule name.
    Uid string
    Object unique identifier.
    layer String
    Layer that the rule belongs to identified by the name or UID.
    id String
    name String
    Rule name.
    uid String
    Object unique identifier.
    layer string
    Layer that the rule belongs to identified by the name or UID.
    id string
    name string
    Rule name.
    uid string
    Object unique identifier.
    layer str
    Layer that the rule belongs to identified by the name or UID.
    id str
    name str
    Rule name.
    uid str
    Object unique identifier.
    layer String
    Layer that the rule belongs to identified by the name or UID.
    id String
    name String
    Rule name.
    uid String
    Object unique identifier.

    getManagementThreatRule Result

    The following output properties are available:

    Action string
    Comments string
    DestinationNegate bool
    Destinations List<string>
    Enabled bool
    Exceptions List<string>
    Id string
    InstallOns List<string>
    Layer string
    ProtectedScopeNegate bool
    ProtectedScopes List<string>
    ServiceNegate bool
    Services List<string>
    SourceNegate bool
    Sources List<string>
    Track string
    TrackSettings Dictionary<string, string>
    Name string
    Uid string
    Action string
    Comments string
    DestinationNegate bool
    Destinations []string
    Enabled bool
    Exceptions []string
    Id string
    InstallOns []string
    Layer string
    ProtectedScopeNegate bool
    ProtectedScopes []string
    ServiceNegate bool
    Services []string
    SourceNegate bool
    Sources []string
    Track string
    TrackSettings map[string]string
    Name string
    Uid string
    action String
    comments String
    destinationNegate Boolean
    destinations List<String>
    enabled Boolean
    exceptions List<String>
    id String
    installOns List<String>
    layer String
    protectedScopeNegate Boolean
    protectedScopes List<String>
    serviceNegate Boolean
    services List<String>
    sourceNegate Boolean
    sources List<String>
    track String
    trackSettings Map<String,String>
    name String
    uid String
    action string
    comments string
    destinationNegate boolean
    destinations string[]
    enabled boolean
    exceptions string[]
    id string
    installOns string[]
    layer string
    protectedScopeNegate boolean
    protectedScopes string[]
    serviceNegate boolean
    services string[]
    sourceNegate boolean
    sources string[]
    track string
    trackSettings {[key: string]: string}
    name string
    uid string
    action str
    comments str
    destination_negate bool
    destinations Sequence[str]
    enabled bool
    exceptions Sequence[str]
    id str
    install_ons Sequence[str]
    layer str
    protected_scope_negate bool
    protected_scopes Sequence[str]
    service_negate bool
    services Sequence[str]
    source_negate bool
    sources Sequence[str]
    track str
    track_settings Mapping[str, str]
    name str
    uid str
    action String
    comments String
    destinationNegate Boolean
    destinations List<String>
    enabled Boolean
    exceptions List<String>
    id String
    installOns List<String>
    layer String
    protectedScopeNegate Boolean
    protectedScopes List<String>
    serviceNegate Boolean
    services List<String>
    sourceNegate Boolean
    sources List<String>
    track String
    trackSettings Map<String>
    name String
    uid String

    Package Details

    Repository
    checkpoint checkpointsw/terraform-provider-checkpoint
    License
    Notes
    This Pulumi package is based on the checkpoint Terraform Provider.
    checkpoint logo
    checkpoint 2.12.0 published on Monday, Nov 10, 2025 by checkpointsw
      Meet Neo: Your AI Platform Teammate