Microsoft Azure Routing Rules API

The Routing Rules API from Microsoft Azure, for routing rules.

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.Network/networkManagers/{networkManagerName}/routingConfigurations/{configurationName}/ruleCollections/{ruleCollectionName}/rules List routing rules in a rule collection · Microsoft Azure Get Subscriptions Subscriptionid Resourcegroups… #
Ask an LLM
“Which routing rules are in a network manager routing rule collection?”
“Can I page through routing rules with a page size limit?”
Tell an agent
List routing rules in collection {ruleCollectionName} of configuration {configurationName} on network manager {networkManagerName}.
Show {top} routing rules at a time from collection {ruleCollectionName} in {configurationName} on {networkManagerName}.
GET /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkManagers/{networkManagerName}/routingConfigurations/{configurationName}/ruleCollections/{ruleCollectionName}/rules/{ruleName} Get a network manager routing rule · Microsoft Azure Get Subscriptions Subscriptionid Resourcegroups… #
Ask an LLM
“What destination and next hop does a specific routing rule define?”
“Can I look up one routing rule by name in a rule collection?”
Tell an agent
Get routing rule {ruleName} in collection {ruleCollectionName}, configuration {configurationName}, network manager {networkManagerName}.
Show the details of rule {ruleName} from {ruleCollectionName} in {configurationName} on {networkManagerName}.
PUT /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkManagers/{networkManagerName}/routingConfigurations/{configurationName}/ruleCollections/{ruleCollectionName}/rules/{ruleName} Create or update a routing rule · Microsoft Azure Put Subscriptions Subscriptionid Resourcegroups… #
Ask an LLM
“How do I add a user-defined route rule to a network manager routing configuration?”
“Can I change an existing routing rule's destination or next hop?”
Tell an agent
Create routing rule {ruleName} in {ruleCollectionName}, configuration {configurationName}, network manager {networkManagerName}, with {properties}.
Update routing rule {ruleName} in {ruleCollectionName} of {configurationName} on {networkManagerName}.
DELETE /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkManagers/{networkManagerName}/routingConfigurations/{configurationName}/ruleCollections/{ruleCollectionName}/rules/{ruleName} Delete a routing rule · Microsoft Azure Delete Subscriptions Subscriptionid Resourcegroups… #
Ask an LLM
“Can I remove a routing rule from a network manager rule collection?”
“What identifies the routing rule I want to delete?”
Tell an agent destructive · confirm first
Delete routing rule {ruleName} from collection {ruleCollectionName}, configuration {configurationName}, network manager {networkManagerName}.
Remove rule {ruleName} from {ruleCollectionName} in {configurationName} on {networkManagerName}.

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-routing-rules-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-routing-rules-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Microsoft Azure RoutingConfiguration Routing Rules API
  version: 2023-03-01-preview
servers:
- url: https://management.azure.com
security:
- azure_auth:
  - user_impersonation
tags:
- name: Routing Rules
paths:
  ? /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkManagers/{networkManagerName}/routingConfigurations/{configurationName}/ruleCollections/{ruleCollectionName}/rules
  : parameters:
    - $ref: ../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter
    - $ref: ../../../../../common-types/resource-management/v5/types.json#/parameters/SubscriptionIdParameter
    - $ref: ../../../../../common-types/resource-management/v5/types.json#/parameters/ResourceGroupNameParameter
    - $ref: '#/components/parameters/NetworkManagerNameParameter'
    - $ref: '#/components/parameters/RoutingConfigurationParameter'
    - $ref: '#/components/parameters/RuleCollectionParameter'
    - $ref: '#/components/parameters/ListTopParameter'
    - $ref: '#/components/parameters/ListSkipTokenParameter'
    get:
      tags:
      - Routing Rules
      description: List all network manager routing configuration routing rules.
      operationId: microsoftAzureRoutingrulesList
      responses:
        '200':
          description: Successful operation
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/RoutingRuleListResult'
        default:
          description: Error response describing why the operation failed.
          content:
            application/json:
              schema:
                $ref: ./network.json#/definitions/CloudError
      x-ms-examples:
        List routing rules:
          $ref: ./examples/NetworkManagerRoutingRuleList.json
      x-ms-pageable:
        nextLinkName: nextLink
      summary: Microsoft Azure Get Subscriptions Subscriptionid Resourcegroups…
  ? /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkManagers/{networkManagerName}/routingConfigurations/{configurationName}/ruleCollections/{ruleCollectionName}/rules/{ruleName}
  : parameters:
    - $ref: ../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter
    - $ref: ../../../../../common-types/resource-management/v5/types.json#/parameters/SubscriptionIdParameter
    - $ref: ../../../../../common-types/resource-management/v5/types.json#/parameters/ResourceGroupNameParameter
    - $ref: '#/components/parameters/NetworkManagerNameParameter'
    - $ref: '#/components/parameters/RoutingConfigurationParameter'
    - $ref: '#/components/parameters/RuleCollectionParameter'
    - $ref: '#/components/parameters/RoutingConfigurationsRuleParameter'
    get:
      tags:
      - Routing Rules
      description: Gets a network manager routing configuration routing rule.
      operationId: microsoftAzureRoutingrulesGet
      responses:
        '200':
          description: Successful operation
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/RoutingRule'
        default:
          description: Error response describing why the operation failed.
          content:
            application/json:
              schema:
                $ref: ./network.json#/definitions/CloudError
      x-ms-examples:
        Gets routing rule:
          $ref: ./examples/NetworkManagerRoutingRuleGet.json
      summary: Microsoft Azure Get Subscriptions Subscriptionid Resourcegroups…
    put:
      tags:
      - Routing Rules
      description: Creates or updates an routing rule.
      operationId: microsoftAzureRoutingrulesCreateorupdate
      responses:
        '200':
          description: Updated rule
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/RoutingRule'
        '201':
          description: Created rule
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/RoutingRule'
        default:
          description: Error response describing why the operation failed.
          content:
            application/json:
              schema:
                $ref: ./network.json#/definitions/CloudError
      x-ms-examples:
        Create an routing rule:
          $ref: ./examples/NetworkManagerRoutingRulePut.json
        Create a default routing rule:
          $ref: ./examples/NetworkManagerRoutingRulePut.json
      summary: Microsoft Azure Put Subscriptions Subscriptionid Resourcegroups…
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/RoutingRule'
        description: The routing rule to create or update
        required: true
    delete:
      tags:
      - Routing Rules
      description: Deletes a routing rule.
      operationId: microsoftAzureRoutingrulesDelete
      responses:
        '202':
          description: Accepted and will complete asynchronously.
          headers:
            Location:
              description: The URL of the resource used to check the status of the asynchronous operation.
              schema:
                type: string
        '204':
          description: Request successful. Resource does not exist.
        default:
          description: Error response describing why the operation failed.
          content:
            application/json:
              schema:
                $ref: ./network.json#/definitions/CloudError
      x-ms-long-running-operation: true
      x-ms-long-running-operation-options:
        final-state-via: location
      x-ms-examples:
        Deletes a routing rule:
          $ref: ./examples/NetworkManagerRoutingRuleDelete.json
      summary: Microsoft Azure Delete Subscriptions Subscriptionid Resourcegroups…
components:
  parameters:
    NetworkManagerNameParameter:
      name: networkManagerName
      in: path
      required: true
      description: The name of the network manager.
      x-ms-parameter-location: method
      schema:
        type: string
        pattern: ^[a-zA-Z0-9_.-]*$
    RuleCollectionParameter:
      name: ruleCollectionName
      in: path
      description: The name of the network manager routing Configuration rule collection.
      required: true
      x-ms-parameter-location: method
      schema:
        type: string
        pattern: ^[a-zA-Z0-9_.-]*$
    RoutingConfigurationParameter:
      name: configurationName
      in: path
      description: The name of the network manager Routing Configuration.
      required: true
      x-ms-parameter-location: method
      schema:
        type: string
        pattern: ^[a-zA-Z0-9_.-]*$
    RoutingConfigurationsRuleParameter:
      name: ruleName
      in: path
      description: The name of the rule.
      required: true
      x-ms-parameter-location: method
      schema:
        type: string
        pattern: ^[a-zA-Z0-9_.-]*$
    ListTopParameter:
      name: $top
      description: An optional query parameter which specifies the maximum number of records to be returned by the server.
      in: query
      required: false
      x-ms-parameter-location: method
      schema:
        type: integer
        format: int32
        maximum: 20
        minimum: 1
    ListSkipTokenParameter:
      name: $skipToken
      description: SkipToken is only used if a previous operation returned a partial result. If a previous response contains a nextLink element, the value of the nextLink element will include a skipToken parameter that specifies a starting point to use for subsequent calls.
      in: query
      required: false
      x-ms-parameter-location: method
      schema:
        type: string
  schemas:
    RoutingRulePropertiesFormat:
      type: object
      properties:
        description:
          type: string
          description: A description for this rule.
        provisioningState:
          readOnly: true
          $ref: ./network.json#/definitions/ProvisioningState
          description: The provisioning state of the resource.
        resourceGuid:
          type: string
          readOnly: true
          description: Unique identifier for this resource.
        destination:
          $ref: '#/components/schemas/RoutingRuleRouteDestination'
          description: Indicates the destination for this particular rule.
        nextHop:
          $ref: '#/components/schemas/RoutingRuleNextHop'
          description: Indicates the next hop for this particular rule.
      required:
      - destination
      - nextHop
      description: Routing routing rule resource.
    RoutingRuleListResult:
      type: object
      properties:
        value:
          type: array
          items:
            $ref: '#/components/schemas/RoutingRule'
          description: A list of routing rules.
        nextLink:
          type: string
          description: The URL to get the next set of results.
      description: Routing configuration rule list result.
    RoutingRuleDestinationType:
      type: string
      description: Routing rule destination type.
      enum:
      - AddressPrefix
      - ServiceTag
      x-ms-enum:
        name: RoutingRuleDestinationType
        modelAsString: true
    RoutingRuleRouteDestination:
      type: object
      properties:
        type:
          $ref: '#/components/schemas/RoutingRuleDestinationType'
          description: Destination type.
        destinationAddress:
          type: string
          description: Destination address.
      required:
      - type
      - destinationAddress
      description: Route destination.
    RoutingRuleNextHop:
      type: object
      properties:
        nextHopType:
          $ref: '#/components/schemas/RoutingRuleNextHopType'
          description: Next hop type.
        nextHopAddress:
          type: string
          description: Next hop address. Only relevant if the next hop type is VirtualAppliance.
      required:
      - nextHopType
      description: Next hop.
    RoutingRuleNextHopType:
      type: string
      description: Routing rule next hop type.
      enum:
      - Internet
      - NoNextNop
      - VirtualAppliance
      - VirtualNetworkGateway
      - VnetLocal
      x-ms-enum:
        name: RoutingRuleNextHopType
        modelAsString: true
    RoutingRule:
      type: object
      properties:
        properties:
          $ref: '#/components/schemas/RoutingRulePropertiesFormat'
          x-ms-client-flatten: true
          description: Indicates the properties of the routing rule
        systemData:
          readOnly: true
          description: The system metadata related to this resource.
          $ref: ../../../../../common-types/resource-management/v5/types.json#/definitions/systemData
      allOf:
      - $ref: ./network.json#/definitions/ProxyResource
      description: Network routing rule.
  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.