Skip to main content

hub_route_tables

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

Overview

Namehub_route_tables
TypeResource
Idazure.network.hub_route_tables

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.
associated_connectionstextfield from the properties object
etagtextA unique read-only string that changes whenever the resource is updated.
labelstextfield from the properties object
propagating_connectionstextfield from the properties object
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
typetextResource type.
virtualHubNametextfield from the properties object

Methods

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

SELECT examples

Retrieves the details of all RouteTables.

SELECT
id,
name,
associated_connections,
etag,
labels,
propagating_connections,
provisioning_state,
resourceGroupName,
routeTableName,
routes,
subscriptionId,
type,
virtualHubName
FROM azure.network.vw_hub_route_tables
WHERE resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}'
AND virtualHubName = '{{ virtualHubName }}';

INSERT example

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

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

DELETE example

Deletes the specified hub_route_tables resource.

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