Route Filters - Update Tags

Updates tags of a route filter.

PATCH https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/routeFilters/{routeFilterName}?api-version=2023-09-01

URI Parameters

Name In Required Type Description
resourceGroupName
path True

string

The name of the resource group.

routeFilterName
path True

string

The name of the route filter.

subscriptionId
path True

string

The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.

api-version
query True

string

Client API version.

Request Body

Name Type Description
tags

object

Resource tags.

Responses

Name Type Description
200 OK

RouteFilter

Request successful. The operation returns the resulting Route Filter resource.

Other Status Codes

CloudError

Error response describing why the operation failed.

Security

azure_auth

Azure Active Directory OAuth2 Flow.

Type: oauth2
Flow: implicit
Authorization URL: https://login.microsoftonline.com/common/oauth2/authorize

Scopes

Name Description
user_impersonation impersonate your user account

Examples

Update route filter tags

Sample Request

PATCH https://management.azure.com/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/routeFilters/filterName?api-version=2023-09-01

{
  "tags": {
    "key1": "value1"
  }
}

Sample Response

{
  "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/routeFilters/filterName",
  "etag": "w/\\00000000-0000-0000-0000-000000000000\\",
  "location": "West US",
  "name": "filterName",
  "type": "Microsoft.Network/routeFilters",
  "tags": {
    "key1": "value1"
  },
  "properties": {
    "provisioningState": "Succeeded",
    "rules": [
      {
        "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/routeFilters/filterName/routeFilterRules/ruleName",
        "etag": "w/\\00000000-0000-0000-0000-000000000000\\",
        "name": "ruleName",
        "properties": {
          "provisioningState": "Succeeded",
          "access": "Allow",
          "routeFilterRuleType": "Community",
          "communities": [
            "12076:5030"
          ]
        }
      }
    ],
    "peerings": []
  }
}

Definitions

Name Description
Access

Access to be allowed or denied.

CircuitConnectionStatus

Express Route Circuit connection state.

CloudError

An error response from the service.

CloudErrorBody

An error response from the service.

ExpressRouteCircuitConnection

Express Route Circuit Connection in an ExpressRouteCircuitPeering resource.

ExpressRouteCircuitPeering

Peering in an ExpressRouteCircuit resource.

ExpressRouteCircuitPeeringAdvertisedPublicPrefixState

The advertised public prefix state of the Peering resource.

ExpressRouteCircuitPeeringConfig

Specifies the peering configuration.

ExpressRouteCircuitPeeringState

The state of peering.

ExpressRouteCircuitStats

Contains stats associated with the peering.

ExpressRouteConnectionId

The ID of the ExpressRouteConnection.

ExpressRoutePeeringState

The state of peering.

ExpressRoutePeeringType

The peering type.

Ipv6CircuitConnectionConfig

IPv6 Circuit Connection properties for global reach.

Ipv6ExpressRouteCircuitPeeringConfig

Contains IPv6 peering config.

PeerExpressRouteCircuitConnection

Peer Express Route Circuit Connection in an ExpressRouteCircuitPeering resource.

ProvisioningState

The current provisioning state.

RouteFilter

Route Filter Resource.

RouteFilterRule

Route Filter Rule Resource.

RouteFilterRuleType

The rule type of the rule.

SubResource

Reference to another subresource.

TagsObject

Tags object for patch operations.

Access

Access to be allowed or denied.

Name Type Description
Allow

string

Deny

string

CircuitConnectionStatus

Express Route Circuit connection state.

Name Type Description
Connected

string

Connecting

string

Disconnected

string

CloudError

An error response from the service.

Name Type Description
error

CloudErrorBody

Cloud error body.

CloudErrorBody

An error response from the service.

Name Type Description
code

string

An identifier for the error. Codes are invariant and are intended to be consumed programmatically.

details

CloudErrorBody[]

A list of additional details about the error.

message

string

A message describing the error, intended to be suitable for display in a user interface.

target

string

The target of the particular error. For example, the name of the property in error.

ExpressRouteCircuitConnection

Express Route Circuit Connection in an ExpressRouteCircuitPeering resource.

Name Type Description
etag

string

A unique read-only string that changes whenever the resource is updated.

id

string

Resource ID.

name

string

The name of the resource that is unique within a resource group. This name can be used to access the resource.

properties.addressPrefix

string

/29 IP address space to carve out Customer addresses for tunnels.

properties.authorizationKey

string

The authorization key.

properties.circuitConnectionStatus

CircuitConnectionStatus

Express Route Circuit connection state.

properties.expressRouteCircuitPeering

SubResource

Reference to Express Route Circuit Private Peering Resource of the circuit initiating connection.

properties.ipv6CircuitConnectionConfig

Ipv6CircuitConnectionConfig

IPv6 Address PrefixProperties of the express route circuit connection.

properties.peerExpressRouteCircuitPeering

SubResource

Reference to Express Route Circuit Private Peering Resource of the peered circuit.

properties.provisioningState

ProvisioningState

The provisioning state of the express route circuit connection resource.

type

string

Type of the resource.

ExpressRouteCircuitPeering

Peering in an ExpressRouteCircuit resource.

Name Type Description
etag

string

A unique read-only string that changes whenever the resource is updated.

id

string

Resource ID.

name

string

The name of the resource that is unique within a resource group. This name can be used to access the resource.

properties.azureASN

integer

The Azure ASN.

properties.connections

ExpressRouteCircuitConnection[]

The list of circuit connections associated with Azure Private Peering for this circuit.

properties.expressRouteConnection

ExpressRouteConnectionId

The ExpressRoute connection.

properties.gatewayManagerEtag

string

The GatewayManager Etag.

properties.ipv6PeeringConfig

Ipv6ExpressRouteCircuitPeeringConfig

The IPv6 peering configuration.

properties.lastModifiedBy

string

Who was the last to modify the peering.

properties.microsoftPeeringConfig

ExpressRouteCircuitPeeringConfig

The Microsoft peering configuration.

properties.peerASN

integer

The peer ASN.

properties.peeredConnections

PeerExpressRouteCircuitConnection[]

The list of peered circuit connections associated with Azure Private Peering for this circuit.

properties.peeringType

ExpressRoutePeeringType

The peering type.

properties.primaryAzurePort

string

The primary port.

properties.primaryPeerAddressPrefix

string

The primary address prefix.

properties.provisioningState

ProvisioningState

The provisioning state of the express route circuit peering resource.

properties.routeFilter

SubResource

The reference to the RouteFilter resource.

properties.secondaryAzurePort

string

The secondary port.

properties.secondaryPeerAddressPrefix

string

The secondary address prefix.

properties.sharedKey

string

The shared key.

properties.state

ExpressRoutePeeringState

The peering state.

properties.stats

ExpressRouteCircuitStats

The peering stats of express route circuit.

properties.vlanId

integer

The VLAN ID.

type

string

Type of the resource.

ExpressRouteCircuitPeeringAdvertisedPublicPrefixState

The advertised public prefix state of the Peering resource.

Name Type Description
Configured

string

Configuring

string

NotConfigured

string

ValidationNeeded

string

ExpressRouteCircuitPeeringConfig

Specifies the peering configuration.

Name Type Description
advertisedCommunities

string[]

The communities of bgp peering. Specified for microsoft peering.

advertisedPublicPrefixes

string[]

The reference to AdvertisedPublicPrefixes.

advertisedPublicPrefixesState

ExpressRouteCircuitPeeringAdvertisedPublicPrefixState

The advertised public prefix state of the Peering resource.

customerASN

integer

The CustomerASN of the peering.

legacyMode

integer

The legacy mode of the peering.

routingRegistryName

string

The RoutingRegistryName of the configuration.

ExpressRouteCircuitPeeringState

The state of peering.

Name Type Description
Disabled

string

Enabled

string

ExpressRouteCircuitStats

Contains stats associated with the peering.

Name Type Description
primarybytesIn

integer

The Primary BytesIn of the peering.

primarybytesOut

integer

The primary BytesOut of the peering.

secondarybytesIn

integer

The secondary BytesIn of the peering.

secondarybytesOut

integer

The secondary BytesOut of the peering.

ExpressRouteConnectionId

The ID of the ExpressRouteConnection.

Name Type Description
id

string

The ID of the ExpressRouteConnection.

ExpressRoutePeeringState

The state of peering.

Name Type Description
Disabled

string

Enabled

string

ExpressRoutePeeringType

The peering type.

Name Type Description
AzurePrivatePeering

string

AzurePublicPeering

string

MicrosoftPeering

string

Ipv6CircuitConnectionConfig

IPv6 Circuit Connection properties for global reach.

Name Type Description
addressPrefix

string

/125 IP address space to carve out customer addresses for global reach.

circuitConnectionStatus

CircuitConnectionStatus

Express Route Circuit connection state.

Ipv6ExpressRouteCircuitPeeringConfig

Contains IPv6 peering config.

Name Type Description
microsoftPeeringConfig

ExpressRouteCircuitPeeringConfig

The Microsoft peering configuration.

primaryPeerAddressPrefix

string

The primary address prefix.

routeFilter

SubResource

The reference to the RouteFilter resource.

secondaryPeerAddressPrefix

string

The secondary address prefix.

state

ExpressRouteCircuitPeeringState

The state of peering.

PeerExpressRouteCircuitConnection

Peer Express Route Circuit Connection in an ExpressRouteCircuitPeering resource.

Name Type Description
etag

string

A unique read-only string that changes whenever the resource is updated.

id

string

Resource ID.

name

string

The name of the resource that is unique within a resource group. This name can be used to access the resource.

properties.addressPrefix

string

/29 IP address space to carve out Customer addresses for tunnels.

properties.authResourceGuid

string

The resource guid of the authorization used for the express route circuit connection.

properties.circuitConnectionStatus

CircuitConnectionStatus

Express Route Circuit connection state.

properties.connectionName

string

The name of the express route circuit connection resource.

properties.expressRouteCircuitPeering

SubResource

Reference to Express Route Circuit Private Peering Resource of the circuit.

properties.peerExpressRouteCircuitPeering

SubResource

Reference to Express Route Circuit Private Peering Resource of the peered circuit.

properties.provisioningState

ProvisioningState

The provisioning state of the peer express route circuit connection resource.

type

string

Type of the resource.

ProvisioningState

The current provisioning state.

Name Type Description
Deleting

string

Failed

string

Succeeded

string

Updating

string

RouteFilter

Route Filter Resource.

Name Type Description
etag

string

A unique read-only string that changes whenever the resource is updated.

id

string

Resource ID.

location

string

Resource location.

name

string

Resource name.

properties.ipv6Peerings

ExpressRouteCircuitPeering[]

A collection of references to express route circuit ipv6 peerings.

properties.peerings

ExpressRouteCircuitPeering[]

A collection of references to express route circuit peerings.

properties.provisioningState

ProvisioningState

The provisioning state of the route filter resource.

properties.rules

RouteFilterRule[]

Collection of RouteFilterRules contained within a route filter.

tags

object

Resource tags.

type

string

Resource type.

RouteFilterRule

Route Filter Rule Resource.

Name Type Description
etag

string

A unique read-only string that changes whenever the resource is updated.

id

string

Resource ID.

location

string

Resource location.

name

string

The name of the resource that is unique within a resource group. This name can be used to access the resource.

properties.access

Access

The access type of the rule.

properties.communities

string[]

The collection for bgp community values to filter on. e.g. ['12076:5010','12076:5020'].

properties.provisioningState

ProvisioningState

The provisioning state of the route filter rule resource.

properties.routeFilterRuleType

RouteFilterRuleType

The rule type of the rule.

RouteFilterRuleType

The rule type of the rule.

Name Type Description
Community

string

SubResource

Reference to another subresource.

Name Type Description
id

string

Resource ID.

TagsObject

Tags object for patch operations.

Name Type Description
tags

object

Resource tags.