Skip to main content

virtual_hubs_effective_virtual_hub_routes

Creates, updates, deletes, gets or lists a virtual_hubs_effective_virtual_hub_routes resource.

Overview

Namevirtual_hubs_effective_virtual_hub_routes
TypeResource
Idazure.network.virtual_hubs_effective_virtual_hub_routes

Fields

The following fields are returned by SELECT queries:

Request successful. Returns the list of the effective routes or follow the location header for the effective routes list.

NameDatatypeDescription
addressPrefixesarrayThe list of address prefixes.
asPathstringThe ASPath of this route.
nextHopTypestringThe type of the next hop.
nextHopsarrayThe list of next hops.
routeOriginstringThe origin of this route.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectsubscriptionId, resourceGroupName, virtualHubNameGets the effective routes configured for the Virtual Hub resource or the specified resource .

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
resourceGroupNamestringThe resource group name of the VirtualHub.
subscriptionIdstring (uuid)The ID of the target subscription. The value must be an UUID.
virtualHubNamestringThe name of the VirtualHub.

SELECT examples

Gets the effective routes configured for the Virtual Hub resource or the specified resource .

SELECT
addressPrefixes,
asPath,
nextHopType,
nextHops,
routeOrigin
FROM azure.network.virtual_hubs_effective_virtual_hub_routes
WHERE subscriptionId = '{{ subscriptionId }}' -- required
AND resourceGroupName = '{{ resourceGroupName }}' -- required
AND virtualHubName = '{{ virtualHubName }}' -- required
;