Skip to main content

route_maps

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

Overview

Nameroute_maps
TypeResource
Idazure.network.route_maps

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_inbound_connectionstextfield from the properties object
associated_outbound_connectionstextfield from the properties object
etagtextA unique read-only string that changes whenever the resource is updated.
provisioning_statetextfield from the properties object
resourceGroupNametextfield from the properties object
routeMapNametextfield from the properties object
rulestextfield from the properties object
subscriptionIdtextfield from the properties object
typetextResource type.
virtualHubNametextfield from the properties object

Methods

NameAccessible byRequired ParamsDescription
getSELECTresourceGroupName, routeMapName, subscriptionId, virtualHubNameRetrieves the details of a RouteMap.
listSELECTresourceGroupName, subscriptionId, virtualHubNameRetrieves the details of all RouteMaps.
create_or_updateINSERTresourceGroupName, routeMapName, subscriptionId, virtualHubNameCreates a RouteMap if it doesn't exist else updates the existing one.
deleteDELETEresourceGroupName, routeMapName, subscriptionId, virtualHubNameDeletes a RouteMap.

SELECT examples

Retrieves the details of all RouteMaps.

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 }}';

INSERT example

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

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

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 }}';