1. Packages
  2. Checkpoint Provider
  3. API Docs
  4. getManagementNatRule
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 NAT Rule.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as checkpoint from "@pulumi/checkpoint";
    
    const testManagementNatRule = new checkpoint.ManagementNatRule("test", {
        name: "natrule",
        "package": "Standard",
        position: {
            top: "top",
        },
    });
    const test = checkpoint.getManagementNatRuleOutput({
        "package": testManagementNatRule["package"],
        name: testManagementNatRule.name,
    });
    
    import pulumi
    import pulumi_checkpoint as checkpoint
    
    test_management_nat_rule = checkpoint.ManagementNatRule("test",
        name="natrule",
        package="Standard",
        position={
            "top": "top",
        })
    test = checkpoint.get_management_nat_rule_output(package=test_management_nat_rule.package,
        name=test_management_nat_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 {
    		testManagementNatRule, err := checkpoint.NewManagementNatRule(ctx, "test", &checkpoint.ManagementNatRuleArgs{
    			Name:    pulumi.String("natrule"),
    			Package: pulumi.String("Standard"),
    			Position: pulumi.StringMap{
    				"top": pulumi.String("top"),
    			},
    		})
    		if err != nil {
    			return err
    		}
    		_ = checkpoint.LookupManagementNatRuleOutput(ctx, checkpoint.GetManagementNatRuleOutputArgs{
    			Package: testManagementNatRule.Package,
    			Name:    testManagementNatRule.Name,
    		}, nil)
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Checkpoint = Pulumi.Checkpoint;
    
    return await Deployment.RunAsync(() => 
    {
        var testManagementNatRule = new Checkpoint.ManagementNatRule("test", new()
        {
            Name = "natrule",
            Package = "Standard",
            Position = 
            {
                { "top", "top" },
            },
        });
    
        var test = Checkpoint.GetManagementNatRule.Invoke(new()
        {
            Package = testManagementNatRule.Package,
            Name = testManagementNatRule.Name,
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.checkpoint.ManagementNatRule;
    import com.pulumi.checkpoint.ManagementNatRuleArgs;
    import com.pulumi.checkpoint.CheckpointFunctions;
    import com.pulumi.checkpoint.inputs.GetManagementNatRuleArgs;
    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 testManagementNatRule = new ManagementNatRule("testManagementNatRule", ManagementNatRuleArgs.builder()
                .name("natrule")
                .package_("Standard")
                .position(Map.of("top", "top"))
                .build());
    
            final var test = CheckpointFunctions.getManagementNatRule(GetManagementNatRuleArgs.builder()
                .package_(testManagementNatRule.package())
                .name(testManagementNatRule.name())
                .build());
    
        }
    }
    
    resources:
      testManagementNatRule:
        type: checkpoint:ManagementNatRule
        name: test
        properties:
          name: natrule
          package: Standard
          position:
            top: top
    variables:
      test:
        fn::invoke:
          function: checkpoint:getManagementNatRule
          arguments:
            package: ${testManagementNatRule.package}
            name: ${testManagementNatRule.name}
    

    Using getManagementNatRule

    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 getManagementNatRule(args: GetManagementNatRuleArgs, opts?: InvokeOptions): Promise<GetManagementNatRuleResult>
    function getManagementNatRuleOutput(args: GetManagementNatRuleOutputArgs, opts?: InvokeOptions): Output<GetManagementNatRuleResult>
    def get_management_nat_rule(id: Optional[str] = None,
                                name: Optional[str] = None,
                                package: Optional[str] = None,
                                uid: Optional[str] = None,
                                opts: Optional[InvokeOptions] = None) -> GetManagementNatRuleResult
    def get_management_nat_rule_output(id: Optional[pulumi.Input[str]] = None,
                                name: Optional[pulumi.Input[str]] = None,
                                package: Optional[pulumi.Input[str]] = None,
                                uid: Optional[pulumi.Input[str]] = None,
                                opts: Optional[InvokeOptions] = None) -> Output[GetManagementNatRuleResult]
    func LookupManagementNatRule(ctx *Context, args *LookupManagementNatRuleArgs, opts ...InvokeOption) (*LookupManagementNatRuleResult, error)
    func LookupManagementNatRuleOutput(ctx *Context, args *LookupManagementNatRuleOutputArgs, opts ...InvokeOption) LookupManagementNatRuleResultOutput

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

    public static class GetManagementNatRule 
    {
        public static Task<GetManagementNatRuleResult> InvokeAsync(GetManagementNatRuleArgs args, InvokeOptions? opts = null)
        public static Output<GetManagementNatRuleResult> Invoke(GetManagementNatRuleInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetManagementNatRuleResult> getManagementNatRule(GetManagementNatRuleArgs args, InvokeOptions options)
    public static Output<GetManagementNatRuleResult> getManagementNatRule(GetManagementNatRuleArgs args, InvokeOptions options)
    
    fn::invoke:
      function: checkpoint:index/getManagementNatRule:getManagementNatRule
      arguments:
        # arguments dictionary

    The following arguments are supported:

    Package string
    Name of the package.
    Id string
    Name string
    Rule name.
    Uid string
    Object unique identifier.
    Package string
    Name of the package.
    Id string
    Name string
    Rule name.
    Uid string
    Object unique identifier.
    package_ String
    Name of the package.
    id String
    name String
    Rule name.
    uid String
    Object unique identifier.
    package string
    Name of the package.
    id string
    name string
    Rule name.
    uid string
    Object unique identifier.
    package str
    Name of the package.
    id str
    name str
    Rule name.
    uid str
    Object unique identifier.
    package String
    Name of the package.
    id String
    name String
    Rule name.
    uid String
    Object unique identifier.

    getManagementNatRule Result

    The following output properties are available:

    autoGenerated Boolean
    comments String
    enabled Boolean
    id String
    installOns List<String>
    method String
    originalDestination String
    originalService String
    originalSource String
    package_ String
    translatedDestination String
    translatedService String
    translatedSource String
    name String
    uid String
    autoGenerated boolean
    comments string
    enabled boolean
    id string
    installOns string[]
    method string
    originalDestination string
    originalService string
    originalSource string
    package string
    translatedDestination string
    translatedService string
    translatedSource string
    name string
    uid string
    autoGenerated Boolean
    comments String
    enabled Boolean
    id String
    installOns List<String>
    method String
    originalDestination String
    originalService String
    originalSource String
    package String
    translatedDestination String
    translatedService String
    translatedSource 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