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

The following fields are returned by SELECT queries:

NameDatatypeDescription
idstringResource ID.
namestringThe name of the resource that is unique within a resource group. This name can be used to access the resource.
accessstringThe access type of the rule. Required. Known values are: "Allow" and "Deny". (Allow, Deny)
communitiesarrayThe collection for bgp community values to filter on. e.g. ['12076:5010','12076:5020']. Required.
etagstringA unique read-only string that changes whenever the resource is updated.
locationstringResource location.
provisioningStatestringThe provisioning state of the route filter rule resource. Known values are: "Failed", "Succeeded", "Canceled", "Creating", "Updating", and "Deleting". (Failed, Succeeded, Canceled, Creating, Updating, Deleting)
routeFilterRuleTypestringThe rule type of the rule. Required. "Community" (Community)

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectresource_group_name, route_filter_name, rule_name, subscription_idGets the specified rule from a route filter.
list_by_route_filterselectresource_group_name, route_filter_name, subscription_idGets all RouteFilterRules in a route filter.
create_or_updateinsertresource_group_name, route_filter_name, rule_name, subscription_idCreates or updates a route in the specified route filter.
create_or_updatereplaceresource_group_name, route_filter_name, rule_name, subscription_idCreates or updates a route in the specified route filter.
deletedeleteresource_group_name, route_filter_name, rule_name, subscription_idDeletes the specified rule from a route filter.

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_filter_namestringThe name of the route filter. Required.
rule_namestringThe name of the route filter rule. Required.
subscription_idstring

SELECT examples

Gets the specified rule from a route filter.

SELECT
id,
name,
access,
communities,
etag,
location,
provisioningState,
routeFilterRuleType
FROM azure.network.route_filter_rules
WHERE resource_group_name = '{{ resource_group_name }}' -- required
AND route_filter_name = '{{ route_filter_name }}' -- required
AND rule_name = '{{ rule_name }}' -- required
AND subscription_id = '{{ subscription_id }}' -- required
;

INSERT examples

Creates or updates a route in the specified route filter.

INSERT INTO azure.network.route_filter_rules (
id,
properties,
name,
location,
resource_group_name,
route_filter_name,
rule_name,
subscription_id
)
SELECT
'{{ id }}',
'{{ properties }}',
'{{ name }}',
'{{ location }}',
'{{ resource_group_name }}',
'{{ route_filter_name }}',
'{{ rule_name }}',
'{{ subscription_id }}'
RETURNING
id,
name,
etag,
location,
properties
;

REPLACE examples

Creates or updates a route in the specified route filter.

REPLACE azure.network.route_filter_rules
SET
id = '{{ id }}',
properties = '{{ properties }}',
name = '{{ name }}',
location = '{{ location }}'
WHERE
resource_group_name = '{{ resource_group_name }}' --required
AND route_filter_name = '{{ route_filter_name }}' --required
AND rule_name = '{{ rule_name }}' --required
AND subscription_id = '{{ subscription_id }}' --required
RETURNING
id,
name,
etag,
location,
properties;

DELETE examples

Deletes the specified rule from a route filter.

DELETE FROM azure.network.route_filter_rules
WHERE resource_group_name = '{{ resource_group_name }}' --required
AND route_filter_name = '{{ route_filter_name }}' --required
AND rule_name = '{{ rule_name }}' --required
AND subscription_id = '{{ subscription_id }}' --required
;