Microsoft Azure Peer Asns API

The PeerAsns API from Microsoft Azure, for peerasns.

GitHub OpenAPI
Business capability
IT Infrastructure Management BC-600.50

Operations 4

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}/providers/Microsoft.Peering/peerAsns/{peerAsnName} Get a peer ASN registration · Microsoft Azure Get Subscriptions Subscriptionid Providers Microsoft Peering… #
Ask an LLM
“What details are stored for one of my registered peer ASNs?”
“Can I check the validation state of a single peer ASN in my Azure subscription?”
Tell an agent
Show me peer ASN {peerAsnName} in subscription {subscriptionId}.
Look up the details of peer ASN {peerAsnName}.
PUT /subscriptions/{subscriptionId}/providers/Microsoft.Peering/peerAsns/{peerAsnName} Register or update a peer ASN · Microsoft Azure Put Subscriptions Subscriptionid Providers Microsoft Peering… #
Ask an LLM
“How do I register my autonomous system number for Azure peering?”
“Can I change the properties of a peer ASN I already registered?”
Tell an agent
Register peer ASN {peerAsnName} in subscription {subscriptionId}.
Update peer ASN {peerAsnName} with properties {properties}.
DELETE /subscriptions/{subscriptionId}/providers/Microsoft.Peering/peerAsns/{peerAsnName} Delete a peer ASN · Microsoft Azure Delete Subscriptions Subscriptionid Providers Microsoft Peering… #
Ask an LLM
“How do I remove a peer ASN I no longer peer with?”
“What happens when I delete a peer ASN registration from my subscription?”
Tell an agent destructive · confirm first
Delete peer ASN {peerAsnName} from subscription {subscriptionId}.
Remove the peer ASN registration named {peerAsnName}.
GET /subscriptions/{subscriptionId}/providers/Microsoft.Peering/peerAsns List peer ASNs in a subscription · Microsoft Azure Get Subscriptions Subscriptionid Providers Microsoft Peering… #
Ask an LLM
“Which peer ASNs are registered under my subscription?”
“Can I see every autonomous system number I've set up for peering?”
Tell an agent
List all peer ASNs in subscription {subscriptionId}.
Show every peer ASN registered to my 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-peerasns-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-peerasns-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  version: 2019-09-01-preview
  title: Microsoft Azure PeeringManagementClient Peer Asns 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: PeerAsns
paths:
  /subscriptions/{subscriptionId}/providers/Microsoft.Peering/peerAsns/{peerAsnName}:
    get:
      tags:
      - PeerAsns
      description: Gets the peer ASN with the specified name under the given subscription.
      operationId: microsoftAzurePeerasnsGet
      parameters:
      - name: peerAsnName
        in: path
        description: The peer ASN name.
        required: true
        schema:
          type: string
      - $ref: '#/components/parameters/SubscriptionIdParameter'
      - $ref: '#/components/parameters/ApiVersionParameter'
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PeerAsn'
        default:
          description: Error response describing why the operation has failed.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
      x-ms-examples:
        Get a peer ASN:
          $ref: ./examples/GetPeerAsn.json
      summary: Microsoft Azure Get Subscriptions Subscriptionid Providers Microsoft Peering…
    put:
      tags:
      - PeerAsns
      description: Creates a new peer ASN or updates an existing peer ASN with the specified name under the given subscription.
      operationId: microsoftAzurePeerasnsCreateorupdate
      parameters:
      - name: peerAsnName
        in: path
        description: The peer ASN name.
        required: true
        schema:
          type: string
      - $ref: '#/components/parameters/SubscriptionIdParameter'
      - $ref: '#/components/parameters/ApiVersionParameter'
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PeerAsn'
        '201':
          description: Created
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PeerAsn'
        default:
          description: Error response describing why the operation has failed.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
      x-ms-examples:
        Create a peer ASN:
          $ref: ./examples/CreatePeerAsn.json
      summary: Microsoft Azure Put Subscriptions Subscriptionid Providers Microsoft Peering…
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/PeerAsn'
        description: The peer ASN.
        required: true
    delete:
      tags:
      - PeerAsns
      description: Deletes an existing peer ASN with the specified name under the given subscription.
      operationId: microsoftAzurePeerasnsDelete
      parameters:
      - name: peerAsnName
        in: path
        description: The peer ASN name.
        required: true
        schema:
          type: string
      - $ref: '#/components/parameters/SubscriptionIdParameter'
      - $ref: '#/components/parameters/ApiVersionParameter'
      responses:
        '200':
          description: OK
        '204':
          description: No Content
        default:
          description: Error response describing why the operation has failed.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
      x-ms-examples:
        Delete a peer ASN:
          $ref: ./examples/DeletePeerAsn.json
      summary: Microsoft Azure Delete Subscriptions Subscriptionid Providers Microsoft Peering…
  /subscriptions/{subscriptionId}/providers/Microsoft.Peering/peerAsns:
    get:
      tags:
      - PeerAsns
      description: Lists all of the peer ASNs under the given subscription.
      operationId: microsoftAzurePeerasnsListbysubscription
      parameters:
      - $ref: '#/components/parameters/SubscriptionIdParameter'
      - $ref: '#/components/parameters/ApiVersionParameter'
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PeerAsnListResult'
        default:
          description: Error response describing why the operation has failed.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
      x-ms-examples:
        List peer ASNs in a subscription:
          $ref: ./examples/ListPeerAsnsBySubscription.json
      x-ms-pageable:
        nextLinkName: nextLink
      summary: Microsoft Azure Get Subscriptions Subscriptionid Providers Microsoft Peering…
components:
  schemas:
    PeerAsnListResult:
      description: The paginated list of peer ASNs.
      type: object
      properties:
        value:
          description: The list of peer ASNs.
          type: array
          items:
            $ref: '#/components/schemas/PeerAsn'
        nextLink:
          description: The link to fetch the next page of peer ASNs.
          type: string
    PeerAsn:
      description: The essential information related to the peer's ASN.
      type: object
      allOf:
      - $ref: '#/components/schemas/Resource'
      properties:
        properties:
          $ref: '#/components/schemas/PeerAsnProperties'
          description: The properties that define a peer's ASN.
          x-ms-client-flatten: true
    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
    PeerAsnProperties:
      description: The properties that define a peer's ASN.
      type: object
      properties:
        peerAsn:
          format: int32
          description: The Autonomous System Number (ASN) of the peer.
          type: integer
        peerContactInfo:
          $ref: '#/components/schemas/ContactInfo'
          description: The contact information of the peer.
        peerName:
          description: The name of the peer.
          type: string
        validationState:
          description: The validation state of the ASN associated with the peer.
          enum:
          - None
          - Pending
          - Approved
          - Failed
          type: string
          x-ms-enum:
            name: validationState
            modelAsString: true
        errorMessage:
          description: The error message for the validation state
          type: string
          readOnly: true
    ContactInfo:
      description: The contact information of the peer.
      type: object
      properties:
        emails:
          description: The list of email addresses.
          type: array
          items:
            type: string
        phone:
          description: The list of contact numbers.
          type: array
          items:
            type: string
    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
  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
  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)