1. Packages
  2. Azure Native
  3. API Docs
  4. network
  5. getVirtualNetworkGatewayLearnedRoutes
This is the latest version of Azure Native. Use the Azure Native v1 docs if using the v1 version of this package.
Azure Native v2.63.0 published on Tuesday, Sep 24, 2024 by Pulumi

azure-native.network.getVirtualNetworkGatewayLearnedRoutes

Explore with Pulumi AI

azure-native logo
This is the latest version of Azure Native. Use the Azure Native v1 docs if using the v1 version of this package.
Azure Native v2.63.0 published on Tuesday, Sep 24, 2024 by Pulumi

    This operation retrieves a list of routes the virtual network gateway has learned, including routes learned from BGP peers. Azure REST API version: 2023-02-01.

    Other available API versions: 2016-09-01, 2019-08-01, 2023-04-01, 2023-05-01, 2023-06-01, 2023-09-01, 2023-11-01, 2024-01-01, 2024-03-01.

    Using getVirtualNetworkGatewayLearnedRoutes

    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 getVirtualNetworkGatewayLearnedRoutes(args: GetVirtualNetworkGatewayLearnedRoutesArgs, opts?: InvokeOptions): Promise<GetVirtualNetworkGatewayLearnedRoutesResult>
    function getVirtualNetworkGatewayLearnedRoutesOutput(args: GetVirtualNetworkGatewayLearnedRoutesOutputArgs, opts?: InvokeOptions): Output<GetVirtualNetworkGatewayLearnedRoutesResult>
    def get_virtual_network_gateway_learned_routes(resource_group_name: Optional[str] = None,
                                                   virtual_network_gateway_name: Optional[str] = None,
                                                   opts: Optional[InvokeOptions] = None) -> GetVirtualNetworkGatewayLearnedRoutesResult
    def get_virtual_network_gateway_learned_routes_output(resource_group_name: Optional[pulumi.Input[str]] = None,
                                                   virtual_network_gateway_name: Optional[pulumi.Input[str]] = None,
                                                   opts: Optional[InvokeOptions] = None) -> Output[GetVirtualNetworkGatewayLearnedRoutesResult]
    func GetVirtualNetworkGatewayLearnedRoutes(ctx *Context, args *GetVirtualNetworkGatewayLearnedRoutesArgs, opts ...InvokeOption) (*GetVirtualNetworkGatewayLearnedRoutesResult, error)
    func GetVirtualNetworkGatewayLearnedRoutesOutput(ctx *Context, args *GetVirtualNetworkGatewayLearnedRoutesOutputArgs, opts ...InvokeOption) GetVirtualNetworkGatewayLearnedRoutesResultOutput

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

    public static class GetVirtualNetworkGatewayLearnedRoutes 
    {
        public static Task<GetVirtualNetworkGatewayLearnedRoutesResult> InvokeAsync(GetVirtualNetworkGatewayLearnedRoutesArgs args, InvokeOptions? opts = null)
        public static Output<GetVirtualNetworkGatewayLearnedRoutesResult> Invoke(GetVirtualNetworkGatewayLearnedRoutesInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetVirtualNetworkGatewayLearnedRoutesResult> getVirtualNetworkGatewayLearnedRoutes(GetVirtualNetworkGatewayLearnedRoutesArgs args, InvokeOptions options)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: azure-native:network:getVirtualNetworkGatewayLearnedRoutes
      arguments:
        # arguments dictionary

    The following arguments are supported:

    ResourceGroupName string
    The name of the resource group.
    VirtualNetworkGatewayName string
    The name of the virtual network gateway.
    ResourceGroupName string
    The name of the resource group.
    VirtualNetworkGatewayName string
    The name of the virtual network gateway.
    resourceGroupName String
    The name of the resource group.
    virtualNetworkGatewayName String
    The name of the virtual network gateway.
    resourceGroupName string
    The name of the resource group.
    virtualNetworkGatewayName string
    The name of the virtual network gateway.
    resource_group_name str
    The name of the resource group.
    virtual_network_gateway_name str
    The name of the virtual network gateway.
    resourceGroupName String
    The name of the resource group.
    virtualNetworkGatewayName String
    The name of the virtual network gateway.

    getVirtualNetworkGatewayLearnedRoutes Result

    The following output properties are available:

    Value []GatewayRouteResponse
    List of gateway routes.
    value List<GatewayRouteResponse>
    List of gateway routes.
    value GatewayRouteResponse[]
    List of gateway routes.
    value Sequence[GatewayRouteResponse]
    List of gateway routes.
    value List<Property Map>
    List of gateway routes.

    Supporting Types

    GatewayRouteResponse

    AsPath string
    The route's AS path sequence.
    LocalAddress string
    The gateway's local address.
    Network string
    The route's network prefix.
    NextHop string
    The route's next hop.
    Origin string
    The source this route was learned from.
    SourcePeer string
    The peer this route was learned from.
    Weight int
    The route's weight.
    AsPath string
    The route's AS path sequence.
    LocalAddress string
    The gateway's local address.
    Network string
    The route's network prefix.
    NextHop string
    The route's next hop.
    Origin string
    The source this route was learned from.
    SourcePeer string
    The peer this route was learned from.
    Weight int
    The route's weight.
    asPath String
    The route's AS path sequence.
    localAddress String
    The gateway's local address.
    network String
    The route's network prefix.
    nextHop String
    The route's next hop.
    origin String
    The source this route was learned from.
    sourcePeer String
    The peer this route was learned from.
    weight Integer
    The route's weight.
    asPath string
    The route's AS path sequence.
    localAddress string
    The gateway's local address.
    network string
    The route's network prefix.
    nextHop string
    The route's next hop.
    origin string
    The source this route was learned from.
    sourcePeer string
    The peer this route was learned from.
    weight number
    The route's weight.
    as_path str
    The route's AS path sequence.
    local_address str
    The gateway's local address.
    network str
    The route's network prefix.
    next_hop str
    The route's next hop.
    origin str
    The source this route was learned from.
    source_peer str
    The peer this route was learned from.
    weight int
    The route's weight.
    asPath String
    The route's AS path sequence.
    localAddress String
    The gateway's local address.
    network String
    The route's network prefix.
    nextHop String
    The route's next hop.
    origin String
    The source this route was learned from.
    sourcePeer String
    The peer this route was learned from.
    weight Number
    The route's weight.

    Package Details

    Repository
    Azure Native pulumi/pulumi-azure-native
    License
    Apache-2.0
    azure-native logo
    This is the latest version of Azure Native. Use the Azure Native v1 docs if using the v1 version of this package.
    Azure Native v2.63.0 published on Tuesday, Sep 24, 2024 by Pulumi