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

checkpoint.getManagementDataHost

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 Host.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as checkpoint from "@pulumi/checkpoint";
    
    const host = new checkpoint.ManagementHost("host", {ipv4Address: "1.2.3.4"});
    const dataHost = checkpoint.getManagementDataHostOutput({
        name: host.name,
    });
    
    import pulumi
    import pulumi_checkpoint as checkpoint
    
    host = checkpoint.ManagementHost("host", ipv4_address="1.2.3.4")
    data_host = checkpoint.get_management_data_host_output(name=host.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 {
    		host, err := checkpoint.NewManagementHost(ctx, "host", &checkpoint.ManagementHostArgs{
    			Ipv4Address: pulumi.String("1.2.3.4"),
    		})
    		if err != nil {
    			return err
    		}
    		_ = checkpoint.GetManagementDataHostOutput(ctx, checkpoint.GetManagementDataHostOutputArgs{
    			Name: host.Name,
    		}, nil)
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Checkpoint = Pulumi.Checkpoint;
    
    return await Deployment.RunAsync(() => 
    {
        var host = new Checkpoint.ManagementHost("host", new()
        {
            Ipv4Address = "1.2.3.4",
        });
    
        var dataHost = Checkpoint.GetManagementDataHost.Invoke(new()
        {
            Name = host.Name,
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.checkpoint.ManagementHost;
    import com.pulumi.checkpoint.ManagementHostArgs;
    import com.pulumi.checkpoint.CheckpointFunctions;
    import com.pulumi.checkpoint.inputs.GetManagementDataHostArgs;
    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 host = new ManagementHost("host", ManagementHostArgs.builder()
                .ipv4Address("1.2.3.4")
                .build());
    
            final var dataHost = CheckpointFunctions.getManagementDataHost(GetManagementDataHostArgs.builder()
                .name(host.name())
                .build());
    
        }
    }
    
    resources:
      host:
        type: checkpoint:ManagementHost
        properties:
          ipv4Address: 1.2.3.4
    variables:
      dataHost:
        fn::invoke:
          function: checkpoint:getManagementDataHost
          arguments:
            name: ${host.name}
    

    Using getManagementDataHost

    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 getManagementDataHost(args: GetManagementDataHostArgs, opts?: InvokeOptions): Promise<GetManagementDataHostResult>
    function getManagementDataHostOutput(args: GetManagementDataHostOutputArgs, opts?: InvokeOptions): Output<GetManagementDataHostResult>
    def get_management_data_host(id: Optional[str] = None,
                                 name: Optional[str] = None,
                                 uid: Optional[str] = None,
                                 opts: Optional[InvokeOptions] = None) -> GetManagementDataHostResult
    def get_management_data_host_output(id: Optional[pulumi.Input[str]] = None,
                                 name: Optional[pulumi.Input[str]] = None,
                                 uid: Optional[pulumi.Input[str]] = None,
                                 opts: Optional[InvokeOptions] = None) -> Output[GetManagementDataHostResult]
    func GetManagementDataHost(ctx *Context, args *GetManagementDataHostArgs, opts ...InvokeOption) (*GetManagementDataHostResult, error)
    func GetManagementDataHostOutput(ctx *Context, args *GetManagementDataHostOutputArgs, opts ...InvokeOption) GetManagementDataHostResultOutput

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

    public static class GetManagementDataHost 
    {
        public static Task<GetManagementDataHostResult> InvokeAsync(GetManagementDataHostArgs args, InvokeOptions? opts = null)
        public static Output<GetManagementDataHostResult> Invoke(GetManagementDataHostInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetManagementDataHostResult> getManagementDataHost(GetManagementDataHostArgs args, InvokeOptions options)
    public static Output<GetManagementDataHostResult> getManagementDataHost(GetManagementDataHostArgs args, InvokeOptions options)
    
    fn::invoke:
      function: checkpoint:index/getManagementDataHost:getManagementDataHost
      arguments:
        # arguments dictionary

    The following arguments are supported:

    Id string
    Name string
    Object name. Should be unique in the domain.
    Uid string
    Object unique identifier.
    Id string
    Name string
    Object name. Should be unique in the domain.
    Uid string
    Object unique identifier.
    id String
    name String
    Object name. Should be unique in the domain.
    uid String
    Object unique identifier.
    id string
    name string
    Object name. Should be unique in the domain.
    uid string
    Object unique identifier.
    id str
    name str
    Object name. Should be unique in the domain.
    uid str
    Object unique identifier.
    id String
    name String
    Object name. Should be unique in the domain.
    uid String
    Object unique identifier.

    getManagementDataHost Result

    The following output properties are available:

    color String
    comments String
    groups List<String>
    hostServers List<Property Map>
    id String
    interfaces List<Property Map>
    ipv4Address String
    ipv6Address String
    natSettings Map<String>
    tags List<String>
    name String
    uid String

    Supporting Types

    GetManagementDataHostHostServer

    DnsServer bool
    Gets True if this server is a DNS Server.
    MailServer bool
    Gets True if this server is a Mail Server.
    WebServer bool
    Gets True if this server is a Web Server.
    WebServerConfigs List<GetManagementDataHostHostServerWebServerConfig>
    Web Server configuration. Web Server configuration blocks are documented below.
    DnsServer bool
    Gets True if this server is a DNS Server.
    MailServer bool
    Gets True if this server is a Mail Server.
    WebServer bool
    Gets True if this server is a Web Server.
    WebServerConfigs []GetManagementDataHostHostServerWebServerConfig
    Web Server configuration. Web Server configuration blocks are documented below.
    dnsServer Boolean
    Gets True if this server is a DNS Server.
    mailServer Boolean
    Gets True if this server is a Mail Server.
    webServer Boolean
    Gets True if this server is a Web Server.
    webServerConfigs List<GetManagementDataHostHostServerWebServerConfig>
    Web Server configuration. Web Server configuration blocks are documented below.
    dnsServer boolean
    Gets True if this server is a DNS Server.
    mailServer boolean
    Gets True if this server is a Mail Server.
    webServer boolean
    Gets True if this server is a Web Server.
    webServerConfigs GetManagementDataHostHostServerWebServerConfig[]
    Web Server configuration. Web Server configuration blocks are documented below.
    dns_server bool
    Gets True if this server is a DNS Server.
    mail_server bool
    Gets True if this server is a Mail Server.
    web_server bool
    Gets True if this server is a Web Server.
    web_server_configs Sequence[GetManagementDataHostHostServerWebServerConfig]
    Web Server configuration. Web Server configuration blocks are documented below.
    dnsServer Boolean
    Gets True if this server is a DNS Server.
    mailServer Boolean
    Gets True if this server is a Mail Server.
    webServer Boolean
    Gets True if this server is a Web Server.
    webServerConfigs List<Property Map>
    Web Server configuration. Web Server configuration blocks are documented below.

    GetManagementDataHostHostServerWebServerConfig

    AdditionalPorts List<string>
    Server additional ports.
    ApplicationEngines List<string>
    Application engines of this web server.
    ListenStandardPort bool
    "Whether server listens to standard port.
    OperatingSystem string
    Operating System.
    ProtectedBy string
    Network object which protects this server identified by the name or UID.
    AdditionalPorts []string
    Server additional ports.
    ApplicationEngines []string
    Application engines of this web server.
    ListenStandardPort bool
    "Whether server listens to standard port.
    OperatingSystem string
    Operating System.
    ProtectedBy string
    Network object which protects this server identified by the name or UID.
    additionalPorts List<String>
    Server additional ports.
    applicationEngines List<String>
    Application engines of this web server.
    listenStandardPort Boolean
    "Whether server listens to standard port.
    operatingSystem String
    Operating System.
    protectedBy String
    Network object which protects this server identified by the name or UID.
    additionalPorts string[]
    Server additional ports.
    applicationEngines string[]
    Application engines of this web server.
    listenStandardPort boolean
    "Whether server listens to standard port.
    operatingSystem string
    Operating System.
    protectedBy string
    Network object which protects this server identified by the name or UID.
    additional_ports Sequence[str]
    Server additional ports.
    application_engines Sequence[str]
    Application engines of this web server.
    listen_standard_port bool
    "Whether server listens to standard port.
    operating_system str
    Operating System.
    protected_by str
    Network object which protects this server identified by the name or UID.
    additionalPorts List<String>
    Server additional ports.
    applicationEngines List<String>
    Application engines of this web server.
    listenStandardPort Boolean
    "Whether server listens to standard port.
    operatingSystem String
    Operating System.
    protectedBy String
    Network object which protects this server identified by the name or UID.

    GetManagementDataHostInterface

    Color string
    Color of the object. Should be one of existing colors.
    Comments string
    Comments string.
    MaskLength4 double
    IPv4 network mask length.
    MaskLength6 double
    IPv6 network mask length.
    Name string
    Object name. Should be unique in the domain.
    Subnet4 string
    IPv4 network address.
    Subnet6 string
    IPv6 network address.
    Color string
    Color of the object. Should be one of existing colors.
    Comments string
    Comments string.
    MaskLength4 float64
    IPv4 network mask length.
    MaskLength6 float64
    IPv6 network mask length.
    Name string
    Object name. Should be unique in the domain.
    Subnet4 string
    IPv4 network address.
    Subnet6 string
    IPv6 network address.
    color String
    Color of the object. Should be one of existing colors.
    comments String
    Comments string.
    maskLength4 Double
    IPv4 network mask length.
    maskLength6 Double
    IPv6 network mask length.
    name String
    Object name. Should be unique in the domain.
    subnet4 String
    IPv4 network address.
    subnet6 String
    IPv6 network address.
    color string
    Color of the object. Should be one of existing colors.
    comments string
    Comments string.
    maskLength4 number
    IPv4 network mask length.
    maskLength6 number
    IPv6 network mask length.
    name string
    Object name. Should be unique in the domain.
    subnet4 string
    IPv4 network address.
    subnet6 string
    IPv6 network address.
    color str
    Color of the object. Should be one of existing colors.
    comments str
    Comments string.
    mask_length4 float
    IPv4 network mask length.
    mask_length6 float
    IPv6 network mask length.
    name str
    Object name. Should be unique in the domain.
    subnet4 str
    IPv4 network address.
    subnet6 str
    IPv6 network address.
    color String
    Color of the object. Should be one of existing colors.
    comments String
    Comments string.
    maskLength4 Number
    IPv4 network mask length.
    maskLength6 Number
    IPv6 network mask length.
    name String
    Object name. Should be unique in the domain.
    subnet4 String
    IPv4 network address.
    subnet6 String
    IPv6 network address.

    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