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

checkpoint.getManagementNetworkProbe

Explore with Pulumi AI

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

Example Usage

import * as pulumi from "@pulumi/pulumi";
import * as checkpoint from "@pulumi/checkpoint";

const example = new checkpoint.ManagementNetworkProbe("example", {
    icmpOptions: {
        destination: "host2",
        source: "host1",
    },
    installOns: [
        "gw1",
        "gw2",
    ],
    interval: 20,
    protocol: "icmp",
});
const data = checkpoint.getManagementNetworkProbeOutput({
    uid: example.managementNetworkProbeId,
});
Copy
import pulumi
import pulumi_checkpoint as checkpoint

example = checkpoint.ManagementNetworkProbe("example",
    icmp_options={
        "destination": "host2",
        "source": "host1",
    },
    install_ons=[
        "gw1",
        "gw2",
    ],
    interval=20,
    protocol="icmp")
data = checkpoint.get_management_network_probe_output(uid=example.management_network_probe_id)
Copy
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 {
		example, err := checkpoint.NewManagementNetworkProbe(ctx, "example", &checkpoint.ManagementNetworkProbeArgs{
			IcmpOptions: pulumi.StringMap{
				"destination": pulumi.String("host2"),
				"source":      pulumi.String("host1"),
			},
			InstallOns: pulumi.StringArray{
				pulumi.String("gw1"),
				pulumi.String("gw2"),
			},
			Interval: pulumi.Float64(20),
			Protocol: pulumi.String("icmp"),
		})
		if err != nil {
			return err
		}
		_ = checkpoint.LookupManagementNetworkProbeOutput(ctx, checkpoint.GetManagementNetworkProbeOutputArgs{
			Uid: example.ManagementNetworkProbeId,
		}, nil)
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Checkpoint = Pulumi.Checkpoint;

return await Deployment.RunAsync(() => 
{
    var example = new Checkpoint.ManagementNetworkProbe("example", new()
    {
        IcmpOptions = 
        {
            { "destination", "host2" },
            { "source", "host1" },
        },
        InstallOns = new[]
        {
            "gw1",
            "gw2",
        },
        Interval = 20,
        Protocol = "icmp",
    });

    var data = Checkpoint.GetManagementNetworkProbe.Invoke(new()
    {
        Uid = example.ManagementNetworkProbeId,
    });

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.checkpoint.ManagementNetworkProbe;
import com.pulumi.checkpoint.ManagementNetworkProbeArgs;
import com.pulumi.checkpoint.CheckpointFunctions;
import com.pulumi.checkpoint.inputs.GetManagementNetworkProbeArgs;
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 example = new ManagementNetworkProbe("example", ManagementNetworkProbeArgs.builder()
            .icmpOptions(Map.ofEntries(
                Map.entry("destination", "host2"),
                Map.entry("source", "host1")
            ))
            .installOns(            
                "gw1",
                "gw2")
            .interval("20")
            .protocol("icmp")
            .build());

        final var data = CheckpointFunctions.getManagementNetworkProbe(GetManagementNetworkProbeArgs.builder()
            .uid(example.managementNetworkProbeId())
            .build());

    }
}
Copy
resources:
  example:
    type: checkpoint:ManagementNetworkProbe
    properties:
      icmpOptions:
        destination: host2
        source: host1
      installOns:
        - gw1
        - gw2
      interval: '20'
      protocol: icmp
variables:
  data:
    fn::invoke:
      function: checkpoint:getManagementNetworkProbe
      arguments:
        uid: ${example.managementNetworkProbeId}
Copy

Using getManagementNetworkProbe

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 getManagementNetworkProbe(args: GetManagementNetworkProbeArgs, opts?: InvokeOptions): Promise<GetManagementNetworkProbeResult>
function getManagementNetworkProbeOutput(args: GetManagementNetworkProbeOutputArgs, opts?: InvokeOptions): Output<GetManagementNetworkProbeResult>
Copy
def get_management_network_probe(id: Optional[str] = None,
                                 name: Optional[str] = None,
                                 uid: Optional[str] = None,
                                 opts: Optional[InvokeOptions] = None) -> GetManagementNetworkProbeResult
def get_management_network_probe_output(id: Optional[pulumi.Input[str]] = None,
                                 name: Optional[pulumi.Input[str]] = None,
                                 uid: Optional[pulumi.Input[str]] = None,
                                 opts: Optional[InvokeOptions] = None) -> Output[GetManagementNetworkProbeResult]
Copy
func LookupManagementNetworkProbe(ctx *Context, args *LookupManagementNetworkProbeArgs, opts ...InvokeOption) (*LookupManagementNetworkProbeResult, error)
func LookupManagementNetworkProbeOutput(ctx *Context, args *LookupManagementNetworkProbeOutputArgs, opts ...InvokeOption) LookupManagementNetworkProbeResultOutput
Copy

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

public static class GetManagementNetworkProbe 
{
    public static Task<GetManagementNetworkProbeResult> InvokeAsync(GetManagementNetworkProbeArgs args, InvokeOptions? opts = null)
    public static Output<GetManagementNetworkProbeResult> Invoke(GetManagementNetworkProbeInvokeArgs args, InvokeOptions? opts = null)
}
Copy
public static CompletableFuture<GetManagementNetworkProbeResult> getManagementNetworkProbe(GetManagementNetworkProbeArgs args, InvokeOptions options)
public static Output<GetManagementNetworkProbeResult> getManagementNetworkProbe(GetManagementNetworkProbeArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: checkpoint:index/getManagementNetworkProbe:getManagementNetworkProbe
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

Id string
Name string
Object name.
Uid string
Object unique identifier.
Id string
Name string
Object name.
Uid string
Object unique identifier.
id String
name String
Object name.
uid String
Object unique identifier.
id string
name string
Object name.
uid string
Object unique identifier.
id str
name str
Object name.
uid str
Object unique identifier.
id String
name String
Object name.
uid String
Object unique identifier.

getManagementNetworkProbe Result

The following output properties are available:

Color string
Comments string
HttpOptions Dictionary<string, string>
IcmpOptions Dictionary<string, string>
Id string
InstallOns List<string>
Interval double
Protocol string
Tags List<string>
Timeout double
Name string
Uid string
Color string
Comments string
HttpOptions map[string]string
IcmpOptions map[string]string
Id string
InstallOns []string
Interval float64
Protocol string
Tags []string
Timeout float64
Name string
Uid string
color String
comments String
httpOptions Map<String,String>
icmpOptions Map<String,String>
id String
installOns List<String>
interval Double
protocol String
tags List<String>
timeout Double
name String
uid String
color string
comments string
httpOptions {[key: string]: string}
icmpOptions {[key: string]: string}
id string
installOns string[]
interval number
protocol string
tags string[]
timeout number
name string
uid string
color str
comments str
http_options Mapping[str, str]
icmp_options Mapping[str, str]
id str
install_ons Sequence[str]
interval float
protocol str
tags Sequence[str]
timeout float
name str
uid str
color String
comments String
httpOptions Map<String>
icmpOptions Map<String>
id String
installOns List<String>
interval Number
protocol String
tags List<String>
timeout Number
name String
uid String

Package Details

Repository
checkpoint checkpointsw/terraform-provider-checkpoint
License
Notes
This Pulumi package is based on the checkpoint Terraform Provider.