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

The following fields are returned by SELECT queries:

NameDatatypeDescription
idstringResource ID.
namestringName of the resource.
associatedConnectionsarrayList of all connections associated with this route table.
etagstringA unique read-only string that changes whenever the resource is updated.
labelsarrayList of labels associated with this route table.
propagatingConnectionsarrayList of all connections that advertise to this route table.
provisioningStatestringThe provisioning state of the RouteTable resource. Known values are: "Failed", "Succeeded", "Canceled", "Creating", "Updating", and "Deleting". (Failed, Succeeded, Canceled, Creating, Updating, Deleting)
routesarrayList of all routes.
typestringResource type.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectresource_group_name, virtual_hub_name, route_table_name, subscription_idRetrieves the details of a RouteTable.
listselectresource_group_name, virtual_hub_name, subscription_idRetrieves the details of all RouteTables.
create_or_updateinsertresource_group_name, virtual_hub_name, route_table_name, subscription_idCreates a RouteTable resource if it doesn't exist else updates the existing RouteTable.
create_or_updatereplaceresource_group_name, virtual_hub_name, route_table_name, subscription_idCreates a RouteTable resource if it doesn't exist else updates the existing RouteTable.
deletedeleteresource_group_name, virtual_hub_name, route_table_name, subscription_idDeletes a RouteTable.

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
resource_group_namestringThe name of the resource group. The name is case insensitive. Required.
route_table_namestringThe name of the resource that is unique within a resource group. This name can be used to access the resource. Required.
subscription_idstring
virtual_hub_namestringThe name of the VirtualHub. Required.

SELECT examples

Retrieves the details of a RouteTable.

SELECT
id,
name,
associatedConnections,
etag,
labels,
propagatingConnections,
provisioningState,
routes,
type
FROM azure.network.hub_route_tables
WHERE resource_group_name = '{{ resource_group_name }}' -- required
AND virtual_hub_name = '{{ virtual_hub_name }}' -- required
AND route_table_name = '{{ route_table_name }}' -- required
AND subscription_id = '{{ subscription_id }}' -- required
;

INSERT examples

Creates a RouteTable resource if it doesn't exist else updates the existing RouteTable.

INSERT INTO azure.network.hub_route_tables (
id,
name,
properties,
resource_group_name,
virtual_hub_name,
route_table_name,
subscription_id
)
SELECT
'{{ id }}',
'{{ name }}',
'{{ properties }}',
'{{ resource_group_name }}',
'{{ virtual_hub_name }}',
'{{ route_table_name }}',
'{{ subscription_id }}'
RETURNING
id,
name,
etag,
properties,
type
;

REPLACE examples

Creates a RouteTable resource if it doesn't exist else updates the existing RouteTable.

REPLACE azure.network.hub_route_tables
SET
id = '{{ id }}',
name = '{{ name }}',
properties = '{{ properties }}'
WHERE
resource_group_name = '{{ resource_group_name }}' --required
AND virtual_hub_name = '{{ virtual_hub_name }}' --required
AND route_table_name = '{{ route_table_name }}' --required
AND subscription_id = '{{ subscription_id }}' --required
RETURNING
id,
name,
etag,
properties,
type;

DELETE examples

Deletes a RouteTable.

DELETE FROM azure.network.hub_route_tables
WHERE resource_group_name = '{{ resource_group_name }}' --required
AND virtual_hub_name = '{{ virtual_hub_name }}' --required
AND route_table_name = '{{ route_table_name }}' --required
AND subscription_id = '{{ subscription_id }}' --required
;