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

iosxe.getLine

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 Line configuration.

    Example Usage

    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Iosxe = Pulumi.Iosxe;
    
    return await Deployment.RunAsync(() => 
    {
        var example = Iosxe.GetLine.Invoke();
    
    });
    
    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.LookupLine(ctx, nil, 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.GetLineArgs;
    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.getLine();
    
        }
    }
    
    import pulumi
    import pulumi_iosxe as iosxe
    
    example = iosxe.get_line()
    
    import * as pulumi from "@pulumi/pulumi";
    import * as iosxe from "@pulumi/iosxe";
    
    const example = iosxe.getLine({});
    
    variables:
      example:
        fn::invoke:
          Function: iosxe:getLine
          Arguments: {}
    

    Using getLine

    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 getLine(args: GetLineArgs, opts?: InvokeOptions): Promise<GetLineResult>
    function getLineOutput(args: GetLineOutputArgs, opts?: InvokeOptions): Output<GetLineResult>
    def get_line(device: Optional[str] = None,
                 opts: Optional[InvokeOptions] = None) -> GetLineResult
    def get_line_output(device: Optional[pulumi.Input[str]] = None,
                 opts: Optional[InvokeOptions] = None) -> Output[GetLineResult]
    func LookupLine(ctx *Context, args *LookupLineArgs, opts ...InvokeOption) (*LookupLineResult, error)
    func LookupLineOutput(ctx *Context, args *LookupLineOutputArgs, opts ...InvokeOption) LookupLineResultOutput

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

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

    The following arguments are supported:

    Device string
    A device name from the provider configuration.
    Device string
    A device name from the provider configuration.
    device String
    A device name from the provider configuration.
    device string
    A device name from the provider configuration.
    device str
    A device name from the provider configuration.
    device String
    A device name from the provider configuration.

    getLine Result

    The following output properties are available:

    Consoles List<Lbrlabs.PulumiPackage.Iosxe.Outputs.GetLineConsole>
    Primary terminal line
    Id string
    The path of the retrieved object.
    Vties List<Lbrlabs.PulumiPackage.Iosxe.Outputs.GetLineVty>
    Virtual terminal
    Device string
    A device name from the provider configuration.
    Consoles []GetLineConsole
    Primary terminal line
    Id string
    The path of the retrieved object.
    Vties []GetLineVty
    Virtual terminal
    Device string
    A device name from the provider configuration.
    consoles List<GetLineConsole>
    Primary terminal line
    id String
    The path of the retrieved object.
    vties List<GetLineVty>
    Virtual terminal
    device String
    A device name from the provider configuration.
    consoles GetLineConsole[]
    Primary terminal line
    id string
    The path of the retrieved object.
    vties GetLineVty[]
    Virtual terminal
    device string
    A device name from the provider configuration.
    consoles Sequence[GetLineConsole]
    Primary terminal line
    id str
    The path of the retrieved object.
    vties Sequence[GetLineVty]
    Virtual terminal
    device str
    A device name from the provider configuration.
    consoles List<Property Map>
    Primary terminal line
    id String
    The path of the retrieved object.
    vties List<Property Map>
    Virtual terminal
    device String
    A device name from the provider configuration.

    Supporting Types

    GetLineConsole

    ExecTimeoutMinutes int
    \n\n;;Timeout in minutes
    ExecTimeoutSeconds int
    \n\n;;Timeout in seconds
    First string
    LoginAuthentication string
    LoginLocal bool
    Password string
    PasswordLevel int
    Set exec level password
    PasswordType string
    PrivilegeLevel int
    Stopbits string
    Set async line stop bits
    ExecTimeoutMinutes int
    \n\n;;Timeout in minutes
    ExecTimeoutSeconds int
    \n\n;;Timeout in seconds
    First string
    LoginAuthentication string
    LoginLocal bool
    Password string
    PasswordLevel int
    Set exec level password
    PasswordType string
    PrivilegeLevel int
    Stopbits string
    Set async line stop bits
    execTimeoutMinutes Integer
    \n\n;;Timeout in minutes
    execTimeoutSeconds Integer
    \n\n;;Timeout in seconds
    first String
    loginAuthentication String
    loginLocal Boolean
    password String
    passwordLevel Integer
    Set exec level password
    passwordType String
    privilegeLevel Integer
    stopbits String
    Set async line stop bits
    execTimeoutMinutes number
    \n\n;;Timeout in minutes
    execTimeoutSeconds number
    \n\n;;Timeout in seconds
    first string
    loginAuthentication string
    loginLocal boolean
    password string
    passwordLevel number
    Set exec level password
    passwordType string
    privilegeLevel number
    stopbits string
    Set async line stop bits
    exec_timeout_minutes int
    \n\n;;Timeout in minutes
    exec_timeout_seconds int
    \n\n;;Timeout in seconds
    first str
    login_authentication str
    login_local bool
    password str
    password_level int
    Set exec level password
    password_type str
    privilege_level int
    stopbits str
    Set async line stop bits
    execTimeoutMinutes Number
    \n\n;;Timeout in minutes
    execTimeoutSeconds Number
    \n\n;;Timeout in seconds
    first String
    loginAuthentication String
    loginLocal Boolean
    password String
    passwordLevel Number
    Set exec level password
    passwordType String
    privilegeLevel Number
    stopbits String
    Set async line stop bits

    GetLineVty

    AccessClasses []GetLineVtyAccessClass
    EscapeCharacter string
    ExecTimeoutMinutes int
    \n\n;;Timeout in minutes
    ExecTimeoutSeconds int
    \n\n;;Timeout in seconds
    First int
    Last int
    LoginAuthentication string
    Password string
    PasswordLevel int
    Set exec level password
    PasswordType string
    TransportPreferredProtocol string
    accessClasses List<GetLineVtyAccessClass>
    escapeCharacter String
    execTimeoutMinutes Integer
    \n\n;;Timeout in minutes
    execTimeoutSeconds Integer
    \n\n;;Timeout in seconds
    first Integer
    last Integer
    loginAuthentication String
    password String
    passwordLevel Integer
    Set exec level password
    passwordType String
    transportPreferredProtocol String
    accessClasses GetLineVtyAccessClass[]
    escapeCharacter string
    execTimeoutMinutes number
    \n\n;;Timeout in minutes
    execTimeoutSeconds number
    \n\n;;Timeout in seconds
    first number
    last number
    loginAuthentication string
    password string
    passwordLevel number
    Set exec level password
    passwordType string
    transportPreferredProtocol string
    accessClasses List<Property Map>
    escapeCharacter String
    execTimeoutMinutes Number
    \n\n;;Timeout in minutes
    execTimeoutSeconds Number
    \n\n;;Timeout in seconds
    first Number
    last Number
    loginAuthentication String
    password String
    passwordLevel Number
    Set exec level password
    passwordType String
    transportPreferredProtocol String

    GetLineVtyAccessClass

    AccessList string
    Direction string
    VrfAlso bool
    AccessList string
    Direction string
    VrfAlso bool
    accessList String
    direction String
    vrfAlso Boolean
    accessList string
    direction string
    vrfAlso boolean
    accessList String
    direction String
    vrfAlso Boolean

    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