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

iosxe.getBgpIpv6UnicastNeighbor

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 IPv6 Unicast Neighbor configuration.

    Example Usage

    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Iosxe = Pulumi.Iosxe;
    
    return await Deployment.RunAsync(() => 
    {
        var example = Iosxe.GetBgpIpv6UnicastNeighbor.Invoke(new()
        {
            Asn = "65000",
            Ip = "3.3.3.3",
        });
    
    });
    
    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.LookupBgpIpv6UnicastNeighbor(ctx, &iosxe.LookupBgpIpv6UnicastNeighborArgs{
    			Asn: "65000",
    			Ip:  "3.3.3.3",
    		}, 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.GetBgpIpv6UnicastNeighborArgs;
    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.getBgpIpv6UnicastNeighbor(GetBgpIpv6UnicastNeighborArgs.builder()
                .asn("65000")
                .ip("3.3.3.3")
                .build());
    
        }
    }
    
    import pulumi
    import pulumi_iosxe as iosxe
    
    example = iosxe.get_bgp_ipv6_unicast_neighbor(asn="65000",
        ip="3.3.3.3")
    
    import * as pulumi from "@pulumi/pulumi";
    import * as iosxe from "@pulumi/iosxe";
    
    const example = iosxe.getBgpIpv6UnicastNeighbor({
        asn: "65000",
        ip: "3.3.3.3",
    });
    
    variables:
      example:
        fn::invoke:
          Function: iosxe:getBgpIpv6UnicastNeighbor
          Arguments:
            asn: '65000'
            ip: 3.3.3.3
    

    Using getBgpIpv6UnicastNeighbor

    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 getBgpIpv6UnicastNeighbor(args: GetBgpIpv6UnicastNeighborArgs, opts?: InvokeOptions): Promise<GetBgpIpv6UnicastNeighborResult>
    function getBgpIpv6UnicastNeighborOutput(args: GetBgpIpv6UnicastNeighborOutputArgs, opts?: InvokeOptions): Output<GetBgpIpv6UnicastNeighborResult>
    def get_bgp_ipv6_unicast_neighbor(asn: Optional[str] = None,
                                      device: Optional[str] = None,
                                      ip: Optional[str] = None,
                                      opts: Optional[InvokeOptions] = None) -> GetBgpIpv6UnicastNeighborResult
    def get_bgp_ipv6_unicast_neighbor_output(asn: Optional[pulumi.Input[str]] = None,
                                      device: Optional[pulumi.Input[str]] = None,
                                      ip: Optional[pulumi.Input[str]] = None,
                                      opts: Optional[InvokeOptions] = None) -> Output[GetBgpIpv6UnicastNeighborResult]
    func LookupBgpIpv6UnicastNeighbor(ctx *Context, args *LookupBgpIpv6UnicastNeighborArgs, opts ...InvokeOption) (*LookupBgpIpv6UnicastNeighborResult, error)
    func LookupBgpIpv6UnicastNeighborOutput(ctx *Context, args *LookupBgpIpv6UnicastNeighborOutputArgs, opts ...InvokeOption) LookupBgpIpv6UnicastNeighborResultOutput

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

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

    The following arguments are supported:

    Asn string
    Ip string
    Device string
    A device name from the provider configuration.
    Asn string
    Ip string
    Device string
    A device name from the provider configuration.
    asn String
    ip String
    device String
    A device name from the provider configuration.
    asn string
    ip string
    device string
    A device name from the provider configuration.
    asn str
    ip str
    device str
    A device name from the provider configuration.
    asn String
    ip String
    device String
    A device name from the provider configuration.

    getBgpIpv6UnicastNeighbor Result

    The following output properties are available:

    Activate bool
    Enable the address family for this neighbor
    Asn string
    Id string
    The path of the retrieved object.
    Ip string
    RouteMaps List<Lbrlabs.PulumiPackage.Iosxe.Outputs.GetBgpIpv6UnicastNeighborRouteMap>
    Apply route map to neighbor
    RouteReflectorClient bool
    Configure a neighbor as Route Reflector client
    SendCommunity string
    Device string
    A device name from the provider configuration.
    Activate bool
    Enable the address family for this neighbor
    Asn string
    Id string
    The path of the retrieved object.
    Ip string
    RouteMaps []GetBgpIpv6UnicastNeighborRouteMap
    Apply route map to neighbor
    RouteReflectorClient bool
    Configure a neighbor as Route Reflector client
    SendCommunity string
    Device string
    A device name from the provider configuration.
    activate Boolean
    Enable the address family for this neighbor
    asn String
    id String
    The path of the retrieved object.
    ip String
    routeMaps List<GetBgpIpv6UnicastNeighborRouteMap>
    Apply route map to neighbor
    routeReflectorClient Boolean
    Configure a neighbor as Route Reflector client
    sendCommunity String
    device String
    A device name from the provider configuration.
    activate boolean
    Enable the address family for this neighbor
    asn string
    id string
    The path of the retrieved object.
    ip string
    routeMaps GetBgpIpv6UnicastNeighborRouteMap[]
    Apply route map to neighbor
    routeReflectorClient boolean
    Configure a neighbor as Route Reflector client
    sendCommunity string
    device string
    A device name from the provider configuration.
    activate bool
    Enable the address family for this neighbor
    asn str
    id str
    The path of the retrieved object.
    ip str
    route_maps Sequence[GetBgpIpv6UnicastNeighborRouteMap]
    Apply route map to neighbor
    route_reflector_client bool
    Configure a neighbor as Route Reflector client
    send_community str
    device str
    A device name from the provider configuration.
    activate Boolean
    Enable the address family for this neighbor
    asn String
    id String
    The path of the retrieved object.
    ip String
    routeMaps List<Property Map>
    Apply route map to neighbor
    routeReflectorClient Boolean
    Configure a neighbor as Route Reflector client
    sendCommunity String
    device String
    A device name from the provider configuration.

    Supporting Types

    GetBgpIpv6UnicastNeighborRouteMap

    InOut string
    RouteMapName string
    InOut string
    RouteMapName string
    inOut String
    routeMapName String
    inOut string
    routeMapName string
    inOut String
    routeMapName String

    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