Microsoft Azure Peerings API

The Peerings API from Microsoft Azure, for peerings.

GitHub OpenAPI
Business capability
IT Infrastructure Management BC-600.50

Operations 6

Each operation below carries the questions people ask an LLM about it and the instructions they give an agent to run it. Generated by API Evangelist overlay

GET /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Peering/peerings/{peeringName} Get a peering · Microsoft Azure Get Subscriptions Subscriptionid Resourcegroups… #
Ask an LLM
“How do I view the details of an Azure peering resource?”
“What SKU and kind does one of my peerings have?”
Tell an agent
Get peering {peering}.
Show peering {peering} in resource group {rg}, subscription {subscription}.
PUT /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Peering/peerings/{peeringName} Create or update a peering · Microsoft Azure Put Subscriptions Subscriptionid Resourcegroups… #
Ask an LLM
“How do I create a direct or exchange peering with Microsoft?”
“Which fields are required when creating a peering resource?”
Tell an agent
Create peering {peering} of kind {kind} with SKU {sku} in {location}.
Create or update peering {peering} in resource group {rg}, subscription {subscription} as kind {kind}, SKU {sku}, location {location}.
DELETE /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Peering/peerings/{peeringName} Delete a peering · Microsoft Azure Delete Subscriptions Subscriptionid Resourcegroups… #
Ask an LLM
“Can I delete a peering I no longer need?”
“How do I remove a peering resource from a resource group?”
Tell an agent destructive · confirm first
Delete peering {peering}.
Remove peering {peering} from resource group {rg}, subscription {subscription}.
PATCH /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Peering/peerings/{peeringName} Update tags on a peering · Microsoft Azure Patch Subscriptions Subscriptionid Resourcegroups… #
Ask an LLM
“Can I change only the tags on an existing peering?”
“How do I label a peering resource with new tags?”
Tell an agent
Set tags {tags} on peering {peering}.
Retag peering {peering} in resource group {rg}, subscription {subscription} with {tags}.
GET /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Peering/peerings List peerings in a resource group · Microsoft Azure Get Subscriptions Subscriptionid Resourcegroups… #
Ask an LLM
“Which peerings exist in one resource group?”
“Can I see only the peerings from a specific resource group?”
Tell an agent
List peerings in resource group {rg} of subscription {subscription}.
Show all peering resources inside group {rg}, subscription {subscription}.
GET /subscriptions/{subscriptionId}/providers/Microsoft.Peering/peerings List peerings across a subscription · Microsoft Azure Get Subscriptions Subscriptionid Providers Microsoft Peering… #
Ask an LLM
“What peerings do I have across my entire subscription?”
“Can I list every peering regardless of resource group?”
Tell an agent
List all peerings in subscription {subscription}.
Show every peering resource subscription-wide for {subscription}.

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/microsoft-azure:microsoft-azure-peerings-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

microsoft-azure-peerings-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  version: 2019-09-01-preview
  title: Microsoft Azure PeeringManagementClient Peerings API
  description: APIs to manage Peering resources through the Azure Resource Manager.
servers:
- url: https://management.azure.com
security:
- azure_auth:
  - user_impersonation
tags:
- name: Peerings
paths:
  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Peering/peerings/{peeringName}:
    get:
      tags:
      - Peerings
      description: Gets an existing peering with the specified name under the given subscription and resource group.
      operationId: microsoftAzurePeeringsGet
      parameters:
      - name: resourceGroupName
        in: path
        description: The name of the resource group.
        required: true
        schema:
          type: string
      - name: peeringName
        in: path
        description: The name of the peering.
        required: true
        schema:
          type: string
      - $ref: '#/components/parameters/SubscriptionIdParameter'
      - $ref: '#/components/parameters/ApiVersionParameter'
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Peering'
        default:
          description: Error response describing why the operation has failed.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
      x-ms-examples:
        Get a peering:
          $ref: ./examples/GetPeering.json
      summary: Microsoft Azure Get Subscriptions Subscriptionid Resourcegroups…
    put:
      tags:
      - Peerings
      description: Creates a new peering or updates an existing peering with the specified name under the given subscription and resource group.
      operationId: microsoftAzurePeeringsCreateorupdate
      parameters:
      - name: resourceGroupName
        in: path
        description: The name of the resource group.
        required: true
        schema:
          type: string
      - name: peeringName
        in: path
        description: The name of the peering.
        required: true
        schema:
          type: string
      - $ref: '#/components/parameters/SubscriptionIdParameter'
      - $ref: '#/components/parameters/ApiVersionParameter'
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Peering'
        '201':
          description: Created
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Peering'
        default:
          description: Error response describing why the operation has failed.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
      x-ms-examples:
        Create a direct peering:
          $ref: ./examples/CreateDirectPeering.json
        Create an exchange peering:
          $ref: ./examples/CreateExchangePeering.json
      summary: Microsoft Azure Put Subscriptions Subscriptionid Resourcegroups…
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/Peering'
        description: The properties needed to create or update a peering.
        required: true
    delete:
      tags:
      - Peerings
      description: Deletes an existing peering with the specified name under the given subscription and resource group.
      operationId: microsoftAzurePeeringsDelete
      parameters:
      - name: resourceGroupName
        in: path
        description: The name of the resource group.
        required: true
        schema:
          type: string
      - name: peeringName
        in: path
        description: The name of the peering.
        required: true
        schema:
          type: string
      - $ref: '#/components/parameters/SubscriptionIdParameter'
      - $ref: '#/components/parameters/ApiVersionParameter'
      responses:
        '200':
          description: OK
        '204':
          description: NoContent
        default:
          description: Error response describing why the operation has failed.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
      x-ms-examples:
        Delete a peering:
          $ref: ./examples/DeletePeering.json
      summary: Microsoft Azure Delete Subscriptions Subscriptionid Resourcegroups…
    patch:
      tags:
      - Peerings
      description: Updates tags for a peering with the specified name under the given subscription and resource group.
      operationId: microsoftAzurePeeringsUpdate
      parameters:
      - name: resourceGroupName
        in: path
        description: The name of the resource group.
        required: true
        schema:
          type: string
      - name: peeringName
        in: path
        description: The name of the peering.
        required: true
        schema:
          type: string
      - $ref: '#/components/parameters/SubscriptionIdParameter'
      - $ref: '#/components/parameters/ApiVersionParameter'
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Peering'
        default:
          description: Error response describing why the operation has failed.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
      x-ms-examples:
        Update peering tags:
          $ref: ./examples/UpdatePeeringTags.json
      summary: Microsoft Azure Patch Subscriptions Subscriptionid Resourcegroups…
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ResourceTags'
        description: The resource tags.
        required: true
  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Peering/peerings:
    get:
      tags:
      - Peerings
      description: Lists all of the peerings under the given subscription and resource group.
      operationId: microsoftAzurePeeringsListbyresourcegroup
      parameters:
      - name: resourceGroupName
        in: path
        description: The name of the resource group.
        required: true
        schema:
          type: string
      - $ref: '#/components/parameters/SubscriptionIdParameter'
      - $ref: '#/components/parameters/ApiVersionParameter'
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PeeringListResult'
        default:
          description: Error response describing why the operation has failed.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
      x-ms-examples:
        List peerings in a resource group:
          $ref: ./examples/ListPeeringsByResourceGroup.json
      x-ms-pageable:
        nextLinkName: nextLink
      summary: Microsoft Azure Get Subscriptions Subscriptionid Resourcegroups…
  /subscriptions/{subscriptionId}/providers/Microsoft.Peering/peerings:
    get:
      tags:
      - Peerings
      description: Lists all of the peerings under the given subscription.
      operationId: microsoftAzurePeeringsListbysubscription
      parameters:
      - $ref: '#/components/parameters/SubscriptionIdParameter'
      - $ref: '#/components/parameters/ApiVersionParameter'
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PeeringListResult'
        default:
          description: Error response describing why the operation has failed.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
      x-ms-examples:
        List peerings in a subscription:
          $ref: ./examples/ListPeeringsBySubscription.json
      x-ms-pageable:
        nextLinkName: nextLink
      summary: Microsoft Azure Get Subscriptions Subscriptionid Providers Microsoft Peering…
components:
  parameters:
    SubscriptionIdParameter:
      name: subscriptionId
      in: path
      description: The Azure subscription ID.
      required: true
      schema:
        type: string
    ApiVersionParameter:
      name: api-version
      in: query
      description: The client API version.
      required: true
      schema:
        type: string
  schemas:
    PeeringProperties:
      description: The properties that define connectivity to the Microsoft Cloud Edge.
      type: object
      properties:
        direct:
          $ref: '#/components/schemas/PeeringPropertiesDirect'
          description: The properties that define a direct peering.
        exchange:
          $ref: '#/components/schemas/PeeringPropertiesExchange'
          description: The properties that define an exchange peering.
        peeringLocation:
          description: The location of the peering.
          type: string
        provisioningState:
          description: The provisioning state of the resource.
          enum:
          - Succeeded
          - Updating
          - Deleting
          - Failed
          type: string
          readOnly: true
          x-ms-enum:
            name: provisioningState
            modelAsString: true
    PeeringPropertiesDirect:
      description: The properties that define a direct peering.
      type: object
      properties:
        connections:
          description: The set of connections that constitute a direct peering.
          type: array
          items:
            $ref: '#/components/schemas/DirectConnection'
        useForPeeringService:
          description: The flag that indicates whether or not the peering is used for peering service.
          type: boolean
          readOnly: true
        peerAsn:
          $ref: '#/components/schemas/SubResource'
          description: The reference of the peer ASN.
        directPeeringType:
          description: The type of direct peering.
          enum:
          - Edge
          - Transit
          - Cdn
          - Internal
          type: string
          x-ms-enum:
            name: directPeeringType
            modelAsString: true
    Peering:
      description: Peering is a logical representation of a set of connections to the Microsoft Cloud Edge at a location.
      required:
      - sku
      - kind
      - location
      type: object
      allOf:
      - $ref: '#/components/schemas/Resource'
      properties:
        sku:
          $ref: '#/components/schemas/PeeringSku'
          description: The SKU that defines the tier and kind of the peering.
        kind:
          description: The kind of the peering.
          enum:
          - Direct
          - Exchange
          type: string
          x-ms-enum:
            name: kind
            modelAsString: true
        properties:
          $ref: '#/components/schemas/PeeringProperties'
          description: The properties that define a peering.
          x-ms-client-flatten: true
        location:
          description: The location of the resource.
          type: string
          x-ms-mutability:
          - read
          - create
        tags:
          description: The resource tags.
          type: object
          additionalProperties:
            type: string
    ErrorResponse:
      description: The error response that indicates why an operation has failed.
      type: object
      properties:
        code:
          description: The error code.
          type: string
          readOnly: true
        message:
          description: The error message.
          type: string
          readOnly: true
    ExchangeConnection:
      description: The properties that define an exchange connection.
      type: object
      properties:
        peeringDBFacilityId:
          format: int32
          description: The PeeringDB.com ID of the facility at which the connection has to be set up.
          type: integer
        connectionState:
          description: The state of the connection.
          enum:
          - None
          - PendingApproval
          - Approved
          - ProvisioningStarted
          - ProvisioningFailed
          - ProvisioningCompleted
          - Validating
          - Active
          type: string
          readOnly: true
          x-ms-enum:
            name: connectionState
            modelAsString: true
        bgpSession:
          $ref: '#/components/schemas/BgpSession'
          description: The BGP session associated with the connection.
        connectionIdentifier:
          description: The unique identifier (GUID) for the connection.
          type: string
        errorMessage:
          description: The error message related to the connection state, if any.
          type: string
          readOnly: true
    PeeringSku:
      description: The SKU that defines the tier and kind of the peering.
      type: object
      properties:
        name:
          description: The name of the peering SKU.
          enum:
          - Basic_Exchange_Free
          - Basic_Direct_Free
          - Premium_Exchange_Metered
          - Premium_Direct_Free
          - Premium_Direct_Metered
          - Premium_Direct_Unlimited
          type: string
          x-ms-enum:
            name: name
            modelAsString: true
        tier:
          description: The tier of the peering SKU.
          enum:
          - Basic
          - Premium
          type: string
          x-ms-enum:
            name: tier
            modelAsString: true
        family:
          description: The family of the peering SKU.
          enum:
          - Direct
          - Exchange
          type: string
          x-ms-enum:
            name: family
            modelAsString: true
        size:
          description: The size of the peering SKU.
          enum:
          - Free
          - Metered
          - Unlimited
          type: string
          x-ms-enum:
            name: size
            modelAsString: true
    DirectConnection:
      description: The properties that define a direct connection.
      type: object
      properties:
        bandwidthInMbps:
          format: int32
          description: The bandwidth of the connection.
          type: integer
        provisionedBandwidthInMbps:
          format: int32
          description: The bandwidth that is actually provisioned.
          type: integer
          readOnly: true
        sessionAddressProvider:
          description: The field indicating if Microsoft provides session ip addresses.
          enum:
          - Microsoft
          - Peer
          type: string
          x-ms-enum:
            name: sessionAddressProvider
            modelAsString: true
        useForPeeringService:
          description: The flag that indicates whether or not the connection is used for peering service.
          type: boolean
        peeringDBFacilityId:
          format: int32
          description: The PeeringDB.com ID of the facility at which the connection has to be set up.
          type: integer
        connectionState:
          description: The state of the connection.
          enum:
          - None
          - PendingApproval
          - Approved
          - ProvisioningStarted
          - ProvisioningFailed
          - ProvisioningCompleted
          - Validating
          - Active
          type: string
          readOnly: true
          x-ms-enum:
            name: connectionState
            modelAsString: true
        bgpSession:
          $ref: '#/components/schemas/BgpSession'
          description: The BGP session associated with the connection.
        connectionIdentifier:
          description: The unique identifier (GUID) for the connection.
          type: string
        errorMessage:
          description: The error message related to the connection state, if any.
          type: string
          readOnly: true
    ResourceTags:
      description: The resource tags.
      type: object
      properties:
        tags:
          description: Gets or sets the tags, a dictionary of descriptors arm object
          type: object
          additionalProperties:
            type: string
    SubResource:
      description: The sub resource.
      type: object
      properties:
        id:
          description: The identifier of the referenced resource.
          type: string
    BgpSession:
      description: The properties that define a BGP session.
      type: object
      properties:
        sessionPrefixV4:
          description: The IPv4 prefix that contains both ends' IPv4 addresses.
          type: string
        sessionPrefixV6:
          description: The IPv6 prefix that contains both ends' IPv6 addresses.
          type: string
        microsoftSessionIPv4Address:
          description: The IPv4 session address on Microsoft's end.
          type: string
          readOnly: true
        microsoftSessionIPv6Address:
          description: The IPv6 session address on Microsoft's end.
          type: string
          readOnly: true
        peerSessionIPv4Address:
          description: The IPv4 session address on peer's end.
          type: string
        peerSessionIPv6Address:
          description: The IPv6 session address on peer's end.
          type: string
        sessionStateV4:
          description: The state of the IPv4 session.
          enum:
          - None
          - Idle
          - Connect
          - Active
          - OpenSent
          - OpenConfirm
          - OpenReceived
          - Established
          - PendingAdd
          - PendingUpdate
          - PendingRemove
          type: string
          readOnly: true
          x-ms-enum:
            name: sessionStateV4
            modelAsString: true
        sessionStateV6:
          description: The state of the IPv6 session.
          enum:
          - None
          - Idle
          - Connect
          - Active
          - OpenSent
          - OpenConfirm
          - OpenReceived
          - Established
          - PendingAdd
          - PendingUpdate
          - PendingRemove
          type: string
          readOnly: true
          x-ms-enum:
            name: sessionStateV6
            modelAsString: true
        maxPrefixesAdvertisedV4:
          format: int32
          description: The maximum number of prefixes advertised over the IPv4 session.
          type: integer
        maxPrefixesAdvertisedV6:
          format: int32
          description: The maximum number of prefixes advertised over the IPv6 session.
          type: integer
        md5AuthenticationKey:
          description: The MD5 authentication key of the session.
          type: string
    PeeringListResult:
      description: The paginated list of peerings.
      type: object
      properties:
        value:
          description: The list of peerings.
          type: array
          items:
            $ref: '#/components/schemas/Peering'
        nextLink:
          description: The link to fetch the next page of peerings.
          type: string
    PeeringPropertiesExchange:
      description: The properties that define an exchange peering.
      type: object
      properties:
        connections:
          description: The set of connections that constitute an exchange peering.
          type: array
          items:
            $ref: '#/components/schemas/ExchangeConnection'
        peerAsn:
          $ref: '#/components/schemas/SubResource'
          description: The reference of the peer ASN.
    Resource:
      description: The ARM resource class.
      type: object
      properties:
        name:
          description: The name of the resource.
          type: string
          readOnly: true
        id:
          description: The ID of the resource.
          type: string
          readOnly: true
        type:
          description: The type of the resource.
          type: string
          readOnly: true
      x-ms-azure-resource: true
  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.
x-provenance:
  method: harvested
  publisher: Microsoft Azure
  source: https://raw.githubusercontent.com/Azure/azure-rest-api-specs/master/specification/peering/resource-manager/Microsoft.Peering/preview/2019-08-01-preview/peering.json
  note: split by refine-openapis from the provider's own published document, verified by fetch (openapi/_original/*.fetch.json);
    stamped by stamp-openapi-provenance.py (roadmap#793)