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

checkpoint.getManagementTacacsServer

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 Tacacs Server.

    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 tacacsServer = new checkpoint.ManagementTacacsServer("tacacsServer", {server: "1.2.3.4"});
    const dataTacacsServer = checkpoint.getManagementTacacsServerOutput({
        name: tacacsServer.name,
    });
    
    import pulumi
    import pulumi_checkpoint as checkpoint
    
    host = checkpoint.ManagementHost("host", ipv4_address="1.2.3.4")
    tacacs_server = checkpoint.ManagementTacacsServer("tacacsServer", server="1.2.3.4")
    data_tacacs_server = checkpoint.get_management_tacacs_server_output(name=tacacs_server.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 {
    		_, err := checkpoint.NewManagementHost(ctx, "host", &checkpoint.ManagementHostArgs{
    			Ipv4Address: pulumi.String("1.2.3.4"),
    		})
    		if err != nil {
    			return err
    		}
    		tacacsServer, err := checkpoint.NewManagementTacacsServer(ctx, "tacacsServer", &checkpoint.ManagementTacacsServerArgs{
    			Server: pulumi.String("1.2.3.4"),
    		})
    		if err != nil {
    			return err
    		}
    		_ = checkpoint.LookupManagementTacacsServerOutput(ctx, checkpoint.GetManagementTacacsServerOutputArgs{
    			Name: tacacsServer.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 tacacsServer = new Checkpoint.ManagementTacacsServer("tacacsServer", new()
        {
            Server = "1.2.3.4",
        });
    
        var dataTacacsServer = Checkpoint.GetManagementTacacsServer.Invoke(new()
        {
            Name = tacacsServer.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.ManagementTacacsServer;
    import com.pulumi.checkpoint.ManagementTacacsServerArgs;
    import com.pulumi.checkpoint.CheckpointFunctions;
    import com.pulumi.checkpoint.inputs.GetManagementTacacsServerArgs;
    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());
    
            var tacacsServer = new ManagementTacacsServer("tacacsServer", ManagementTacacsServerArgs.builder()
                .server("1.2.3.4")
                .build());
    
            final var dataTacacsServer = CheckpointFunctions.getManagementTacacsServer(GetManagementTacacsServerArgs.builder()
                .name(tacacsServer.name())
                .build());
    
        }
    }
    
    resources:
      host:
        type: checkpoint:ManagementHost
        properties:
          ipv4Address: 1.2.3.4
      tacacsServer:
        type: checkpoint:ManagementTacacsServer
        properties:
          server: 1.2.3.4
    variables:
      dataTacacsServer:
        fn::invoke:
          function: checkpoint:getManagementTacacsServer
          arguments:
            name: ${tacacsServer.name}
    

    Using getManagementTacacsServer

    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 getManagementTacacsServer(args: GetManagementTacacsServerArgs, opts?: InvokeOptions): Promise<GetManagementTacacsServerResult>
    function getManagementTacacsServerOutput(args: GetManagementTacacsServerOutputArgs, opts?: InvokeOptions): Output<GetManagementTacacsServerResult>
    def get_management_tacacs_server(id: Optional[str] = None,
                                     name: Optional[str] = None,
                                     uid: Optional[str] = None,
                                     opts: Optional[InvokeOptions] = None) -> GetManagementTacacsServerResult
    def get_management_tacacs_server_output(id: Optional[pulumi.Input[str]] = None,
                                     name: Optional[pulumi.Input[str]] = None,
                                     uid: Optional[pulumi.Input[str]] = None,
                                     opts: Optional[InvokeOptions] = None) -> Output[GetManagementTacacsServerResult]
    func LookupManagementTacacsServer(ctx *Context, args *LookupManagementTacacsServerArgs, opts ...InvokeOption) (*LookupManagementTacacsServerResult, error)
    func LookupManagementTacacsServerOutput(ctx *Context, args *LookupManagementTacacsServerOutputArgs, opts ...InvokeOption) LookupManagementTacacsServerResultOutput

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

    public static class GetManagementTacacsServer 
    {
        public static Task<GetManagementTacacsServerResult> InvokeAsync(GetManagementTacacsServerArgs args, InvokeOptions? opts = null)
        public static Output<GetManagementTacacsServerResult> Invoke(GetManagementTacacsServerInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetManagementTacacsServerResult> getManagementTacacsServer(GetManagementTacacsServerArgs args, InvokeOptions options)
    public static Output<GetManagementTacacsServerResult> getManagementTacacsServer(GetManagementTacacsServerArgs args, InvokeOptions options)
    
    fn::invoke:
      function: checkpoint:index/getManagementTacacsServer:getManagementTacacsServer
      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.

    getManagementTacacsServer Result

    The following output properties are available:

    Encryption bool
    Groups List<string>
    Id string
    Priority double
    Server Dictionary<string, string>
    ServerType string
    Service Dictionary<string, string>
    Name string
    Uid string
    Encryption bool
    Groups []string
    Id string
    Priority float64
    Server map[string]string
    ServerType string
    Service map[string]string
    Name string
    Uid string
    encryption Boolean
    groups List<String>
    id String
    priority Double
    server Map<String,String>
    serverType String
    service Map<String,String>
    name String
    uid String
    encryption boolean
    groups string[]
    id string
    priority number
    server {[key: string]: string}
    serverType string
    service {[key: string]: string}
    name string
    uid string
    encryption bool
    groups Sequence[str]
    id str
    priority float
    server Mapping[str, str]
    server_type str
    service Mapping[str, str]
    name str
    uid str
    encryption Boolean
    groups List<String>
    id String
    priority Number
    server Map<String>
    serverType String
    service Map<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