1. Packages
  2. Checkpoint Provider
  3. API Docs
  4. getManagementDataNetwork
checkpoint 2.9.0 published on Monday, Apr 14, 2025 by checkpointsw

checkpoint.getManagementDataNetwork

Explore with Pulumi AI

checkpoint logo
checkpoint 2.9.0 published on Monday, Apr 14, 2025 by checkpointsw

    Use this data source to get information on an existing Check Point Network Object.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as checkpoint from "@pulumi/checkpoint";
    
    const network = new checkpoint.ManagementNetwork("network", {
        maskLength4: 24,
        subnet4: "10.0.0.0",
    });
    const dataNetwork = checkpoint.getManagementDataNetworkOutput({
        name: network.name,
    });
    
    import pulumi
    import pulumi_checkpoint as checkpoint
    
    network = checkpoint.ManagementNetwork("network",
        mask_length4=24,
        subnet4="10.0.0.0")
    data_network = checkpoint.get_management_data_network_output(name=network.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 {
    		network, err := checkpoint.NewManagementNetwork(ctx, "network", &checkpoint.ManagementNetworkArgs{
    			MaskLength4: pulumi.Float64(24),
    			Subnet4:     pulumi.String("10.0.0.0"),
    		})
    		if err != nil {
    			return err
    		}
    		_ = checkpoint.GetManagementDataNetworkOutput(ctx, checkpoint.GetManagementDataNetworkOutputArgs{
    			Name: network.Name,
    		}, nil)
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Checkpoint = Pulumi.Checkpoint;
    
    return await Deployment.RunAsync(() => 
    {
        var network = new Checkpoint.ManagementNetwork("network", new()
        {
            MaskLength4 = 24,
            Subnet4 = "10.0.0.0",
        });
    
        var dataNetwork = Checkpoint.GetManagementDataNetwork.Invoke(new()
        {
            Name = network.Name,
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.checkpoint.ManagementNetwork;
    import com.pulumi.checkpoint.ManagementNetworkArgs;
    import com.pulumi.checkpoint.CheckpointFunctions;
    import com.pulumi.checkpoint.inputs.GetManagementDataNetworkArgs;
    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 network = new ManagementNetwork("network", ManagementNetworkArgs.builder()
                .maskLength4("24")
                .subnet4("10.0.0.0")
                .build());
    
            final var dataNetwork = CheckpointFunctions.getManagementDataNetwork(GetManagementDataNetworkArgs.builder()
                .name(network.name())
                .build());
    
        }
    }
    
    resources:
      network:
        type: checkpoint:ManagementNetwork
        properties:
          maskLength4: '24'
          subnet4: 10.0.0.0
    variables:
      dataNetwork:
        fn::invoke:
          function: checkpoint:getManagementDataNetwork
          arguments:
            name: ${network.name}
    

    Using getManagementDataNetwork

    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 getManagementDataNetwork(args: GetManagementDataNetworkArgs, opts?: InvokeOptions): Promise<GetManagementDataNetworkResult>
    function getManagementDataNetworkOutput(args: GetManagementDataNetworkOutputArgs, opts?: InvokeOptions): Output<GetManagementDataNetworkResult>
    def get_management_data_network(groups: Optional[Sequence[str]] = None,
                                    id: Optional[str] = None,
                                    name: Optional[str] = None,
                                    uid: Optional[str] = None,
                                    opts: Optional[InvokeOptions] = None) -> GetManagementDataNetworkResult
    def get_management_data_network_output(groups: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
                                    id: Optional[pulumi.Input[str]] = None,
                                    name: Optional[pulumi.Input[str]] = None,
                                    uid: Optional[pulumi.Input[str]] = None,
                                    opts: Optional[InvokeOptions] = None) -> Output[GetManagementDataNetworkResult]
    func GetManagementDataNetwork(ctx *Context, args *GetManagementDataNetworkArgs, opts ...InvokeOption) (*GetManagementDataNetworkResult, error)
    func GetManagementDataNetworkOutput(ctx *Context, args *GetManagementDataNetworkOutputArgs, opts ...InvokeOption) GetManagementDataNetworkResultOutput

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

    public static class GetManagementDataNetwork 
    {
        public static Task<GetManagementDataNetworkResult> InvokeAsync(GetManagementDataNetworkArgs args, InvokeOptions? opts = null)
        public static Output<GetManagementDataNetworkResult> Invoke(GetManagementDataNetworkInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetManagementDataNetworkResult> getManagementDataNetwork(GetManagementDataNetworkArgs args, InvokeOptions options)
    public static Output<GetManagementDataNetworkResult> getManagementDataNetwork(GetManagementDataNetworkArgs args, InvokeOptions options)
    
    fn::invoke:
      function: checkpoint:index/getManagementDataNetwork:getManagementDataNetwork
      arguments:
        # arguments dictionary

    The following arguments are supported:

    Groups List<string>
    Collection of group identifiers.
    Id string
    Name string
    Object name. Should be unique in the domain.
    Uid string
    Object unique identifier.
    Groups []string
    Collection of group identifiers.
    Id string
    Name string
    Object name. Should be unique in the domain.
    Uid string
    Object unique identifier.
    groups List<String>
    Collection of group identifiers.
    id String
    name String
    Object name. Should be unique in the domain.
    uid String
    Object unique identifier.
    groups string[]
    Collection of group identifiers.
    id string
    name string
    Object name. Should be unique in the domain.
    uid string
    Object unique identifier.
    groups Sequence[str]
    Collection of group identifiers.
    id str
    name str
    Object name. Should be unique in the domain.
    uid str
    Object unique identifier.
    groups List<String>
    Collection of group identifiers.
    id String
    name String
    Object name. Should be unique in the domain.
    uid String
    Object unique identifier.

    getManagementDataNetwork Result

    The following output properties are available:

    Broadcast string
    Color string
    Comments string
    Id string
    MaskLength4 double
    MaskLength6 double
    NatSettings Dictionary<string, string>
    Subnet4 string
    Subnet6 string
    Tags List<string>
    Groups List<string>
    Name string
    Uid string
    Broadcast string
    Color string
    Comments string
    Id string
    MaskLength4 float64
    MaskLength6 float64
    NatSettings map[string]string
    Subnet4 string
    Subnet6 string
    Tags []string
    Groups []string
    Name string
    Uid string
    broadcast String
    color String
    comments String
    id String
    maskLength4 Double
    maskLength6 Double
    natSettings Map<String,String>
    subnet4 String
    subnet6 String
    tags List<String>
    groups List<String>
    name String
    uid String
    broadcast string
    color string
    comments string
    id string
    maskLength4 number
    maskLength6 number
    natSettings {[key: string]: string}
    subnet4 string
    subnet6 string
    tags string[]
    groups string[]
    name string
    uid string
    broadcast str
    color str
    comments str
    id str
    mask_length4 float
    mask_length6 float
    nat_settings Mapping[str, str]
    subnet4 str
    subnet6 str
    tags Sequence[str]
    groups Sequence[str]
    name str
    uid str
    broadcast String
    color String
    comments String
    id String
    maskLength4 Number
    maskLength6 Number
    natSettings Map<String>
    subnet4 String
    subnet6 String
    tags List<String>
    groups List<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.9.0 published on Monday, Apr 14, 2025 by checkpointsw