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

iosxe.getBgpAddressFamilyL2vpn

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 BGP Address Family L2VPN configuration.

    Example Usage

    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Iosxe = Pulumi.Iosxe;
    
    return await Deployment.RunAsync(() => 
    {
        var example = Iosxe.GetBgpAddressFamilyL2vpn.Invoke(new()
        {
            AfName = "evpn",
            Asn = "65000",
        });
    
    });
    
    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.LookupBgpAddressFamilyL2vpn(ctx, &iosxe.LookupBgpAddressFamilyL2vpnArgs{
    			AfName: "evpn",
    			Asn:    "65000",
    		}, 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.GetBgpAddressFamilyL2vpnArgs;
    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.getBgpAddressFamilyL2vpn(GetBgpAddressFamilyL2vpnArgs.builder()
                .afName("evpn")
                .asn("65000")
                .build());
    
        }
    }
    
    import pulumi
    import pulumi_iosxe as iosxe
    
    example = iosxe.get_bgp_address_family_l2vpn(af_name="evpn",
        asn="65000")
    
    import * as pulumi from "@pulumi/pulumi";
    import * as iosxe from "@pulumi/iosxe";
    
    const example = iosxe.getBgpAddressFamilyL2vpn({
        afName: "evpn",
        asn: "65000",
    });
    
    variables:
      example:
        fn::invoke:
          Function: iosxe:getBgpAddressFamilyL2vpn
          Arguments:
            afName: evpn
            asn: '65000'
    

    Using getBgpAddressFamilyL2vpn

    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 getBgpAddressFamilyL2vpn(args: GetBgpAddressFamilyL2vpnArgs, opts?: InvokeOptions): Promise<GetBgpAddressFamilyL2vpnResult>
    function getBgpAddressFamilyL2vpnOutput(args: GetBgpAddressFamilyL2vpnOutputArgs, opts?: InvokeOptions): Output<GetBgpAddressFamilyL2vpnResult>
    def get_bgp_address_family_l2vpn(af_name: Optional[str] = None,
                                     asn: Optional[str] = None,
                                     device: Optional[str] = None,
                                     opts: Optional[InvokeOptions] = None) -> GetBgpAddressFamilyL2vpnResult
    def get_bgp_address_family_l2vpn_output(af_name: Optional[pulumi.Input[str]] = None,
                                     asn: Optional[pulumi.Input[str]] = None,
                                     device: Optional[pulumi.Input[str]] = None,
                                     opts: Optional[InvokeOptions] = None) -> Output[GetBgpAddressFamilyL2vpnResult]
    func LookupBgpAddressFamilyL2vpn(ctx *Context, args *LookupBgpAddressFamilyL2vpnArgs, opts ...InvokeOption) (*LookupBgpAddressFamilyL2vpnResult, error)
    func LookupBgpAddressFamilyL2vpnOutput(ctx *Context, args *LookupBgpAddressFamilyL2vpnOutputArgs, opts ...InvokeOption) LookupBgpAddressFamilyL2vpnResultOutput

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

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

    The following arguments are supported:

    AfName string
    Asn string
    Device string
    A device name from the provider configuration.
    AfName string
    Asn string
    Device string
    A device name from the provider configuration.
    afName String
    asn String
    device String
    A device name from the provider configuration.
    afName string
    asn string
    device string
    A device name from the provider configuration.
    af_name str
    asn str
    device str
    A device name from the provider configuration.
    afName String
    asn String
    device String
    A device name from the provider configuration.

    getBgpAddressFamilyL2vpn Result

    The following output properties are available:

    AfName string
    Asn string
    Id string
    The path of the retrieved object.
    Device string
    A device name from the provider configuration.
    AfName string
    Asn string
    Id string
    The path of the retrieved object.
    Device string
    A device name from the provider configuration.
    afName String
    asn String
    id String
    The path of the retrieved object.
    device String
    A device name from the provider configuration.
    afName string
    asn string
    id string
    The path of the retrieved object.
    device string
    A device name from the provider configuration.
    af_name str
    asn str
    id str
    The path of the retrieved object.
    device str
    A device name from the provider configuration.
    afName String
    asn String
    id String
    The path of the retrieved object.
    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