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

The following fields are returned by SELECT queries:

Request successful. Returns the details of the RouteMap retrieved.

NameDatatypeDescription
idstringResource ID.
namestringThe name of the resource that is unique within a resource group. This name can be used to access the resource.
etagstringA unique read-only string that changes whenever the resource is updated.
propertiesobjectProperties of the RouteMap resource.
typestringResource type.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectsubscriptionId, resourceGroupName, virtualHubName, routeMapNameRetrieves the details of a RouteMap.
listselectsubscriptionId, resourceGroupName, virtualHubNameRetrieves the details of all RouteMaps.
create_or_updateinsertsubscriptionId, resourceGroupName, virtualHubName, routeMapNameCreates a RouteMap if it doesn't exist else updates the existing one.
deletedeletesubscriptionId, resourceGroupName, virtualHubName, routeMapNameDeletes a RouteMap.

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
resourceGroupNamestringThe resource group name of the RouteMap's resource group.
routeMapNamestringThe name of the RouteMap.
subscriptionIdstring (uuid)The ID of the target subscription. The value must be an UUID.
virtualHubNamestringThe name of the VirtualHub containing the RouteMap.

SELECT examples

Retrieves the details of a RouteMap.

SELECT
id,
name,
etag,
properties,
type
FROM azure.network.route_maps
WHERE subscriptionId = '{{ subscriptionId }}' -- required
AND resourceGroupName = '{{ resourceGroupName }}' -- required
AND virtualHubName = '{{ virtualHubName }}' -- required
AND routeMapName = '{{ routeMapName }}' -- required
;

INSERT examples

Creates a RouteMap if it doesn't exist else updates the existing one.

INSERT INTO azure.network.route_maps (
data__properties,
data__id,
subscriptionId,
resourceGroupName,
virtualHubName,
routeMapName
)
SELECT
'{{ properties }}',
'{{ id }}',
'{{ subscriptionId }}',
'{{ resourceGroupName }}',
'{{ virtualHubName }}',
'{{ routeMapName }}'
RETURNING
id,
name,
etag,
properties,
type
;

DELETE examples

Deletes a RouteMap.

DELETE FROM azure.network.route_maps
WHERE subscriptionId = '{{ subscriptionId }}' --required
AND resourceGroupName = '{{ resourceGroupName }}' --required
AND virtualHubName = '{{ virtualHubName }}' --required
AND routeMapName = '{{ routeMapName }}' --required
;