Azure Networking Services Virtual Router Peerings API

The VirtualRouterPeerings API from Azure Networking Services — 2 operation(s) for virtualrouterpeerings.

GitHub OpenAPI

Operations 4

GET /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualRouters/{virtualRouterName}/peerings Virtual router peerings list #
GET /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualRouters/{virtualRouterName}/peerings/{peeringName} Virtual router peerings get #
PUT /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualRouters/{virtualRouterName}/peerings/{peeringName} Virtual router peerings create or update #
DELETE /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualRouters/{virtualRouterName}/peerings/{peeringName} Virtual router peerings delete #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/azure-networking-services:azure-networking-services-virtualrouterpeerings-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

azure-networking-services-virtualrouterpeerings-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: WebApplicationFirewallManagement Virtual Router Peerings API
  version: '2026-03-01'
  description: APIs to manage Microsoft Azure network resources.
  x-typespec-generated:
  - emitter: '@azure-tools/typespec-autorest'
servers:
- url: https://management.azure.com
security:
- azure_auth:
  - user_impersonation
tags:
- name: VirtualRouterPeerings
paths:
  ? /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualRouters/{virtualRouterName}/peerings
  : get:
      operationId: VirtualRouterPeerings_List
      tags:
      - VirtualRouterPeerings
      description: Lists all Virtual Router Peerings in a Virtual Router resource.
      parameters:
      - $ref: '#/components/parameters/ApiVersionParameter'
      - $ref: '#/components/parameters/SubscriptionIdParameter'
      - $ref: '#/components/parameters/ResourceGroupNameParameter'
      - name: virtualRouterName
        in: path
        description: The name of the Virtual Router.
        required: true
        schema:
          type: string
      responses:
        '200':
          description: Azure operation completed successfully.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/VirtualRouterPeeringListResult'
        default:
          description: An unexpected error response.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      x-ms-pageable:
        nextLinkName: nextLink
      summary: Virtual router peerings list
      x-summary-source: derived
  ? /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualRouters/{virtualRouterName}/peerings/{peeringName}
  : get:
      operationId: VirtualRouterPeerings_Get
      tags:
      - VirtualRouterPeerings
      description: Gets the specified Virtual Router Peering.
      parameters:
      - $ref: '#/components/parameters/ApiVersionParameter'
      - $ref: '#/components/parameters/SubscriptionIdParameter'
      - $ref: '#/components/parameters/ResourceGroupNameParameter'
      - name: virtualRouterName
        in: path
        description: The name of the Virtual Router.
        required: true
        schema:
          type: string
      - name: peeringName
        in: path
        description: The name of the resource that is unique within a resource group. This name can be used to access the resource.
        required: true
        schema:
          type: string
      responses:
        '200':
          description: Azure operation completed successfully.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/VirtualRouterPeering'
        default:
          description: An unexpected error response.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      summary: Virtual router peerings get
      x-summary-source: derived
    put:
      operationId: VirtualRouterPeerings_CreateOrUpdate
      tags:
      - VirtualRouterPeerings
      description: Creates or updates the specified Virtual Router Peering.
      parameters:
      - $ref: '#/components/parameters/ApiVersionParameter'
      - $ref: '#/components/parameters/SubscriptionIdParameter'
      - $ref: '#/components/parameters/ResourceGroupNameParameter'
      - name: virtualRouterName
        in: path
        description: The name of the Virtual Router.
        required: true
        schema:
          type: string
      - name: peeringName
        in: path
        description: The name of the resource that is unique within a resource group. This name can be used to access the resource.
        required: true
        schema:
          type: string
      responses:
        '200':
          description: Resource 'VirtualRouterPeering' update operation succeeded
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/VirtualRouterPeering'
        '201':
          description: Resource 'VirtualRouterPeering' create operation succeeded
          headers:
            Azure-AsyncOperation:
              description: A link to the status monitor
              schema:
                type: string
            Retry-After:
              description: The Retry-After header can indicate how long the client should wait before polling the operation status.
              schema:
                type: integer
                format: int32
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/VirtualRouterPeering'
        default:
          description: An unexpected error response.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      x-ms-long-running-operation-options:
        final-state-via: azure-async-operation
        final-state-schema: '#/definitions/VirtualRouterPeering'
      x-ms-long-running-operation: true
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/VirtualRouterPeering'
        description: Parameters supplied to the create or update Virtual Router Peering operation.
        required: true
      summary: Virtual router peerings create or update
      x-summary-source: derived
    delete:
      operationId: VirtualRouterPeerings_Delete
      tags:
      - VirtualRouterPeerings
      description: Deletes the specified peering from a Virtual Router.
      parameters:
      - $ref: '#/components/parameters/ApiVersionParameter'
      - $ref: '#/components/parameters/SubscriptionIdParameter'
      - $ref: '#/components/parameters/ResourceGroupNameParameter'
      - name: virtualRouterName
        in: path
        description: The name of the Virtual Router.
        required: true
        schema:
          type: string
      - name: peeringName
        in: path
        description: The name of the resource that is unique within a resource group. This name can be used to access the resource.
        required: true
        schema:
          type: string
      responses:
        '200':
          description: Resource deleted successfully.
        '202':
          description: Resource deletion accepted.
          headers:
            Location:
              description: The Location header contains the URL where the status of the long running operation can be checked.
              schema:
                type: string
            Retry-After:
              description: The Retry-After header can indicate how long the client should wait before polling the operation status.
              schema:
                type: integer
                format: int32
        '204':
          description: Resource does not exist.
        default:
          description: An unexpected error response.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      x-ms-long-running-operation-options:
        final-state-via: location
      x-ms-long-running-operation: true
      summary: Virtual router peerings delete
      x-summary-source: derived
components:
  schemas:
    SubResourceModel:
      type: object
      description: Reference to another subresource.
      properties:
        name:
          type: string
          description: Name of the resource.
        type:
          type: string
          description: Resource type.
          readOnly: true
      allOf:
      - $ref: '#/components/schemas/SubResource'
      x-ms-azure-resource: true
    VirtualRouterPeeringProperties:
      type: object
      description: Properties of the rule group.
      properties:
        peerAsn:
          type: integer
          format: int64
          description: Peer ASN.
          minimum: 0
          maximum: 4294967295
        peerIp:
          type: string
          description: Peer IP.
        provisioningState:
          $ref: '#/components/schemas/ProvisioningState'
          description: The provisioning state of the resource.
          readOnly: true
    VirtualRouterPeeringListResult:
      type: object
      description: The response of a VirtualRouterPeering list operation.
      properties:
        value:
          type: array
          description: The VirtualRouterPeering items on this page
          items:
            $ref: '#/components/schemas/VirtualRouterPeering'
        nextLink:
          type: string
          format: uri
          description: The link to the next page of items
      required:
      - value
    VirtualRouterPeering:
      type: object
      description: Virtual Router Peering resource.
      properties:
        properties:
          $ref: '#/components/schemas/VirtualRouterPeeringProperties'
          description: The properties of the Virtual Router Peering.
          x-ms-client-flatten: true
        etag:
          type: string
          description: A unique read-only string that changes whenever the resource is updated.
          readOnly: true
      allOf:
      - $ref: '#/components/schemas/SubResourceModel'
    SubResource:
      type: object
      description: Reference to another subresource.
      properties:
        id:
          type: string
          description: Resource ID.
    Error:
      type: object
      description: Common error representation.
      properties:
        code:
          type: string
          description: Error code.
        message:
          type: string
          description: Error message.
        target:
          type: string
          description: Error target.
        details:
          type: array
          description: Error details.
          items:
            $ref: '#/components/schemas/ErrorDetails'
        innerError:
          type: string
          description: Inner error message.
    ProvisioningState:
      type: string
      description: Provisioning states of a resource.
      enum:
      - Failed
      - Succeeded
      - Canceled
      - Creating
      - Updating
      - Deleting
      x-ms-enum:
        name: ProvisioningState
        modelAsString: true
        values:
        - name: Failed
          value: Failed
          description: Failed
        - name: Succeeded
          value: Succeeded
          description: Succeeded
        - name: Canceled
          value: Canceled
          description: Canceled
        - name: Creating
          value: Creating
          description: Creating
        - name: Updating
          value: Updating
          description: Updating
        - name: Deleting
          value: Deleting
          description: Deleting
  parameters:
    ApiVersionParameter:
      name: api-version
      in: query
      description: The API version to use for this operation.
      required: true
      schema:
        type: string
        minLength: 1
    SubscriptionIdParameter:
      name: subscriptionId
      in: path
      description: The ID of the target subscription. The value must be an UUID.
      required: true
      schema:
        type: string
        format: uuid
    ResourceGroupNameParameter:
      name: resourceGroupName
      in: path
      description: The name of the resource group. The name is case insensitive.
      required: true
      x-ms-parameter-location: method
      schema:
        type: string
        maxLength: 90
        minLength: 1
  securitySchemes:
    azure_auth:
      type: oauth2
      flows:
        implicit:
          scopes:
            user_impersonation: impersonate your user account
          authorizationUrl: https://login.microsoftonline.com/common/oauth2/authorize
      description: Azure Active Directory OAuth2 Flow.