virtual_hub_route_table_v2
Creates, updates, deletes, gets or lists a virtual_hub_route_table_v2
resource.
Overview
Name | virtual_hub_route_table_v2 |
Type | Resource |
Id | azure.network.virtual_hub_route_table_v2 |
Fields
- vw_virtual_hub_route_table_v2
- virtual_hub_route_table_v2
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. |
attached_connections | text | field from the properties object |
etag | text | A unique read-only string that changes whenever the resource is updated. |
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 |
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 VirtualHubRouteTableV2. |
Methods
Name | Accessible by | Required Params | Description |
---|---|---|---|
get | SELECT | resourceGroupName, routeTableName, subscriptionId, virtualHubName | Retrieves the details of a VirtualHubRouteTableV2. |
list | SELECT | resourceGroupName, subscriptionId, virtualHubName | Retrieves the details of all VirtualHubRouteTableV2s. |
create_or_update | INSERT | resourceGroupName, routeTableName, subscriptionId, virtualHubName | Creates a VirtualHubRouteTableV2 resource if it doesn't exist else updates the existing VirtualHubRouteTableV2. |
delete | DELETE | resourceGroupName, routeTableName, subscriptionId, virtualHubName | Deletes a VirtualHubRouteTableV2. |
SELECT
examples
Retrieves the details of all VirtualHubRouteTableV2s.
- vw_virtual_hub_route_table_v2
- virtual_hub_route_table_v2
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 }}';
SELECT
id,
name,
etag,
properties
FROM azure.network.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.
- All Properties
- Manifest
/*+ 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 }}'
;
- name: your_resource_model_name
props:
- name: properties
value:
- name: routes
value:
- - name: destinationType
value: string
- name: destinations
value:
- string
- name: nextHopType
value: string
- name: nextHops
value:
- string
- name: attachedConnections
value:
- string
- name: provisioningState
value: []
- name: name
value: string
- name: etag
value: string
- name: id
value: string
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 }}';