azure-native.network.getVirtualNetworkGatewayAdvertisedRoutes
Explore with Pulumi AI
This operation retrieves a list of routes the virtual network gateway is advertising to the specified peer.
Uses Azure REST API version 2024-05-01.
Other available API versions: 2018-06-01, 2018-07-01, 2018-08-01, 2018-10-01, 2018-11-01, 2018-12-01, 2019-02-01, 2019-04-01, 2019-06-01, 2019-07-01, 2019-08-01, 2019-09-01, 2019-11-01, 2019-12-01, 2020-03-01, 2020-04-01, 2020-05-01, 2020-06-01, 2020-07-01, 2020-08-01, 2020-11-01, 2021-02-01, 2021-03-01, 2021-05-01, 2021-08-01, 2022-01-01, 2022-05-01, 2022-07-01, 2022-09-01, 2022-11-01, 2023-02-01, 2023-04-01, 2023-05-01, 2023-06-01, 2023-09-01, 2023-11-01, 2024-01-01, 2024-03-01. These can be accessed by generating a local SDK package using the CLI command pulumi package add azure-native network [ApiVersion]. See the version guide for details.
Using getVirtualNetworkGatewayAdvertisedRoutes
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 getVirtualNetworkGatewayAdvertisedRoutes(args: GetVirtualNetworkGatewayAdvertisedRoutesArgs, opts?: InvokeOptions): Promise<GetVirtualNetworkGatewayAdvertisedRoutesResult>
function getVirtualNetworkGatewayAdvertisedRoutesOutput(args: GetVirtualNetworkGatewayAdvertisedRoutesOutputArgs, opts?: InvokeOptions): Output<GetVirtualNetworkGatewayAdvertisedRoutesResult>def get_virtual_network_gateway_advertised_routes(peer: Optional[str] = None,
                                                  resource_group_name: Optional[str] = None,
                                                  virtual_network_gateway_name: Optional[str] = None,
                                                  opts: Optional[InvokeOptions] = None) -> GetVirtualNetworkGatewayAdvertisedRoutesResult
def get_virtual_network_gateway_advertised_routes_output(peer: Optional[pulumi.Input[str]] = None,
                                                  resource_group_name: Optional[pulumi.Input[str]] = None,
                                                  virtual_network_gateway_name: Optional[pulumi.Input[str]] = None,
                                                  opts: Optional[InvokeOptions] = None) -> Output[GetVirtualNetworkGatewayAdvertisedRoutesResult]func GetVirtualNetworkGatewayAdvertisedRoutes(ctx *Context, args *GetVirtualNetworkGatewayAdvertisedRoutesArgs, opts ...InvokeOption) (*GetVirtualNetworkGatewayAdvertisedRoutesResult, error)
func GetVirtualNetworkGatewayAdvertisedRoutesOutput(ctx *Context, args *GetVirtualNetworkGatewayAdvertisedRoutesOutputArgs, opts ...InvokeOption) GetVirtualNetworkGatewayAdvertisedRoutesResultOutput> Note: This function is named GetVirtualNetworkGatewayAdvertisedRoutes in the Go SDK.
public static class GetVirtualNetworkGatewayAdvertisedRoutes 
{
    public static Task<GetVirtualNetworkGatewayAdvertisedRoutesResult> InvokeAsync(GetVirtualNetworkGatewayAdvertisedRoutesArgs args, InvokeOptions? opts = null)
    public static Output<GetVirtualNetworkGatewayAdvertisedRoutesResult> Invoke(GetVirtualNetworkGatewayAdvertisedRoutesInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetVirtualNetworkGatewayAdvertisedRoutesResult> getVirtualNetworkGatewayAdvertisedRoutes(GetVirtualNetworkGatewayAdvertisedRoutesArgs args, InvokeOptions options)
public static Output<GetVirtualNetworkGatewayAdvertisedRoutesResult> getVirtualNetworkGatewayAdvertisedRoutes(GetVirtualNetworkGatewayAdvertisedRoutesArgs args, InvokeOptions options)
fn::invoke:
  function: azure-native:network:getVirtualNetworkGatewayAdvertisedRoutes
  arguments:
    # arguments dictionaryThe following arguments are supported:
- Peer string
 - The IP address of the peer.
 - Resource
Group stringName  - The name of the resource group.
 - Virtual
Network stringGateway Name  - The name of the virtual network gateway.
 
- Peer string
 - The IP address of the peer.
 - Resource
Group stringName  - The name of the resource group.
 - Virtual
Network stringGateway Name  - The name of the virtual network gateway.
 
- peer String
 - The IP address of the peer.
 - resource
Group StringName  - The name of the resource group.
 - virtual
Network StringGateway Name  - The name of the virtual network gateway.
 
- peer string
 - The IP address of the peer.
 - resource
Group stringName  - The name of the resource group.
 - virtual
Network stringGateway Name  - The name of the virtual network gateway.
 
- peer str
 - The IP address of the peer.
 - resource_
group_ strname  - The name of the resource group.
 - virtual_
network_ strgateway_ name  - The name of the virtual network gateway.
 
- peer String
 - The IP address of the peer.
 - resource
Group StringName  - The name of the resource group.
 - virtual
Network StringGateway Name  - The name of the virtual network gateway.
 
getVirtualNetworkGatewayAdvertisedRoutes Result
The following output properties are available:
- Value
List<Pulumi.
Azure Native. Network. Outputs. Gateway Route Response>  - List of gateway routes.
 
- Value
[]Gateway
Route Response  - List of gateway routes.
 
- value
List<Gateway
Route Response>  - List of gateway routes.
 
- value
Gateway
Route Response[]  - List of gateway routes.
 
- value
Sequence[Gateway
Route Response]  - List of gateway routes.
 
- value List<Property Map>
 - List of gateway routes.
 
Supporting Types
GatewayRouteResponse  
- As
Path string - The route's AS path sequence.
 - Local
Address string - The gateway's local address.
 - Network string
 - The route's network prefix.
 - Next
Hop string - The route's next hop.
 - Origin string
 - The source this route was learned from.
 - Source
Peer string - The peer this route was learned from.
 - Weight int
 - The route's weight.
 
- As
Path string - The route's AS path sequence.
 - Local
Address string - The gateway's local address.
 - Network string
 - The route's network prefix.
 - Next
Hop string - The route's next hop.
 - Origin string
 - The source this route was learned from.
 - Source
Peer string - The peer this route was learned from.
 - Weight int
 - The route's weight.
 
- as
Path String - The route's AS path sequence.
 - local
Address String - The gateway's local address.
 - network String
 - The route's network prefix.
 - next
Hop String - The route's next hop.
 - origin String
 - The source this route was learned from.
 - source
Peer String - The peer this route was learned from.
 - weight Integer
 - The route's weight.
 
- as
Path string - The route's AS path sequence.
 - local
Address string - The gateway's local address.
 - network string
 - The route's network prefix.
 - next
Hop string - The route's next hop.
 - origin string
 - The source this route was learned from.
 - source
Peer 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.
 
- as
Path String - The route's AS path sequence.
 - local
Address String - The gateway's local address.
 - network String
 - The route's network prefix.
 - next
Hop String - The route's next hop.
 - origin String
 - The source this route was learned from.
 - source
Peer 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