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

iosxe.getVlanConfiguration

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 VLAN Configuration configuration.

    Example Usage

    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Iosxe = Pulumi.Iosxe;
    
    return await Deployment.RunAsync(() => 
    {
        var example = Iosxe.GetVlanConfiguration.Invoke(new()
        {
            VlanId = 123,
        });
    
    });
    
    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.LookupVlanConfiguration(ctx, &iosxe.LookupVlanConfigurationArgs{
    			VlanId: 123,
    		}, 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.GetVlanConfigurationArgs;
    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.getVlanConfiguration(GetVlanConfigurationArgs.builder()
                .vlanId(123)
                .build());
    
        }
    }
    
    import pulumi
    import pulumi_iosxe as iosxe
    
    example = iosxe.get_vlan_configuration(vlan_id=123)
    
    import * as pulumi from "@pulumi/pulumi";
    import * as iosxe from "@pulumi/iosxe";
    
    const example = iosxe.getVlanConfiguration({
        vlanId: 123,
    });
    
    variables:
      example:
        fn::invoke:
          Function: iosxe:getVlanConfiguration
          Arguments:
            vlanId: 123
    

    Using getVlanConfiguration

    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 getVlanConfiguration(args: GetVlanConfigurationArgs, opts?: InvokeOptions): Promise<GetVlanConfigurationResult>
    function getVlanConfigurationOutput(args: GetVlanConfigurationOutputArgs, opts?: InvokeOptions): Output<GetVlanConfigurationResult>
    def get_vlan_configuration(device: Optional[str] = None,
                               vlan_id: Optional[int] = None,
                               opts: Optional[InvokeOptions] = None) -> GetVlanConfigurationResult
    def get_vlan_configuration_output(device: Optional[pulumi.Input[str]] = None,
                               vlan_id: Optional[pulumi.Input[int]] = None,
                               opts: Optional[InvokeOptions] = None) -> Output[GetVlanConfigurationResult]
    func LookupVlanConfiguration(ctx *Context, args *LookupVlanConfigurationArgs, opts ...InvokeOption) (*LookupVlanConfigurationResult, error)
    func LookupVlanConfigurationOutput(ctx *Context, args *LookupVlanConfigurationOutputArgs, opts ...InvokeOption) LookupVlanConfigurationResultOutput

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

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

    The following arguments are supported:

    VlanId int
    VLAN ID List Eg. 1-10,15
    Device string
    A device name from the provider configuration.
    VlanId int
    VLAN ID List Eg. 1-10,15
    Device string
    A device name from the provider configuration.
    vlanId Integer
    VLAN ID List Eg. 1-10,15
    device String
    A device name from the provider configuration.
    vlanId number
    VLAN ID List Eg. 1-10,15
    device string
    A device name from the provider configuration.
    vlan_id int
    VLAN ID List Eg. 1-10,15
    device str
    A device name from the provider configuration.
    vlanId Number
    VLAN ID List Eg. 1-10,15
    device String
    A device name from the provider configuration.

    getVlanConfiguration Result

    The following output properties are available:

    AccessVfi string
    Enter VFI name
    EvpnInstance int
    EvpnInstanceVni int
    VxLAN VNI value
    Id string
    The path of the retrieved object.
    VlanId int
    VLAN ID List Eg. 1-10,15
    Vni int
    VxLAN VNI value
    Device string
    A device name from the provider configuration.
    AccessVfi string
    Enter VFI name
    EvpnInstance int
    EvpnInstanceVni int
    VxLAN VNI value
    Id string
    The path of the retrieved object.
    VlanId int
    VLAN ID List Eg. 1-10,15
    Vni int
    VxLAN VNI value
    Device string
    A device name from the provider configuration.
    accessVfi String
    Enter VFI name
    evpnInstance Integer
    evpnInstanceVni Integer
    VxLAN VNI value
    id String
    The path of the retrieved object.
    vlanId Integer
    VLAN ID List Eg. 1-10,15
    vni Integer
    VxLAN VNI value
    device String
    A device name from the provider configuration.
    accessVfi string
    Enter VFI name
    evpnInstance number
    evpnInstanceVni number
    VxLAN VNI value
    id string
    The path of the retrieved object.
    vlanId number
    VLAN ID List Eg. 1-10,15
    vni number
    VxLAN VNI value
    device string
    A device name from the provider configuration.
    access_vfi str
    Enter VFI name
    evpn_instance int
    evpn_instance_vni int
    VxLAN VNI value
    id str
    The path of the retrieved object.
    vlan_id int
    VLAN ID List Eg. 1-10,15
    vni int
    VxLAN VNI value
    device str
    A device name from the provider configuration.
    accessVfi String
    Enter VFI name
    evpnInstance Number
    evpnInstanceVni Number
    VxLAN VNI value
    id String
    The path of the retrieved object.
    vlanId Number
    VLAN ID List Eg. 1-10,15
    vni Number
    VxLAN VNI value
    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