1. Packages
  2. Cisco IOS XE Resource Provider
  3. API Docs
  4. getTacacsServer
Cisco IOS XE v0.0.1 published on Friday, Sep 22, 2023 by lbrlabs

iosxe.getTacacsServer

Explore with Pulumi AI

iosxe logo
Cisco IOS XE v0.0.1 published on Friday, Sep 22, 2023 by lbrlabs

    This data source can read the TACACS Server configuration.

    Example Usage

    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Iosxe = Pulumi.Iosxe;
    
    return await Deployment.RunAsync(() => 
    {
        var example = Iosxe.GetTacacsServer.Invoke(new()
        {
            Name = "tacacs_10.10.15.13",
        });
    
    });
    
    package main
    
    import (
    	"github.com/lbrlabs/pulumi-iosxe/sdk/go/iosxe"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := iosxe.LookupTacacsServer(ctx, &iosxe.LookupTacacsServerArgs{
    			Name: "tacacs_10.10.15.13",
    		}, nil)
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.iosxe.IosxeFunctions;
    import com.pulumi.iosxe.inputs.GetTacacsServerArgs;
    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) {
            final var example = IosxeFunctions.getTacacsServer(GetTacacsServerArgs.builder()
                .name("tacacs_10.10.15.13")
                .build());
    
        }
    }
    
    import pulumi
    import pulumi_iosxe as iosxe
    
    example = iosxe.get_tacacs_server(name="tacacs_10.10.15.13")
    
    import * as pulumi from "@pulumi/pulumi";
    import * as iosxe from "@pulumi/iosxe";
    
    const example = iosxe.getTacacsServer({
        name: "tacacs_10.10.15.13",
    });
    
    variables:
      example:
        fn::invoke:
          Function: iosxe:getTacacsServer
          Arguments:
            name: tacacs_10.10.15.13
    

    Using getTacacsServer

    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 getTacacsServer(args: GetTacacsServerArgs, opts?: InvokeOptions): Promise<GetTacacsServerResult>
    function getTacacsServerOutput(args: GetTacacsServerOutputArgs, opts?: InvokeOptions): Output<GetTacacsServerResult>
    def get_tacacs_server(device: Optional[str] = None,
                          name: Optional[str] = None,
                          opts: Optional[InvokeOptions] = None) -> GetTacacsServerResult
    def get_tacacs_server_output(device: Optional[pulumi.Input[str]] = None,
                          name: Optional[pulumi.Input[str]] = None,
                          opts: Optional[InvokeOptions] = None) -> Output[GetTacacsServerResult]
    func LookupTacacsServer(ctx *Context, args *LookupTacacsServerArgs, opts ...InvokeOption) (*LookupTacacsServerResult, error)
    func LookupTacacsServerOutput(ctx *Context, args *LookupTacacsServerOutputArgs, opts ...InvokeOption) LookupTacacsServerResultOutput

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

    public static class GetTacacsServer 
    {
        public static Task<GetTacacsServerResult> InvokeAsync(GetTacacsServerArgs args, InvokeOptions? opts = null)
        public static Output<GetTacacsServerResult> Invoke(GetTacacsServerInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetTacacsServerResult> getTacacsServer(GetTacacsServerArgs args, InvokeOptions options)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: iosxe:index/getTacacsServer:getTacacsServer
      arguments:
        # arguments dictionary

    The following arguments are supported:

    Name string
    Name for the tacacs server configuration
    Device string
    A device name from the provider configuration.
    Name string
    Name for the tacacs server configuration
    Device string
    A device name from the provider configuration.
    name String
    Name for the tacacs server configuration
    device String
    A device name from the provider configuration.
    name string
    Name for the tacacs server configuration
    device string
    A device name from the provider configuration.
    name str
    Name for the tacacs server configuration
    device str
    A device name from the provider configuration.
    name String
    Name for the tacacs server configuration
    device String
    A device name from the provider configuration.

    getTacacsServer Result

    The following output properties are available:

    AddressIpv4 string
    IPv4 address or Hostname for tacacs server
    Id string
    The path of the retrieved object.
    Key string
    The UNENCRYPTED (cleartext) server key
    Name string
    Name for the tacacs server configuration
    Timeout int
    Time to wait for this TACACS server to reply (overrides default)
    Device string
    A device name from the provider configuration.
    AddressIpv4 string
    IPv4 address or Hostname for tacacs server
    Id string
    The path of the retrieved object.
    Key string
    The UNENCRYPTED (cleartext) server key
    Name string
    Name for the tacacs server configuration
    Timeout int
    Time to wait for this TACACS server to reply (overrides default)
    Device string
    A device name from the provider configuration.
    addressIpv4 String
    IPv4 address or Hostname for tacacs server
    id String
    The path of the retrieved object.
    key String
    The UNENCRYPTED (cleartext) server key
    name String
    Name for the tacacs server configuration
    timeout Integer
    Time to wait for this TACACS server to reply (overrides default)
    device String
    A device name from the provider configuration.
    addressIpv4 string
    IPv4 address or Hostname for tacacs server
    id string
    The path of the retrieved object.
    key string
    The UNENCRYPTED (cleartext) server key
    name string
    Name for the tacacs server configuration
    timeout number
    Time to wait for this TACACS server to reply (overrides default)
    device string
    A device name from the provider configuration.
    address_ipv4 str
    IPv4 address or Hostname for tacacs server
    id str
    The path of the retrieved object.
    key str
    The UNENCRYPTED (cleartext) server key
    name str
    Name for the tacacs server configuration
    timeout int
    Time to wait for this TACACS server to reply (overrides default)
    device str
    A device name from the provider configuration.
    addressIpv4 String
    IPv4 address or Hostname for tacacs server
    id String
    The path of the retrieved object.
    key String
    The UNENCRYPTED (cleartext) server key
    name String
    Name for the tacacs server configuration
    timeout Number
    Time to wait for this TACACS server to reply (overrides default)
    device String
    A device name from the provider configuration.

    Package Details

    Repository
    iosxe lbrlabs/pulumi-iosxe
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the iosxe Terraform Provider.
    iosxe logo
    Cisco IOS XE v0.0.1 published on Friday, Sep 22, 2023 by lbrlabs