Skip to main content

route_filter_rules

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

Overview

Nameroute_filter_rules
TypeResource
Idazure.network.route_filter_rules

Fields

NameDatatypeDescription
idtextResource ID.
nametextThe name of the resource that is unique within a resource group. This name can be used to access the resource.
accesstextfield from the properties object
communitiestextfield 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
routeFilterNametextfield from the properties object
route_filter_rule_typetextfield from the properties object
ruleNametextfield from the properties object
subscriptionIdtextfield from the properties object

Methods

NameAccessible byRequired ParamsDescription
getSELECTresourceGroupName, routeFilterName, ruleName, subscriptionIdGets the specified rule from a route filter.
list_by_route_filterSELECTresourceGroupName, routeFilterName, subscriptionIdGets all RouteFilterRules in a route filter.
create_or_updateINSERTresourceGroupName, routeFilterName, ruleName, subscriptionIdCreates or updates a route in the specified route filter.
deleteDELETEresourceGroupName, routeFilterName, ruleName, subscriptionIdDeletes the specified rule from a route filter.

SELECT examples

Gets all RouteFilterRules in a route filter.

SELECT
id,
name,
access,
communities,
etag,
location,
provisioning_state,
resourceGroupName,
routeFilterName,
route_filter_rule_type,
ruleName,
subscriptionId
FROM azure.network.vw_route_filter_rules
WHERE resourceGroupName = '{{ resourceGroupName }}'
AND routeFilterName = '{{ routeFilterName }}'
AND subscriptionId = '{{ subscriptionId }}';

INSERT example

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

/*+ create */
INSERT INTO azure.network.route_filter_rules (
resourceGroupName,
routeFilterName,
ruleName,
subscriptionId,
properties,
name,
location,
id
)
SELECT
'{{ resourceGroupName }}',
'{{ routeFilterName }}',
'{{ ruleName }}',
'{{ subscriptionId }}',
'{{ properties }}',
'{{ name }}',
'{{ location }}',
'{{ id }}'
;

DELETE example

Deletes the specified route_filter_rules resource.

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