Skip to main content

route_filters

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

Overview

Nameroute_filters
TypeResource
Idazure.network.route_filters

Fields

NameDatatypeDescription
idtextResource ID.
nametextResource name.
etagtextA unique read-only string that changes whenever the resource is updated.
ipv6_peeringstextfield from the properties object
locationtextResource location.
peeringstextfield from the properties object
provisioning_statetextfield from the properties object
resourceGroupNametextfield from the properties object
routeFilterNametextfield from the properties object
rulestextfield from the properties object
subscriptionIdtextfield from the properties object
tagstextResource tags.
typetextResource type.

Methods

NameAccessible byRequired ParamsDescription
getSELECTresourceGroupName, routeFilterName, subscriptionIdGets the specified route filter.
listSELECTsubscriptionIdGets all route filters in a subscription.
list_by_resource_groupSELECTresourceGroupName, subscriptionIdGets all route filters in a resource group.
create_or_updateINSERTresourceGroupName, routeFilterName, subscriptionId, data__locationCreates or updates a route filter in a specified resource group.
deleteDELETEresourceGroupName, routeFilterName, subscriptionIdDeletes the specified route filter.
update_tagsEXECresourceGroupName, routeFilterName, subscriptionIdUpdates tags of a route filter.

SELECT examples

Gets all route filters in a subscription.

SELECT
id,
name,
etag,
ipv6_peerings,
location,
peerings,
provisioning_state,
resourceGroupName,
routeFilterName,
rules,
subscriptionId,
tags,
type
FROM azure.network.vw_route_filters
WHERE subscriptionId = '{{ subscriptionId }}';

INSERT example

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

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

DELETE example

Deletes the specified route_filters resource.

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