1. Registry
  2. Packages
  3. Checkpoint Provider
  4. API Docs
  5. getManagementNatRule
Viewing docs for checkpoint 3.4.0
published on Wednesday, Sep 16, 2026 by checkpointsw
checkpoint
Viewing docs for checkpoint 3.4.0
published on Wednesday, Sep 16, 2026 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/v3/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: &checkpoint.ManagementNatRulePositionArgs{
    				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 = new Checkpoint.Inputs.ManagementNatRulePositionArgs
            {
                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.inputs.ManagementNatRulePositionArgs;
    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(ManagementNatRulePositionArgs.builder()
                    .top("top")
                    .build())
                .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}
    
    Example coming soon!
    

    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?: InvokeOutputOptions): 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: pulumi.Input[Optional[str]] = None,
                                name: pulumi.Input[Optional[str]] = None,
                                package: pulumi.Input[Optional[str]] = None,
                                uid: pulumi.Input[Optional[str]] = None,
                                opts: Optional[InvokeOutputOptions] = 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 Output<GetManagementNatRuleResult> Invoke(GetManagementNatRuleInvokeArgs args, InvokeOutputOptions opts)
    }
    public static CompletableFuture<GetManagementNatRuleResult> getManagementNatRule(GetManagementNatRuleArgs args, InvokeOptions options)
    public static Output<GetManagementNatRuleResult> getManagementNatRule(GetManagementNatRuleArgs args, InvokeOptions options)
    public static Output<GetManagementNatRuleResult> getManagementNatRule(GetManagementNatRuleArgs args, InvokeOutputOptions options)
    
    fn::invoke:
      function: checkpoint:index/getManagementNatRule:getManagementNatRule
      arguments:
        # arguments dictionary
    data "checkpoint_get_management_nat_rule" "name" {
        # arguments
    }

    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 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:

    Supporting Types

    GetManagementNatRuleHit

    FirstDates List<GetManagementNatRuleHitFirstDate>
    N/A.first_date blocks are documented below.
    LastDates List<GetManagementNatRuleHitLastDate>
    N/A.last_date blocks are documented below.
    Level string
    N/A.
    Percentage string
    N/A.
    Value double
    N/A.
    FirstDates []GetManagementNatRuleHitFirstDate
    N/A.first_date blocks are documented below.
    LastDates []GetManagementNatRuleHitLastDate
    N/A.last_date blocks are documented below.
    Level string
    N/A.
    Percentage string
    N/A.
    Value float64
    N/A.
    first_dates list(object)
    N/A.first_date blocks are documented below.
    last_dates list(object)
    N/A.last_date blocks are documented below.
    level string
    N/A.
    percentage string
    N/A.
    value number
    N/A.
    firstDates List<GetManagementNatRuleHitFirstDate>
    N/A.first_date blocks are documented below.
    lastDates List<GetManagementNatRuleHitLastDate>
    N/A.last_date blocks are documented below.
    level String
    N/A.
    percentage String
    N/A.
    value Double
    N/A.
    firstDates GetManagementNatRuleHitFirstDate[]
    N/A.first_date blocks are documented below.
    lastDates GetManagementNatRuleHitLastDate[]
    N/A.last_date blocks are documented below.
    level string
    N/A.
    percentage string
    N/A.
    value number
    N/A.
    first_dates Sequence[GetManagementNatRuleHitFirstDate]
    N/A.first_date blocks are documented below.
    last_dates Sequence[GetManagementNatRuleHitLastDate]
    N/A.last_date blocks are documented below.
    level str
    N/A.
    percentage str
    N/A.
    value float
    N/A.
    firstDates List<Property Map>
    N/A.first_date blocks are documented below.
    lastDates List<Property Map>
    N/A.last_date blocks are documented below.
    level String
    N/A.
    percentage String
    N/A.
    value Number
    N/A.

    GetManagementNatRuleHitFirstDate

    Iso8601 string
    Date and time represented in international ISO 8601 format.
    Posix double
    Number of milliseconds that have elapsed since 00:00:00, 1 January 1970.
    Iso8601 string
    Date and time represented in international ISO 8601 format.
    Posix float64
    Number of milliseconds that have elapsed since 00:00:00, 1 January 1970.
    iso8601 string
    Date and time represented in international ISO 8601 format.
    posix number
    Number of milliseconds that have elapsed since 00:00:00, 1 January 1970.
    iso8601 String
    Date and time represented in international ISO 8601 format.
    posix Double
    Number of milliseconds that have elapsed since 00:00:00, 1 January 1970.
    iso8601 string
    Date and time represented in international ISO 8601 format.
    posix number
    Number of milliseconds that have elapsed since 00:00:00, 1 January 1970.
    iso8601 str
    Date and time represented in international ISO 8601 format.
    posix float
    Number of milliseconds that have elapsed since 00:00:00, 1 January 1970.
    iso8601 String
    Date and time represented in international ISO 8601 format.
    posix Number
    Number of milliseconds that have elapsed since 00:00:00, 1 January 1970.

    GetManagementNatRuleHitLastDate

    Iso8601 string
    Date and time represented in international ISO 8601 format.
    Posix double
    Number of milliseconds that have elapsed since 00:00:00, 1 January 1970.
    Iso8601 string
    Date and time represented in international ISO 8601 format.
    Posix float64
    Number of milliseconds that have elapsed since 00:00:00, 1 January 1970.
    iso8601 string
    Date and time represented in international ISO 8601 format.
    posix number
    Number of milliseconds that have elapsed since 00:00:00, 1 January 1970.
    iso8601 String
    Date and time represented in international ISO 8601 format.
    posix Double
    Number of milliseconds that have elapsed since 00:00:00, 1 January 1970.
    iso8601 string
    Date and time represented in international ISO 8601 format.
    posix number
    Number of milliseconds that have elapsed since 00:00:00, 1 January 1970.
    iso8601 str
    Date and time represented in international ISO 8601 format.
    posix float
    Number of milliseconds that have elapsed since 00:00:00, 1 January 1970.
    iso8601 String
    Date and time represented in international ISO 8601 format.
    posix Number
    Number of milliseconds that have elapsed since 00:00:00, 1 January 1970.

    Package Details

    Repository
    checkpoint checkpointsw/terraform-provider-checkpoint
    License
    Notes
    This Pulumi package is based on the checkpoint Terraform Provider.
    checkpoint
    Viewing docs for checkpoint 3.4.0
    published on Wednesday, Sep 16, 2026 by checkpointsw

      Try Pulumi Cloud free.
      Your team will thank you.

      Start free trial