hub_route_tables
Creates, updates, deletes, gets or lists a hub_route_tables
resource.
Overview
Name | hub_route_tables |
Type | Resource |
Id | azure.network.hub_route_tables |
Fields
- vw_hub_route_tables
- hub_route_tables
Name | Datatype | Description |
---|---|---|
id | text | Resource ID. |
name | text | The name of the resource that is unique within a resource group. This name can be used to access the resource. |
associated_connections | text | field from the properties object |
etag | text | A unique read-only string that changes whenever the resource is updated. |
labels | text | field from the properties object |
propagating_connections | text | field from the properties object |
provisioning_state | text | field from the properties object |
resourceGroupName | text | field from the properties object |
routeTableName | text | field from the properties object |
routes | text | field from the properties object |
subscriptionId | text | field from the properties object |
type | text | Resource type. |
virtualHubName | text | field from the properties object |
Name | Datatype | Description |
---|---|---|
id | string | Resource ID. |
name | string | The name of the resource that is unique within a resource group. This name can be used to access the resource. |
etag | string | A unique read-only string that changes whenever the resource is updated. |
properties | object | Parameters for RouteTable. |
type | string | Resource type. |
Methods
Name | Accessible by | Required Params | Description |
---|---|---|---|
get | SELECT | resourceGroupName, routeTableName, subscriptionId, virtualHubName | Retrieves the details of a RouteTable. |
list | SELECT | resourceGroupName, subscriptionId, virtualHubName | Retrieves the details of all RouteTables. |
create_or_update | INSERT | resourceGroupName, routeTableName, subscriptionId, virtualHubName | Creates a RouteTable resource if it doesn't exist else updates the existing RouteTable. |
delete | DELETE | resourceGroupName, routeTableName, subscriptionId, virtualHubName | Deletes a RouteTable. |
SELECT
examples
Retrieves the details of all RouteTables.
- vw_hub_route_tables
- hub_route_tables
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 }}';
SELECT
id,
name,
etag,
properties,
type
FROM azure.network.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.
- All Properties
- Manifest
/*+ create */
INSERT INTO azure.network.hub_route_tables (
resourceGroupName,
routeTableName,
subscriptionId,
virtualHubName,
properties,
name,
id
)
SELECT
'{{ resourceGroupName }}',
'{{ routeTableName }}',
'{{ subscriptionId }}',
'{{ virtualHubName }}',
'{{ properties }}',
'{{ name }}',
'{{ id }}'
;
- name: your_resource_model_name
props:
- name: properties
value:
- name: routes
value:
- - name: name
value: string
- name: destinationType
value: string
- name: destinations
value:
- string
- name: nextHopType
value: string
- name: nextHop
value: string
- name: labels
value:
- string
- name: associatedConnections
value:
- string
- name: propagatingConnections
value:
- string
- name: provisioningState
value: []
- name: name
value: string
- name: etag
value: string
- name: type
value: string
- name: id
value: string
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 }}';