Skip to main content

routes

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

Overview

Nameroutes
TypeResource
Idazure.network.routes

Fields

The following fields are returned by SELECT queries:

Request successful. The operation returns the resulting Route resource.

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 route.
typestringThe type of the resource.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectresourceGroupName, routeTableName, routeName, subscriptionIdGets the specified route from a route table.
listselectresourceGroupName, routeTableName, subscriptionIdGets all routes in a route table.
create_or_updateinsertresourceGroupName, routeTableName, routeName, subscriptionIdCreates or updates a route in the specified route table.
deletedeleteresourceGroupName, routeTableName, routeName, subscriptionIdDeletes the specified route from a route table.

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 name of the resource group.
routeNamestringThe name of the route.
routeTableNamestringThe name of the route table.
subscriptionIdstring (uuid)The ID of the target subscription. The value must be an UUID.

SELECT examples

Gets the specified route from a route table.

SELECT
id,
name,
etag,
properties,
type
FROM azure.network.routes
WHERE resourceGroupName = '{{ resourceGroupName }}' -- required
AND routeTableName = '{{ routeTableName }}' -- required
AND routeName = '{{ routeName }}' -- required
AND subscriptionId = '{{ subscriptionId }}' -- required
;

INSERT examples

Creates or updates a route in the specified route table.

INSERT INTO azure.network.routes (
data__properties,
data__name,
data__type,
data__id,
resourceGroupName,
routeTableName,
routeName,
subscriptionId
)
SELECT
'{{ properties }}',
'{{ name }}',
'{{ type }}',
'{{ id }}',
'{{ resourceGroupName }}',
'{{ routeTableName }}',
'{{ routeName }}',
'{{ subscriptionId }}'
RETURNING
id,
name,
etag,
properties,
type
;

DELETE examples

Deletes the specified route from a route table.

DELETE FROM azure.network.routes
WHERE resourceGroupName = '{{ resourceGroupName }}' --required
AND routeTableName = '{{ routeTableName }}' --required
AND routeName = '{{ routeName }}' --required
AND subscriptionId = '{{ subscriptionId }}' --required
;