Skip to main content

route_tables

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

Overview

Nameroute_tables
TypeResource
Idazure.network.route_tables

Fields

The following fields are returned by SELECT queries:

Request successful. The operation returns the resulting RouteTable resource.

NameDatatypeDescription
idstring (arm-id)Fully qualified resource ID for the resource. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}"
namestringThe name of the resource
etagstringA unique read-only string that changes whenever the resource is updated.
propertiesobjectProperties of the route table.
systemDataobjectAzure Resource Manager metadata containing createdBy and modifiedBy information.
typestringThe type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectresourceGroupName, routeTableName, subscriptionId$expandGets the specified route table.
listselectresourceGroupName, subscriptionIdGets all route tables in a resource group.
list_allselectsubscriptionIdGets all route tables in a subscription.
create_or_updateinsertresourceGroupName, routeTableName, subscriptionIdCreate or updates a route table in a specified resource group.
deletedeleteresourceGroupName, routeTableName, subscriptionIdDeletes the specified route table.
update_tagsexecresourceGroupName, routeTableName, subscriptionIdUpdates a route table tags.

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

SELECT examples

Gets the specified route table.

SELECT
id,
name,
etag,
properties,
systemData,
type
FROM azure.network.route_tables
WHERE resourceGroupName = '{{ resourceGroupName }}' -- required
AND routeTableName = '{{ routeTableName }}' -- required
AND subscriptionId = '{{ subscriptionId }}' -- required
AND $expand = '{{ $expand }}'
;

INSERT examples

Create or updates a route table in a specified resource group.

INSERT INTO azure.network.route_tables (
data__properties,
resourceGroupName,
routeTableName,
subscriptionId
)
SELECT
'{{ properties }}',
'{{ resourceGroupName }}',
'{{ routeTableName }}',
'{{ subscriptionId }}'
RETURNING
id,
name,
etag,
properties,
systemData,
type
;

DELETE examples

Deletes the specified route table.

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

Lifecycle Methods

Updates a route table tags.

EXEC azure.network.route_tables.update_tags 
@resourceGroupName='{{ resourceGroupName }}' --required,
@routeTableName='{{ routeTableName }}' --required,
@subscriptionId='{{ subscriptionId }}' --required
@@json=
'{
"tags": "{{ tags }}"
}'
;