route_maps
Creates, updates, deletes, gets or lists a route_maps
resource.
Overview
Name | route_maps |
Type | Resource |
Id | azure.network.route_maps |
Fields
- vw_route_maps
- route_maps
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_inbound_connections | text | field from the properties object |
associated_outbound_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 |
routeMapName | text | field from the properties object |
rules | 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 | Properties of RouteMap resource |
type | string | Resource type. |
Methods
Name | Accessible by | Required Params | Description |
---|---|---|---|
get | SELECT | resourceGroupName, routeMapName, subscriptionId, virtualHubName | Retrieves the details of a RouteMap. |
list | SELECT | resourceGroupName, subscriptionId, virtualHubName | Retrieves the details of all RouteMaps. |
create_or_update | INSERT | resourceGroupName, routeMapName, subscriptionId, virtualHubName | Creates a RouteMap if it doesn't exist else updates the existing one. |
delete | DELETE | resourceGroupName, routeMapName, subscriptionId, virtualHubName | Deletes a RouteMap. |
SELECT
examples
Retrieves the details of all RouteMaps.
- vw_route_maps
- route_maps
SELECT
id,
name,
associated_inbound_connections,
associated_outbound_connections,
etag,
provisioning_state,
resourceGroupName,
routeMapName,
rules,
subscriptionId,
type,
virtualHubName
FROM azure.network.vw_route_maps
WHERE resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}'
AND virtualHubName = '{{ virtualHubName }}';
SELECT
id,
name,
etag,
properties,
type
FROM azure.network.route_maps
WHERE resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}'
AND virtualHubName = '{{ virtualHubName }}';
INSERT
example
Use the following StackQL query and manifest file to create a new route_maps
resource.
- All Properties
- Manifest
/*+ create */
INSERT INTO azure.network.route_maps (
resourceGroupName,
routeMapName,
subscriptionId,
virtualHubName,
properties,
id
)
SELECT
'{{ resourceGroupName }}',
'{{ routeMapName }}',
'{{ subscriptionId }}',
'{{ virtualHubName }}',
'{{ properties }}',
'{{ id }}'
;
- name: your_resource_model_name
props:
- name: properties
value:
- name: associatedInboundConnections
value:
- string
- name: associatedOutboundConnections
value:
- string
- name: rules
value:
- - name: name
value: string
- name: matchCriteria
value:
- - name: routePrefix
value:
- string
- name: community
value:
- string
- name: asPath
value:
- string
- name: matchCondition
value: []
- name: actions
value:
- - name: type
value: []
- name: parameters
value:
- - name: routePrefix
value:
- string
- name: community
value:
- string
- name: asPath
value:
- string
- name: nextStepIfMatched
value: []
- name: provisioningState
value: []
- name: name
value: string
- name: etag
value: string
- name: type
value: string
- name: id
value: string
DELETE
example
Deletes the specified route_maps
resource.
/*+ delete */
DELETE FROM azure.network.route_maps
WHERE resourceGroupName = '{{ resourceGroupName }}'
AND routeMapName = '{{ routeMapName }}'
AND subscriptionId = '{{ subscriptionId }}'
AND virtualHubName = '{{ virtualHubName }}';