Cisco IOS XE v0.0.1 published on Friday, Sep 22, 2023 by lbrlabs
iosxe.getLine
Explore with Pulumi AI
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 dictionaryThe 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.
Pulumi Package. Iosxe. Outputs. Get Line Console>  - Primary terminal line
 - Id string
 - The path of the retrieved object.
 - Vties
List<Lbrlabs.
Pulumi Package. Iosxe. Outputs. Get Line Vty>  - Virtual terminal
 - Device string
 - A device name from the provider configuration.
 
- Consoles
[]Get
Line Console  - Primary terminal line
 - Id string
 - The path of the retrieved object.
 - Vties
[]Get
Line Vty  - Virtual terminal
 - Device string
 - A device name from the provider configuration.
 
- consoles
List<Get
Line Console>  - Primary terminal line
 - id String
 - The path of the retrieved object.
 - vties
List<Get
Line Vty>  - Virtual terminal
 - device String
 - A device name from the provider configuration.
 
- consoles
Get
Line Console[]  - Primary terminal line
 - id string
 - The path of the retrieved object.
 - vties
Get
Line Vty[]  - Virtual terminal
 - device string
 - A device name from the provider configuration.
 
- consoles
Sequence[Get
Line Console]  - Primary terminal line
 - id str
 - The path of the retrieved object.
 - vties
Sequence[Get
Line Vty]  - 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  
- Exec
Timeout intMinutes  - \n\n;;Timeout in minutes
 - Exec
Timeout intSeconds  - \n\n;;Timeout in seconds
 - First string
 - Login
Authentication string - Login
Local bool - Password string
 - Password
Level int - Set exec level password
 - Password
Type string - Privilege
Level int - Stopbits string
 - Set async line stop bits
 
- Exec
Timeout intMinutes  - \n\n;;Timeout in minutes
 - Exec
Timeout intSeconds  - \n\n;;Timeout in seconds
 - First string
 - Login
Authentication string - Login
Local bool - Password string
 - Password
Level int - Set exec level password
 - Password
Type string - Privilege
Level int - Stopbits string
 - Set async line stop bits
 
- exec
Timeout IntegerMinutes  - \n\n;;Timeout in minutes
 - exec
Timeout IntegerSeconds  - \n\n;;Timeout in seconds
 - first String
 - login
Authentication String - login
Local Boolean - password String
 - password
Level Integer - Set exec level password
 - password
Type String - privilege
Level Integer - stopbits String
 - Set async line stop bits
 
- exec
Timeout numberMinutes  - \n\n;;Timeout in minutes
 - exec
Timeout numberSeconds  - \n\n;;Timeout in seconds
 - first string
 - login
Authentication string - login
Local boolean - password string
 - password
Level number - Set exec level password
 - password
Type string - privilege
Level number - stopbits string
 - Set async line stop bits
 
- exec_
timeout_ intminutes  - \n\n;;Timeout in minutes
 - exec_
timeout_ intseconds  - \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
 
- exec
Timeout NumberMinutes  - \n\n;;Timeout in minutes
 - exec
Timeout NumberSeconds  - \n\n;;Timeout in seconds
 - first String
 - login
Authentication String - login
Local Boolean - password String
 - password
Level Number - Set exec level password
 - password
Type String - privilege
Level Number - stopbits String
 - Set async line stop bits
 
GetLineVty  
- Access
Classes List<Lbrlabs.Pulumi Package. Iosxe. Inputs. Get Line Vty Access Class>  - Escape
Character string - Exec
Timeout intMinutes  - \n\n;;Timeout in minutes
 - Exec
Timeout intSeconds  - \n\n;;Timeout in seconds
 - First int
 - Last int
 - Login
Authentication string - Password string
 - Password
Level int - Set exec level password
 - Password
Type string - Transport
Preferred stringProtocol  
- Access
Classes []GetLine Vty Access Class  - Escape
Character string - Exec
Timeout intMinutes  - \n\n;;Timeout in minutes
 - Exec
Timeout intSeconds  - \n\n;;Timeout in seconds
 - First int
 - Last int
 - Login
Authentication string - Password string
 - Password
Level int - Set exec level password
 - Password
Type string - Transport
Preferred stringProtocol  
- access
Classes List<GetLine Vty Access Class>  - escape
Character String - exec
Timeout IntegerMinutes  - \n\n;;Timeout in minutes
 - exec
Timeout IntegerSeconds  - \n\n;;Timeout in seconds
 - first Integer
 - last Integer
 - login
Authentication String - password String
 - password
Level Integer - Set exec level password
 - password
Type String - transport
Preferred StringProtocol  
- access
Classes GetLine Vty Access Class[]  - escape
Character string - exec
Timeout numberMinutes  - \n\n;;Timeout in minutes
 - exec
Timeout numberSeconds  - \n\n;;Timeout in seconds
 - first number
 - last number
 - login
Authentication string - password string
 - password
Level number - Set exec level password
 - password
Type string - transport
Preferred stringProtocol  
- access_
classes Sequence[GetLine Vty Access Class]  - escape_
character str - exec_
timeout_ intminutes  - \n\n;;Timeout in minutes
 - exec_
timeout_ intseconds  - \n\n;;Timeout in seconds
 - first int
 - last int
 - login_
authentication str - password str
 - password_
level int - Set exec level password
 - password_
type str - transport_
preferred_ strprotocol  
- access
Classes List<Property Map> - escape
Character String - exec
Timeout NumberMinutes  - \n\n;;Timeout in minutes
 - exec
Timeout NumberSeconds  - \n\n;;Timeout in seconds
 - first Number
 - last Number
 - login
Authentication String - password String
 - password
Level Number - Set exec level password
 - password
Type String - transport
Preferred StringProtocol  
GetLineVtyAccessClass    
- Access
List string - Direction string
 - Vrf
Also bool 
- Access
List string - Direction string
 - Vrf
Also bool 
- access
List String - direction String
 - vrf
Also Boolean 
- access
List string - direction string
 - vrf
Also boolean 
- access_
list str - direction str
 - vrf_
also bool 
- access
List String - direction String
 - vrf
Also Boolean 
Package Details
- Repository
 - iosxe lbrlabs/pulumi-iosxe
 - License
 - Apache-2.0
 - Notes
 - This Pulumi package is based on the 
iosxeTerraform Provider.