Skip to main content

virtual_hub_route_table_v2

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

Overview

Namevirtual_hub_route_table_v2
TypeResource
Idazure.network.virtual_hub_route_table_v2

Fields

NameDatatypeDescription
idtextResource ID.
nametextThe name of the resource that is unique within a resource group. This name can be used to access the resource.
attached_connectionstextfield from the properties object
etagtextA unique read-only string that changes whenever the resource is updated.
provisioning_statetextfield from the properties object
resourceGroupNametextfield from the properties object
routeTableNametextfield from the properties object
routestextfield from the properties object
subscriptionIdtextfield from the properties object
virtualHubNametextfield from the properties object

Methods

NameAccessible byRequired ParamsDescription
getSELECTresourceGroupName, routeTableName, subscriptionId, virtualHubNameRetrieves the details of a VirtualHubRouteTableV2.
listSELECTresourceGroupName, subscriptionId, virtualHubNameRetrieves the details of all VirtualHubRouteTableV2s.
create_or_updateINSERTresourceGroupName, routeTableName, subscriptionId, virtualHubNameCreates a VirtualHubRouteTableV2 resource if it doesn't exist else updates the existing VirtualHubRouteTableV2.
deleteDELETEresourceGroupName, routeTableName, subscriptionId, virtualHubNameDeletes a VirtualHubRouteTableV2.

SELECT examples

Retrieves the details of all VirtualHubRouteTableV2s.

SELECT
id,
name,
attached_connections,
etag,
provisioning_state,
resourceGroupName,
routeTableName,
routes,
subscriptionId,
virtualHubName
FROM azure.network.vw_virtual_hub_route_table_v2
WHERE resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}'
AND virtualHubName = '{{ virtualHubName }}';

INSERT example

Use the following StackQL query and manifest file to create a new virtual_hub_route_table_v2 resource.

/*+ create */
INSERT INTO azure.network.virtual_hub_route_table_v2 (
resourceGroupName,
routeTableName,
subscriptionId,
virtualHubName,
properties,
name,
id
)
SELECT
'{{ resourceGroupName }}',
'{{ routeTableName }}',
'{{ subscriptionId }}',
'{{ virtualHubName }}',
'{{ properties }}',
'{{ name }}',
'{{ id }}'
;

DELETE example

Deletes the specified virtual_hub_route_table_v2 resource.

/*+ delete */
DELETE FROM azure.network.virtual_hub_route_table_v2
WHERE resourceGroupName = '{{ resourceGroupName }}'
AND routeTableName = '{{ routeTableName }}'
AND subscriptionId = '{{ subscriptionId }}'
AND virtualHubName = '{{ virtualHubName }}';