Cisco IOS XE v0.0.1 published on Friday, Sep 22, 2023 by lbrlabs
iosxe.getLine
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 * as pulumi from "@pulumi/pulumi";
import * as iosxe from "@pulumi/iosxe";
const example = iosxe.getLine({});
import pulumi
import pulumi_iosxe as iosxe
example = iosxe.get_line()
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)
public static Output<GetLineResult> getLine(GetLineArgs args, InvokeOptions options)
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
[]GetLine Console 
- Primary terminal line
- Id string
- The path of the retrieved object.
- Vties
[]GetLine Vty 
- Virtual terminal
- Device string
- A device name from the provider configuration.
- consoles
List<GetLine Console> 
- Primary terminal line
- id String
- The path of the retrieved object.
- vties
List<GetLine Vty> 
- Virtual terminal
- device String
- A device name from the provider configuration.
- consoles
GetLine Console[] 
- Primary terminal line
- id string
- The path of the retrieved object.
- vties
GetLine Vty[] 
- Virtual terminal
- device string
- A device name from the provider configuration.
- consoles
Sequence[GetLine Console] 
- Primary terminal line
- id str
- The path of the retrieved object.
- vties
Sequence[GetLine 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  
- ExecTimeout intMinutes 
- \n\n;;Timeout in minutes
- ExecTimeout intSeconds 
- \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
- ExecTimeout intMinutes 
- \n\n;;Timeout in minutes
- ExecTimeout intSeconds 
- \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
- execTimeout IntegerMinutes 
- \n\n;;Timeout in minutes
- execTimeout IntegerSeconds 
- \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
- execTimeout numberMinutes 
- \n\n;;Timeout in minutes
- execTimeout numberSeconds 
- \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_ 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
- execTimeout NumberMinutes 
- \n\n;;Timeout in minutes
- execTimeout NumberSeconds 
- \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 List<Lbrlabs.Pulumi Package. Iosxe. Inputs. Get Line Vty Access Class> 
- EscapeCharacter string
- ExecTimeout intMinutes 
- \n\n;;Timeout in minutes
- ExecTimeout intSeconds 
- \n\n;;Timeout in seconds
- First int
- Last int
- LoginAuthentication string
- Password string
- PasswordLevel int
- Set exec level password
- PasswordType string
- TransportPreferred stringProtocol 
- AccessClasses []GetLine Vty Access Class 
- EscapeCharacter string
- ExecTimeout intMinutes 
- \n\n;;Timeout in minutes
- ExecTimeout intSeconds 
- \n\n;;Timeout in seconds
- First int
- Last int
- LoginAuthentication string
- Password string
- PasswordLevel int
- Set exec level password
- PasswordType string
- TransportPreferred stringProtocol 
- accessClasses List<GetLine Vty Access Class> 
- escapeCharacter String
- execTimeout IntegerMinutes 
- \n\n;;Timeout in minutes
- execTimeout IntegerSeconds 
- \n\n;;Timeout in seconds
- first Integer
- last Integer
- loginAuthentication String
- password String
- passwordLevel Integer
- Set exec level password
- passwordType String
- transportPreferred StringProtocol 
- accessClasses GetLine Vty Access Class[] 
- escapeCharacter string
- execTimeout numberMinutes 
- \n\n;;Timeout in minutes
- execTimeout numberSeconds 
- \n\n;;Timeout in seconds
- first number
- last number
- loginAuthentication string
- password string
- passwordLevel number
- Set exec level password
- passwordType string
- transportPreferred 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 
- accessClasses List<Property Map>
- escapeCharacter String
- execTimeout NumberMinutes 
- \n\n;;Timeout in minutes
- execTimeout NumberSeconds 
- \n\n;;Timeout in seconds
- first Number
- last Number
- loginAuthentication String
- password String
- passwordLevel Number
- Set exec level password
- passwordType String
- transportPreferred StringProtocol 
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
- access_list str
- direction str
- vrf_also bool
- 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 iosxeTerraform Provider.
