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

NameDatatypeDescription
idtextResource ID.
nametextResource name.
disable_bgp_route_propagationtextfield from the properties object
etagtextA unique read-only string that changes whenever the resource is updated.
locationtextResource location.
provisioning_statetextfield from the properties object
resourceGroupNametextfield from the properties object
resource_guidtextfield from the properties object
routeTableNametextfield from the properties object
routestextfield from the properties object
subnetstextfield from the properties object
subscriptionIdtextfield from the properties object
tagstextResource tags.
typetextResource type.

Methods

NameAccessible byRequired ParamsDescription
getSELECTresourceGroupName, routeTableName, subscriptionIdGets 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.

SELECT examples

Gets all route tables in a subscription.

SELECT
id,
name,
disable_bgp_route_propagation,
etag,
location,
provisioning_state,
resourceGroupName,
resource_guid,
routeTableName,
routes,
subnets,
subscriptionId,
tags,
type
FROM azure.network.vw_route_tables
WHERE subscriptionId = '{{ subscriptionId }}';

INSERT example

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

/*+ create */
INSERT INTO azure.network.route_tables (
resourceGroupName,
routeTableName,
subscriptionId,
properties,
id,
location,
tags
)
SELECT
'{{ resourceGroupName }}',
'{{ routeTableName }}',
'{{ subscriptionId }}',
'{{ properties }}',
'{{ id }}',
'{{ location }}',
'{{ tags }}'
;

DELETE example

Deletes the specified route_tables resource.

/*+ delete */
DELETE FROM azure.network.route_tables
WHERE resourceGroupName = '{{ resourceGroupName }}'
AND routeTableName = '{{ routeTableName }}'
AND subscriptionId = '{{ subscriptionId }}';