Microsoft Azure Peering Service Prefixes API

The PeeringServicePrefixes API from Microsoft Azure, for peeringserviceprefixes.

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}/resourceGroups/{resourceGroupName}/providers/Microsoft.Peering/peeringServices/{peeringServiceName}/prefixes/{prefixName} Get a peering service prefix · Microsoft Azure Get Subscriptions Subscriptionid Resourcegroups… #
Ask an LLM
“How do I check one IP prefix registered with my peering service?”
“Can I expand extra detail when fetching a single peering service prefix?”
Tell an agent
Get prefix {prefix} of peering service {service} in {resource_group}, subscription {subscription}.
Show prefix {prefix} with {expand} expanded.
PUT /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Peering/peeringServices/{peeringServiceName}/prefixes/{prefixName} Add a prefix to a peering service · Microsoft Azure Put Subscriptions Subscriptionid Resourcegroups… #
Ask an LLM
“How do I register a new IP prefix with an Azure peering service?”
“Can I create a named prefix under an existing peering service?”
Tell an agent
Create prefix {prefix} on peering service {service} in {resource_group}, subscription {subscription}.
Register prefix {prefix} with properties {properties}.
DELETE /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Peering/peeringServices/{peeringServiceName}/prefixes/{prefixName} Remove a prefix from a peering service · Microsoft Azure Delete Subscriptions Subscriptionid Resourcegroups… #
Ask an LLM
“How do I deregister an IP prefix from my peering service?”
“Can I delete one prefix without deleting the peering service?”
Tell an agent destructive · confirm first
Delete prefix {prefix} from peering service {service} in {resource_group}, subscription {subscription}.
Remove prefix {prefix} from {service}.
GET /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Peering/peeringServices/{peeringServiceName}/prefixes List prefixes of a peering service · Microsoft Azure Get Subscriptions Subscriptionid Resourcegroups… #
Ask an LLM
“Which IP prefixes are registered under my peering service?”
“Can I list all prefixes of a peering service with expanded detail?”
Tell an agent
List prefixes of peering service {service} in {resource_group}, subscription {subscription}.
Show every prefix on {service} with {expand} expanded.

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-peeringserviceprefixes-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-peeringserviceprefixes-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  version: 2019-09-01-preview
  title: Microsoft Azure PeeringManagementClient Peering Service…
  description: APIs to manage Peering resources through the Azure Resource Manager.
servers:
- url: https://management.azure.com
security:
- azure_auth:
  - user_impersonation
tags:
- name: PeeringServicePrefixes
paths:
  ? /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Peering/peeringServices/{peeringServiceName}/prefixes/{prefixName}
  : get:
      tags:
      - PeeringServicePrefixes
      description: Gets an existing prefix with the specified name under the given subscription, resource group and peering service.
      operationId: microsoftAzurePrefixesGet
      parameters:
      - name: resourceGroupName
        in: path
        description: The name of the resource group.
        required: true
        schema:
          type: string
      - name: peeringServiceName
        in: path
        description: The name of the peering service.
        required: true
        schema:
          type: string
      - name: prefixName
        in: path
        description: The name of the prefix.
        required: true
        schema:
          type: string
      - name: $expand
        in: query
        description: The properties to be expanded.
        required: false
        schema:
          type: string
      - $ref: '#/components/parameters/SubscriptionIdParameter'
      - $ref: '#/components/parameters/ApiVersionParameter'
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PeeringServicePrefix'
        default:
          description: Error response describing why the operation has failed.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
      x-ms-examples:
        Get a prefix associated with the peering service:
          $ref: ./examples/GetPeeringServicePrefix.json
      summary: Microsoft Azure Get Subscriptions Subscriptionid Resourcegroups…
    put:
      tags:
      - PeeringServicePrefixes
      description: Creates a new prefix with the specified name under the given subscription, resource group and peering service.
      operationId: microsoftAzurePrefixesCreateorupdate
      parameters:
      - name: resourceGroupName
        in: path
        description: The name of the resource group.
        required: true
        schema:
          type: string
      - name: peeringServiceName
        in: path
        description: The name of the peering service.
        required: true
        schema:
          type: string
      - name: prefixName
        in: path
        description: The name of the prefix.
        required: true
        schema:
          type: string
      - $ref: '#/components/parameters/SubscriptionIdParameter'
      - $ref: '#/components/parameters/ApiVersionParameter'
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PeeringServicePrefix'
        '201':
          description: Created
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PeeringServicePrefix'
        default:
          description: Error response describing why the operation has failed.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
      x-ms-examples:
        Create or update a prefix for the peering service:
          $ref: ./examples/CreatePeeringServicePrefix.json
      summary: Microsoft Azure Put Subscriptions Subscriptionid Resourcegroups…
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/PeeringServicePrefix'
        description: The properties needed to create a prefix.
        required: true
    delete:
      tags:
      - PeeringServicePrefixes
      description: Deletes an existing prefix with the specified name under the given subscription, resource group and peering service.
      operationId: microsoftAzurePrefixesDelete
      parameters:
      - name: resourceGroupName
        in: path
        description: The name of the resource group.
        required: true
        schema:
          type: string
      - name: peeringServiceName
        in: path
        description: The name of the peering service.
        required: true
        schema:
          type: string
      - name: prefixName
        in: path
        description: The name of the prefix.
        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 prefix associated with the peering service:
          $ref: ./examples/DeletePeeringServicePrefix.json
      summary: Microsoft Azure Delete Subscriptions Subscriptionid Resourcegroups…
  ? /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Peering/peeringServices/{peeringServiceName}/prefixes
  : get:
      tags:
      - PeeringServicePrefixes
      description: Lists all prefixes under the given subscription, resource group and peering service.
      operationId: microsoftAzurePrefixesListbypeeringservice
      parameters:
      - name: resourceGroupName
        in: path
        description: The name of the resource group.
        required: true
        schema:
          type: string
      - name: peeringServiceName
        in: path
        description: The name of the peering service.
        required: true
        schema:
          type: string
      - name: $expand
        in: query
        description: The properties to be expanded.
        required: false
        schema:
          type: string
      - $ref: '#/components/parameters/SubscriptionIdParameter'
      - $ref: '#/components/parameters/ApiVersionParameter'
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PeeringServicePrefixListResult'
        default:
          description: Error response describing why the operation has failed.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
      x-ms-examples:
        List all the prefixes associated with the peering service:
          $ref: ./examples/ListPrefixesByPeeringService.json
      x-ms-pageable:
        nextLinkName: nextLink
      summary: Microsoft Azure Get Subscriptions Subscriptionid Resourcegroups…
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:
    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
    PeeringServicePrefixProperties:
      description: The peering service prefix properties class.
      type: object
      properties:
        prefix:
          description: The prefix from which your traffic originates.
          type: string
        prefixValidationState:
          description: The prefix validation state
          enum:
          - None
          - Invalid
          - Verified
          - Failed
          - Pending
          - Warning
          - Unknown
          type: string
          readOnly: true
          x-ms-enum:
            name: prefixValidationState
            modelAsString: true
        learnedType:
          description: The prefix learned type
          enum:
          - None
          - ViaServiceProvider
          - ViaSession
          type: string
          readOnly: true
          x-ms-enum:
            name: learnedType
            modelAsString: true
        errorMessage:
          description: The error message for validation state
          type: string
          readOnly: true
        events:
          description: The list of events for peering service prefix
          type: array
          items:
            $ref: '#/components/schemas/PeeringServicePrefixEvent'
          readOnly: true
        provisioningState:
          description: The provisioning state of the resource.
          enum:
          - Succeeded
          - Updating
          - Deleting
          - Failed
          type: string
          readOnly: true
          x-ms-enum:
            name: provisioningState
            modelAsString: true
    PeeringServicePrefix:
      description: The peering service prefix class.
      type: object
      allOf:
      - $ref: '#/components/schemas/Resource'
      properties:
        properties:
          $ref: '#/components/schemas/PeeringServicePrefixProperties'
          description: Gets or sets the peering prefix properties.
          x-ms-client-flatten: true
    PeeringServicePrefixListResult:
      description: The paginated list of peering service prefixes.
      type: object
      properties:
        value:
          description: The list of peering service prefixes.
          type: array
          items:
            $ref: '#/components/schemas/PeeringServicePrefix'
        nextLink:
          description: The link to fetch the next page of peering service prefixes.
          type: string
    PeeringServicePrefixEvent:
      description: The details of the event associated with a prefix.
      type: object
      properties:
        eventTimestamp:
          format: date-time
          description: The timestamp of the event associated with a prefix.
          type: string
          readOnly: true
        eventType:
          description: The type of the event associated with a prefix.
          type: string
          readOnly: true
        eventSummary:
          description: The summary of the event associated with a prefix.
          type: string
          readOnly: true
        eventLevel:
          description: The level of the event associated with a prefix.
          type: string
          readOnly: true
        eventDescription:
          description: The description of the event associated with a prefix.
          type: string
          readOnly: true
    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)