Viewing docs for Cisco IOS XE v0.0.1
published on Friday, Sep 22, 2023 by lbrlabs
published on Friday, Sep 22, 2023 by lbrlabs
Viewing docs for Cisco IOS XE v0.0.1
published on Friday, Sep 22, 2023 by lbrlabs
published on Friday, Sep 22, 2023 by lbrlabs
This data source can read the Interface Switchport configuration.
Example Usage
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Iosxe = Pulumi.Iosxe;
return await Deployment.RunAsync(() =>
{
var example = Iosxe.GetInterfaceSwitchport.Invoke(new()
{
Name = "1/0/3",
Type = "GigabitEthernet",
});
});
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.LookupInterfaceSwitchport(ctx, &iosxe.LookupInterfaceSwitchportArgs{
Name: "1/0/3",
Type: "GigabitEthernet",
}, 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.GetInterfaceSwitchportArgs;
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.getInterfaceSwitchport(GetInterfaceSwitchportArgs.builder()
.name("1/0/3")
.type("GigabitEthernet")
.build());
}
}
import * as pulumi from "@pulumi/pulumi";
import * as iosxe from "@pulumi/iosxe";
const example = iosxe.getInterfaceSwitchport({
name: "1/0/3",
type: "GigabitEthernet",
});
import pulumi
import pulumi_iosxe as iosxe
example = iosxe.get_interface_switchport(name="1/0/3",
type="GigabitEthernet")
variables:
example:
fn::invoke:
Function: iosxe:getInterfaceSwitchport
Arguments:
name: 1/0/3
type: GigabitEthernet
Using getInterfaceSwitchport
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 getInterfaceSwitchport(args: GetInterfaceSwitchportArgs, opts?: InvokeOptions): Promise<GetInterfaceSwitchportResult>
function getInterfaceSwitchportOutput(args: GetInterfaceSwitchportOutputArgs, opts?: InvokeOptions): Output<GetInterfaceSwitchportResult>def get_interface_switchport(device: Optional[str] = None,
name: Optional[str] = None,
type: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetInterfaceSwitchportResult
def get_interface_switchport_output(device: Optional[pulumi.Input[str]] = None,
name: Optional[pulumi.Input[str]] = None,
type: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetInterfaceSwitchportResult]func LookupInterfaceSwitchport(ctx *Context, args *LookupInterfaceSwitchportArgs, opts ...InvokeOption) (*LookupInterfaceSwitchportResult, error)
func LookupInterfaceSwitchportOutput(ctx *Context, args *LookupInterfaceSwitchportOutputArgs, opts ...InvokeOption) LookupInterfaceSwitchportResultOutput> Note: This function is named LookupInterfaceSwitchport in the Go SDK.
public static class GetInterfaceSwitchport
{
public static Task<GetInterfaceSwitchportResult> InvokeAsync(GetInterfaceSwitchportArgs args, InvokeOptions? opts = null)
public static Output<GetInterfaceSwitchportResult> Invoke(GetInterfaceSwitchportInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetInterfaceSwitchportResult> getInterfaceSwitchport(GetInterfaceSwitchportArgs args, InvokeOptions options)
public static Output<GetInterfaceSwitchportResult> getInterfaceSwitchport(GetInterfaceSwitchportArgs args, InvokeOptions options)
fn::invoke:
function: iosxe:index/getInterfaceSwitchport:getInterfaceSwitchport
arguments:
# arguments dictionaryThe following arguments are supported:
getInterfaceSwitchport Result
The following output properties are available:
- Access
Vlan string - Host bool
- Set port host
- Id string
- The path of the retrieved object.
- Mode
Access bool - Set trunking mode to ACCESS unconditionally
- Mode
Dot1q boolTunnel - set trunking mode to TUNNEL unconditionally
- Mode
Private boolVlan Host - Set the mode to private-vlan host
- Mode
Private boolVlan Promiscuous - Set the mode to private-vlan promiscuous
- Mode
Private boolVlan Trunk - Set the mode to private-vlan trunk
- Mode
Trunk bool - Set trunking mode to TRUNK unconditionally
- Name string
- Nonegotiate bool
- Device will not engage in negotiation protocol on this interface
- Trunk
Allowed stringVlans - Trunk
Allowed boolVlans None - no VLANs
- Trunk
Native intVlan - Trunk
Native boolVlan Tag - Type string
- Interface type
- Device string
- A device name from the provider configuration.
- Access
Vlan string - Host bool
- Set port host
- Id string
- The path of the retrieved object.
- Mode
Access bool - Set trunking mode to ACCESS unconditionally
- Mode
Dot1q boolTunnel - set trunking mode to TUNNEL unconditionally
- Mode
Private boolVlan Host - Set the mode to private-vlan host
- Mode
Private boolVlan Promiscuous - Set the mode to private-vlan promiscuous
- Mode
Private boolVlan Trunk - Set the mode to private-vlan trunk
- Mode
Trunk bool - Set trunking mode to TRUNK unconditionally
- Name string
- Nonegotiate bool
- Device will not engage in negotiation protocol on this interface
- Trunk
Allowed stringVlans - Trunk
Allowed boolVlans None - no VLANs
- Trunk
Native intVlan - Trunk
Native boolVlan Tag - Type string
- Interface type
- Device string
- A device name from the provider configuration.
- access
Vlan String - host Boolean
- Set port host
- id String
- The path of the retrieved object.
- mode
Access Boolean - Set trunking mode to ACCESS unconditionally
- mode
Dot1q BooleanTunnel - set trunking mode to TUNNEL unconditionally
- mode
Private BooleanVlan Host - Set the mode to private-vlan host
- mode
Private BooleanVlan Promiscuous - Set the mode to private-vlan promiscuous
- mode
Private BooleanVlan Trunk - Set the mode to private-vlan trunk
- mode
Trunk Boolean - Set trunking mode to TRUNK unconditionally
- name String
- nonegotiate Boolean
- Device will not engage in negotiation protocol on this interface
- trunk
Allowed StringVlans - trunk
Allowed BooleanVlans None - no VLANs
- trunk
Native IntegerVlan - trunk
Native BooleanVlan Tag - type String
- Interface type
- device String
- A device name from the provider configuration.
- access
Vlan string - host boolean
- Set port host
- id string
- The path of the retrieved object.
- mode
Access boolean - Set trunking mode to ACCESS unconditionally
- mode
Dot1q booleanTunnel - set trunking mode to TUNNEL unconditionally
- mode
Private booleanVlan Host - Set the mode to private-vlan host
- mode
Private booleanVlan Promiscuous - Set the mode to private-vlan promiscuous
- mode
Private booleanVlan Trunk - Set the mode to private-vlan trunk
- mode
Trunk boolean - Set trunking mode to TRUNK unconditionally
- name string
- nonegotiate boolean
- Device will not engage in negotiation protocol on this interface
- trunk
Allowed stringVlans - trunk
Allowed booleanVlans None - no VLANs
- trunk
Native numberVlan - trunk
Native booleanVlan Tag - type string
- Interface type
- device string
- A device name from the provider configuration.
- access_
vlan str - host bool
- Set port host
- id str
- The path of the retrieved object.
- mode_
access bool - Set trunking mode to ACCESS unconditionally
- mode_
dot1q_ booltunnel - set trunking mode to TUNNEL unconditionally
- mode_
private_ boolvlan_ host - Set the mode to private-vlan host
- mode_
private_ boolvlan_ promiscuous - Set the mode to private-vlan promiscuous
- mode_
private_ boolvlan_ trunk - Set the mode to private-vlan trunk
- mode_
trunk bool - Set trunking mode to TRUNK unconditionally
- name str
- nonegotiate bool
- Device will not engage in negotiation protocol on this interface
- trunk_
allowed_ strvlans - trunk_
allowed_ boolvlans_ none - no VLANs
- trunk_
native_ intvlan - trunk_
native_ boolvlan_ tag - type str
- Interface type
- device str
- A device name from the provider configuration.
- access
Vlan String - host Boolean
- Set port host
- id String
- The path of the retrieved object.
- mode
Access Boolean - Set trunking mode to ACCESS unconditionally
- mode
Dot1q BooleanTunnel - set trunking mode to TUNNEL unconditionally
- mode
Private BooleanVlan Host - Set the mode to private-vlan host
- mode
Private BooleanVlan Promiscuous - Set the mode to private-vlan promiscuous
- mode
Private BooleanVlan Trunk - Set the mode to private-vlan trunk
- mode
Trunk Boolean - Set trunking mode to TRUNK unconditionally
- name String
- nonegotiate Boolean
- Device will not engage in negotiation protocol on this interface
- trunk
Allowed StringVlans - trunk
Allowed BooleanVlans None - no VLANs
- trunk
Native NumberVlan - trunk
Native BooleanVlan Tag - type String
- Interface type
- 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
iosxeTerraform Provider.
Viewing docs for Cisco IOS XE v0.0.1
published on Friday, Sep 22, 2023 by lbrlabs
published on Friday, Sep 22, 2023 by lbrlabs
