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

The following fields are returned by SELECT queries:

NameDatatypeDescription
idstringResource ID.
namestringResource name.
etagstringA unique read-only string that changes whenever the resource is updated.
ipv6PeeringsarrayA collection of references to express route circuit ipv6 peerings.
locationstringResource location.
peeringsarrayA collection of references to express route circuit peerings.
provisioningStatestringThe provisioning state of the route filter resource. Known values are: "Failed", "Succeeded", "Canceled", "Creating", "Updating", and "Deleting". (Failed, Succeeded, Canceled, Creating, Updating, Deleting)
rulesarrayCollection of RouteFilterRules contained within a route filter.
tagsobjectResource tags.
typestringResource type.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectresource_group_name, route_filter_name, subscription_id$expandGets the specified route filter.
list_by_resource_groupselectresource_group_name, subscription_idGets all route filters in a resource group.
listselectsubscription_idGets all route filters in a subscription.
create_or_updateinsertresource_group_name, route_filter_name, subscription_idCreates or updates a route filter in a specified resource group.
update_tagsupdateresource_group_name, route_filter_name, subscription_idUpdates tags of a route filter.
create_or_updatereplaceresource_group_name, route_filter_name, subscription_idCreates or updates a route filter in a specified resource group.
deletedeleteresource_group_name, route_filter_name, subscription_idDeletes the specified 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.
subscription_idstring
$expandstringExpands referenced express route bgp peering resources. Default value is None.

SELECT examples

Gets the specified route filter.

SELECT
id,
name,
etag,
ipv6Peerings,
location,
peerings,
provisioningState,
rules,
tags,
type
FROM azure.network.route_filters
WHERE resource_group_name = '{{ resource_group_name }}' -- required
AND route_filter_name = '{{ route_filter_name }}' -- required
AND subscription_id = '{{ subscription_id }}' -- required
AND $expand = '{{ $expand }}'
;

INSERT examples

Creates or updates a route filter in a specified resource group.

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

UPDATE examples

Updates tags of a route filter.

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

REPLACE examples

Creates or updates a route filter in a specified resource group.

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

DELETE examples

Deletes the specified route filter.

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