Cisco IOS XE v0.0.1 published on Friday, Sep 22, 2023 by lbrlabs
iosxe.getVlanConfiguration
Explore with Pulumi AI
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 * as pulumi from "@pulumi/pulumi";
import * as iosxe from "@pulumi/iosxe";
const example = iosxe.getVlanConfiguration({
    vlanId: 123,
});
import pulumi
import pulumi_iosxe as iosxe
example = iosxe.get_vlan_configuration(vlan_id=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)
public static Output<GetVlanConfigurationResult> getVlanConfiguration(GetVlanConfigurationArgs args, InvokeOptions options)
fn::invoke:
  function: iosxe:index/getVlanConfiguration:getVlanConfiguration
  arguments:
    # arguments dictionaryThe following arguments are supported:
getVlanConfiguration Result
The following output properties are available:
- Access
Vfi string - Enter VFI name
 - Evpn
Instance int - Evpn
Instance intVni  - VxLAN VNI value
 - Id string
 - The path of the retrieved object.
 - Vlan
Id int - VLAN ID List Eg. 1-10,15
 - Vni int
 - VxLAN VNI value
 - Device string
 - A device name from the provider configuration.
 
- Access
Vfi string - Enter VFI name
 - Evpn
Instance int - Evpn
Instance intVni  - VxLAN VNI value
 - Id string
 - The path of the retrieved object.
 - Vlan
Id int - VLAN ID List Eg. 1-10,15
 - Vni int
 - VxLAN VNI value
 - Device string
 - A device name from the provider configuration.
 
- access
Vfi String - Enter VFI name
 - evpn
Instance Integer - evpn
Instance IntegerVni  - VxLAN VNI value
 - id String
 - The path of the retrieved object.
 - vlan
Id Integer - VLAN ID List Eg. 1-10,15
 - vni Integer
 - VxLAN VNI value
 - device String
 - A device name from the provider configuration.
 
- access
Vfi string - Enter VFI name
 - evpn
Instance number - evpn
Instance numberVni  - VxLAN VNI value
 - id string
 - The path of the retrieved object.
 - vlan
Id 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_ intvni  - 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.
 
- access
Vfi String - Enter VFI name
 - evpn
Instance Number - evpn
Instance NumberVni  - VxLAN VNI value
 - id String
 - The path of the retrieved object.
 - vlan
Id 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 
iosxeTerraform Provider.