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

iosxe.getVlanAccessMap

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 Access Map configuration.

    Example Usage

    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Iosxe = Pulumi.Iosxe;
    
    return await Deployment.RunAsync(() => 
    {
        var example = Iosxe.GetVlanAccessMap.Invoke(new()
        {
            Name = "VAM1",
            Sequence = 10,
        });
    
    });
    
    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.LookupVlanAccessMap(ctx, &iosxe.LookupVlanAccessMapArgs{
    			Name:     "VAM1",
    			Sequence: 10,
    		}, 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.GetVlanAccessMapArgs;
    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.getVlanAccessMap(GetVlanAccessMapArgs.builder()
                .name("VAM1")
                .sequence(10)
                .build());
    
        }
    }
    
    import pulumi
    import pulumi_iosxe as iosxe
    
    example = iosxe.get_vlan_access_map(name="VAM1",
        sequence=10)
    
    import * as pulumi from "@pulumi/pulumi";
    import * as iosxe from "@pulumi/iosxe";
    
    const example = iosxe.getVlanAccessMap({
        name: "VAM1",
        sequence: 10,
    });
    
    variables:
      example:
        fn::invoke:
          Function: iosxe:getVlanAccessMap
          Arguments:
            name: VAM1
            sequence: 10
    

    Using getVlanAccessMap

    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 getVlanAccessMap(args: GetVlanAccessMapArgs, opts?: InvokeOptions): Promise<GetVlanAccessMapResult>
    function getVlanAccessMapOutput(args: GetVlanAccessMapOutputArgs, opts?: InvokeOptions): Output<GetVlanAccessMapResult>
    def get_vlan_access_map(device: Optional[str] = None,
                            name: Optional[str] = None,
                            sequence: Optional[int] = None,
                            opts: Optional[InvokeOptions] = None) -> GetVlanAccessMapResult
    def get_vlan_access_map_output(device: Optional[pulumi.Input[str]] = None,
                            name: Optional[pulumi.Input[str]] = None,
                            sequence: Optional[pulumi.Input[int]] = None,
                            opts: Optional[InvokeOptions] = None) -> Output[GetVlanAccessMapResult]
    func LookupVlanAccessMap(ctx *Context, args *LookupVlanAccessMapArgs, opts ...InvokeOption) (*LookupVlanAccessMapResult, error)
    func LookupVlanAccessMapOutput(ctx *Context, args *LookupVlanAccessMapOutputArgs, opts ...InvokeOption) LookupVlanAccessMapResultOutput

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

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

    The following arguments are supported:

    Name string
    Vlan access map tag
    Sequence int
    Sequence to insert to/delete from existing vlan access-map entry
    Device string
    A device name from the provider configuration.
    Name string
    Vlan access map tag
    Sequence int
    Sequence to insert to/delete from existing vlan access-map entry
    Device string
    A device name from the provider configuration.
    name String
    Vlan access map tag
    sequence Integer
    Sequence to insert to/delete from existing vlan access-map entry
    device String
    A device name from the provider configuration.
    name string
    Vlan access map tag
    sequence number
    Sequence to insert to/delete from existing vlan access-map entry
    device string
    A device name from the provider configuration.
    name str
    Vlan access map tag
    sequence int
    Sequence to insert to/delete from existing vlan access-map entry
    device str
    A device name from the provider configuration.
    name String
    Vlan access map tag
    sequence Number
    Sequence to insert to/delete from existing vlan access-map entry
    device String
    A device name from the provider configuration.

    getVlanAccessMap Result

    The following output properties are available:

    Action string
    Take the action
    Id string
    The path of the retrieved object.
    MatchIpAddresses List<string>
    MatchIpv6Addresses List<string>
    Match IPv6 address to access control.
    Name string
    Vlan access map tag
    Sequence int
    Sequence to insert to/delete from existing vlan access-map entry
    Device string
    A device name from the provider configuration.
    Action string
    Take the action
    Id string
    The path of the retrieved object.
    MatchIpAddresses []string
    MatchIpv6Addresses []string
    Match IPv6 address to access control.
    Name string
    Vlan access map tag
    Sequence int
    Sequence to insert to/delete from existing vlan access-map entry
    Device string
    A device name from the provider configuration.
    action String
    Take the action
    id String
    The path of the retrieved object.
    matchIpAddresses List<String>
    matchIpv6Addresses List<String>
    Match IPv6 address to access control.
    name String
    Vlan access map tag
    sequence Integer
    Sequence to insert to/delete from existing vlan access-map entry
    device String
    A device name from the provider configuration.
    action string
    Take the action
    id string
    The path of the retrieved object.
    matchIpAddresses string[]
    matchIpv6Addresses string[]
    Match IPv6 address to access control.
    name string
    Vlan access map tag
    sequence number
    Sequence to insert to/delete from existing vlan access-map entry
    device string
    A device name from the provider configuration.
    action str
    Take the action
    id str
    The path of the retrieved object.
    match_ip_addresses Sequence[str]
    match_ipv6_addresses Sequence[str]
    Match IPv6 address to access control.
    name str
    Vlan access map tag
    sequence int
    Sequence to insert to/delete from existing vlan access-map entry
    device str
    A device name from the provider configuration.
    action String
    Take the action
    id String
    The path of the retrieved object.
    matchIpAddresses List<String>
    matchIpv6Addresses List<String>
    Match IPv6 address to access control.
    name String
    Vlan access map tag
    sequence Number
    Sequence to insert to/delete from existing vlan access-map entry
    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