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:

NameDatatypeDescription
idstringResource ID.
namestringResource name.
disableBgpRoutePropagationbooleanWhether to disable the routes learned by BGP on that route table. True means disable.
disablePeeringRoutestringWhether to disable the routes learned by peering on the route table. 'None' means peering routes are enabled, 'All' means all peering routes are disabled. Known values are: "None" and "All". (None, All)
etagstringA unique read-only string that changes whenever the resource is updated.
locationstringResource location.
provisioningStatestringThe provisioning state of the route table resource. Known values are: "Failed", "Succeeded", "Canceled", "Creating", "Updating", and "Deleting". (Failed, Succeeded, Canceled, Creating, Updating, Deleting)
resourceGuidstringThe resource GUID property of the route table.
routesarrayCollection of routes contained within a route table.
subnetsarrayA collection of references to subnets.
tagsobjectResource tags.
typestringResource type.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectresource_group_name, route_table_name, subscription_id$expandGets the specified route table.
listselectresource_group_name, subscription_idGets all route tables in a resource group.
list_allselectsubscription_idGets all route tables in a subscription.
create_or_updateinsertresource_group_name, route_table_name, subscription_idCreate or updates a route table in a specified resource group.
update_tagsupdateresource_group_name, route_table_name, subscription_idUpdates a route table tags.
create_or_updatereplaceresource_group_name, route_table_name, subscription_idCreate or updates a route table in a specified resource group.
deletedeleteresource_group_name, route_table_name, subscription_idDeletes the specified 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
resource_group_namestringThe name of the resource group. The name is case insensitive. Required.
route_table_namestringThe name of the route table. Required.
subscription_idstring
$expandstringExpands referenced resources. Default value is None.

SELECT examples

Gets the specified route table.

SELECT
id,
name,
disableBgpRoutePropagation,
disablePeeringRoute,
etag,
location,
provisioningState,
resourceGuid,
routes,
subnets,
tags,
type
FROM azure.network.route_tables
WHERE resource_group_name = '{{ resource_group_name }}' -- required
AND route_table_name = '{{ route_table_name }}' -- required
AND subscription_id = '{{ subscription_id }}' -- required
AND $expand = '{{ $expand }}'
;

INSERT examples

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

INSERT INTO azure.network.route_tables (
id,
location,
tags,
properties,
resource_group_name,
route_table_name,
subscription_id
)
SELECT
'{{ id }}',
'{{ location }}',
'{{ tags }}',
'{{ properties }}',
'{{ resource_group_name }}',
'{{ route_table_name }}',
'{{ subscription_id }}'
RETURNING
id,
name,
etag,
location,
properties,
tags,
type
;

UPDATE examples

Updates a route table tags.

UPDATE azure.network.route_tables
SET
tags = '{{ tags }}'
WHERE
resource_group_name = '{{ resource_group_name }}' --required
AND route_table_name = '{{ route_table_name }}' --required
AND subscription_id = '{{ subscription_id }}' --required
RETURNING
id,
name,
etag,
location,
properties,
tags,
type;

REPLACE examples

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

REPLACE azure.network.route_tables
SET
id = '{{ id }}',
location = '{{ location }}',
tags = '{{ tags }}',
properties = '{{ properties }}'
WHERE
resource_group_name = '{{ resource_group_name }}' --required
AND route_table_name = '{{ route_table_name }}' --required
AND subscription_id = '{{ subscription_id }}' --required
RETURNING
id,
name,
etag,
location,
properties,
tags,
type;

DELETE examples

Deletes the specified route table.

DELETE FROM azure.network.route_tables
WHERE resource_group_name = '{{ resource_group_name }}' --required
AND route_table_name = '{{ route_table_name }}' --required
AND subscription_id = '{{ subscription_id }}' --required
;