Microsoft Azure Forwarding Rules API

The Forwarding Rules API from Microsoft Azure, for forwarding rules.

GitHub OpenAPI
Business capability
IT Infrastructure Management BC-600.50

Operations 5

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

PUT /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsForwardingRulesets/{dnsForwardingRulesetName}/forwardingRules/{forwardingRuleName} Create or update a DNS forwarding rule · Microsoft Azure Put Subscriptions Subscriptionid Resourcegroups… #
Ask an LLM
“How do I forward a domain's DNS queries to my on-premises servers with Private Resolver?”
“Can I create a forwarding rule only if it does not already exist?”
Tell an agent
Create forwarding rule {rule} in DNS forwarding ruleset {ruleset} with properties {properties}.
Add rule {rule} to ruleset {ruleset} only if none exists, If-None-Match {if_none_match}.
PATCH /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsForwardingRulesets/{dnsForwardingRulesetName}/forwardingRules/{forwardingRuleName} Update a DNS forwarding rule · Microsoft Azure Patch Subscriptions Subscriptionid Resourcegroups… #
Ask an LLM
“Can I change the target DNS servers on an existing forwarding rule?”
“How do I disable a forwarding rule without deleting it?”
Tell an agent
Update forwarding rule {rule} in DNS forwarding ruleset {ruleset} with properties {properties}.
Patch rule {rule} in ruleset {ruleset} guarded by etag {etag}.
DELETE /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsForwardingRulesets/{dnsForwardingRulesetName}/forwardingRules/{forwardingRuleName} Delete a DNS forwarding rule · Microsoft Azure Delete Subscriptions Subscriptionid Resourcegroups… #
Ask an LLM
“How do I delete a rule from a DNS forwarding ruleset?”
“Can a deleted forwarding rule be recovered?”
Tell an agent destructive · confirm first
Delete forwarding rule {rule} from DNS forwarding ruleset {ruleset}.
Permanently remove rule {rule} from ruleset {ruleset} if its etag is {etag}.
GET /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsForwardingRulesets/{dnsForwardingRulesetName}/forwardingRules/{forwardingRuleName} Get a DNS forwarding rule · Microsoft Azure Get Subscriptions Subscriptionid Resourcegroups… #
Ask an LLM
“What domain and target DNS servers does a forwarding rule use?”
“Where can I read one rule in a DNS forwarding ruleset?”
Tell an agent
Get forwarding rule {rule} in DNS forwarding ruleset {ruleset}.
Show the properties of rule {rule} from ruleset {ruleset}.
GET /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsForwardingRulesets/{dnsForwardingRulesetName}/forwardingRules List forwarding rules in a DNS ruleset · Microsoft Azure Get Subscriptions Subscriptionid Resourcegroups… #
Ask an LLM
“Which forwarding rules are defined in my DNS forwarding ruleset?”
“Can I cap how many forwarding rules come back?”
Tell an agent
List forwarding rules in DNS forwarding ruleset {ruleset}.
Show the first {top} rules in ruleset {ruleset}.

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-forwarding-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-forwarding-rules-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Microsoft Azure DnsResolverManagementClient Forwarding…
  description: The DNS Resolver Management Client.
  version: 2020-04-01-preview
servers:
- url: https://management.azure.com
tags:
- name: Forwarding Rules
paths:
  ? /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsForwardingRulesets/{dnsForwardingRulesetName}/forwardingRules/{forwardingRuleName}
  : put:
      tags:
      - Forwarding Rules
      operationId: microsoftAzureForwardingrulesCreateorupdate
      description: Creates or updates a forwarding rule in a DNS forwarding ruleset.
      parameters:
      - $ref: ../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter
      - $ref: ../../../../../common-types/resource-management/v2/types.json#/parameters/ResourceGroupNameParameter
      - $ref: '#/components/parameters/DnsForwardingRulesetNameParameter'
      - $ref: '#/components/parameters/ForwardingRuleNameParameter'
      - $ref: ../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter
      - $ref: '#/components/parameters/IfMatchParameter'
      - $ref: '#/components/parameters/IfNoneMatchParameter'
      responses:
        '200':
          description: The forwarding rule has been updated.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ForwardingRule'
        '201':
          description: The forwarding rule has been created.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ForwardingRule'
        default:
          description: Default response. It will be deserialized as per the Error definition.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CloudError'
      x-ms-examples:
        Upsert forwarding rule in a DNS forwarding ruleset:
          $ref: ./examples/ForwardingRule_Put.json
      summary: Microsoft Azure Put Subscriptions Subscriptionid Resourcegroups…
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ForwardingRule'
        description: Parameters supplied to the CreateOrUpdate operation.
        required: true
    patch:
      tags:
      - Forwarding Rules
      operationId: microsoftAzureForwardingrulesUpdate
      description: Updates a forwarding rule in a DNS forwarding ruleset.
      parameters:
      - $ref: ../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter
      - $ref: ../../../../../common-types/resource-management/v2/types.json#/parameters/ResourceGroupNameParameter
      - $ref: '#/components/parameters/DnsForwardingRulesetNameParameter'
      - $ref: '#/components/parameters/ForwardingRuleNameParameter'
      - $ref: ../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter
      - $ref: '#/components/parameters/IfMatchParameter'
      responses:
        '200':
          description: The forwarding rule has been updated.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ForwardingRule'
        default:
          description: Default response. It will be deserialized as per the Error definition.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CloudError'
      x-ms-examples:
        Update forwarding rule in a DNS forwarding ruleset:
          $ref: ./examples/ForwardingRule_Patch.json
      summary: Microsoft Azure Patch Subscriptions Subscriptionid Resourcegroups…
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ForwardingRulePatch'
        description: Parameters supplied to the Update operation.
        required: true
    delete:
      tags:
      - Forwarding Rules
      operationId: microsoftAzureForwardingrulesDelete
      description: 'Deletes a forwarding rule in a DNS forwarding ruleset. WARNING: This operation cannot be undone.'
      parameters:
      - $ref: ../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter
      - $ref: ../../../../../common-types/resource-management/v2/types.json#/parameters/ResourceGroupNameParameter
      - $ref: '#/components/parameters/DnsForwardingRulesetNameParameter'
      - $ref: '#/components/parameters/ForwardingRuleNameParameter'
      - $ref: ../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter
      - $ref: '#/components/parameters/IfMatchParameter'
      responses:
        '200':
          description: The forwarding rule has been deleted.
        '204':
          description: The forwarding rule was not found.
        default:
          description: Default response. It will be deserialized as per the Error definition.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CloudError'
      x-ms-examples:
        Delete forwarding rule in a DNS forwarding ruleset:
          $ref: ./examples/ForwardingRule_Delete.json
      summary: Microsoft Azure Delete Subscriptions Subscriptionid Resourcegroups…
    get:
      tags:
      - Forwarding Rules
      operationId: microsoftAzureForwardingrulesGet
      description: Gets properties of a forwarding rule in a DNS forwarding ruleset.
      parameters:
      - $ref: ../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter
      - $ref: ../../../../../common-types/resource-management/v2/types.json#/parameters/ResourceGroupNameParameter
      - $ref: '#/components/parameters/DnsForwardingRulesetNameParameter'
      - $ref: '#/components/parameters/ForwardingRuleNameParameter'
      - $ref: ../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter
      responses:
        '200':
          description: The forwarding rule was found.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ForwardingRule'
        default:
          description: Default response. It will be deserialized as per the Error definition.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CloudError'
      x-ms-examples:
        Retrieve forwarding rule in a DNS forwarding ruleset:
          $ref: ./examples/ForwardingRule_Get.json
      summary: Microsoft Azure Get Subscriptions Subscriptionid Resourcegroups…
  ? /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsForwardingRulesets/{dnsForwardingRulesetName}/forwardingRules
  : get:
      tags:
      - Forwarding Rules
      operationId: microsoftAzureForwardingrulesList
      description: Lists forwarding rules in a DNS forwarding ruleset.
      parameters:
      - $ref: ../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter
      - $ref: ../../../../../common-types/resource-management/v2/types.json#/parameters/ResourceGroupNameParameter
      - $ref: '#/components/parameters/DnsForwardingRulesetNameParameter'
      - $ref: ../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter
      - $ref: '#/components/parameters/TopParameter'
      responses:
        '200':
          description: List of forwarding rules in the DNS forwarding ruleset.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ForwardingRuleListResult'
        default:
          description: Default response. It will be deserialized as per the Error definition.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CloudError'
      x-ms-pageable:
        nextLinkName: nextLink
      x-ms-examples:
        List forwarding rules in a DNS forwarding ruleset:
          $ref: ./examples/ForwardingRule_List.json
      summary: Microsoft Azure Get Subscriptions Subscriptionid Resourcegroups…
components:
  schemas:
    ForwardingRule:
      description: Describes a forwarding rule within a DNS forwarding ruleset.
      type: object
      properties:
        etag:
          description: ETag of the forwarding rule.
          type: string
          readOnly: true
        properties:
          description: Properties of the forwarding rule.
          $ref: '#/components/schemas/ForwardingRuleProperties'
          x-ms-client-flatten: true
        systemData:
          $ref: ../../../../../common-types/resource-management/v2/types.json#/definitions/systemData
          description: Metadata pertaining to creation and last modification of the resource.
          readOnly: true
      allOf:
      - $ref: ../../../../../common-types/resource-management/v2/types.json#/definitions/ProxyResource
    ForwardingRuleListResult:
      description: The response to an enumeration operation on forwarding rules within a DNS forwarding ruleset.
      type: object
      properties:
        value:
          description: Enumeration of the forwarding rules.
          type: array
          items:
            $ref: '#/components/schemas/ForwardingRule'
        nextLink:
          description: The continuation token for the next page of results.
          type: string
          readOnly: true
    CloudErrorBody:
      description: The body of an error message
      type: object
      properties:
        code:
          description: The error code
          type: string
        message:
          description: A description of what caused the error
          type: string
        target:
          description: The target resource of the error message
          type: string
        details:
          description: Extra error information
          type: array
          items:
            $ref: '#/components/schemas/CloudErrorBody'
          x-ms-identifiers: []
      x-ms-external: true
    CloudError:
      description: An error message
      type: object
      properties:
        error:
          description: The error message body
          $ref: '#/components/schemas/CloudErrorBody'
      x-ms-external: true
    ForwardingRulePatch:
      description: Describes a forwarding rule for PATCH operation.
      type: object
      properties:
        properties:
          description: Updatable properties of the forwarding rule.
          $ref: '#/components/schemas/ForwardingRulePatchProperties'
          x-ms-client-flatten: true
    ForwardingRulePatchProperties:
      description: Represents the updatable properties of a forwarding rule within a DNS forwarding ruleset.
      type: object
      properties:
        targetDnsServers:
          description: DNS servers to forward the DNS query to.
          type: array
          items:
            $ref: '#/components/schemas/TargetDnsServer'
          x-ms-identifiers: []
        metadata:
          description: Metadata attached to the forwarding rule.
          type: object
          additionalProperties:
            type: string
        forwardingRuleState:
          type: string
          description: The state of forwarding rule.
          enum:
          - Enabled
          - Disabled
          default: Enabled
          x-ms-enum:
            name: ForwardingRuleState
            modelAsString: true
    TargetDnsServer:
      description: Describes a server to forward the DNS queries to.
      type: object
      properties:
        ipAddress:
          description: DNS server IP address.
          type: string
        port:
          description: DNS server port.
          type: integer
          format: int32
          default: 53
    ForwardingRuleProperties:
      description: Represents the properties of a forwarding rule within a DNS forwarding ruleset.
      type: object
      required:
      - domainName
      - targetDnsServers
      properties:
        domainName:
          description: The domain name for the forwarding rule.
          type: string
        targetDnsServers:
          description: DNS servers to forward the DNS query to.
          type: array
          items:
            $ref: '#/components/schemas/TargetDnsServer'
          x-ms-identifiers: []
        metadata:
          description: Metadata attached to the forwarding rule.
          type: object
          additionalProperties:
            type: string
        forwardingRuleState:
          type: string
          description: The state of forwarding rule.
          enum:
          - Enabled
          - Disabled
          x-ms-enum:
            name: ForwardingRuleState
            modelAsString: true
        provisioningState:
          description: The current provisioning state of the forwarding rule. This is a read-only property and any attempt to set this value will be ignored.
          $ref: '#/components/schemas/ProvisioningState'
          readOnly: true
    ProvisioningState:
      description: The current provisioning state of the resource.
      type: string
      enum:
      - Creating
      - Updating
      - Deleting
      - Succeeded
      - Failed
      - Canceled
      x-ms-enum:
        name: ProvisioningState
        modelAsString: true
  parameters:
    IfMatchParameter:
      name: If-Match
      in: header
      required: false
      x-ms-client-name: IfMatch
      description: ETag of the resource. Omit this value to always overwrite the current resource. Specify the last-seen ETag value to prevent accidentally overwriting any concurrent changes.
      x-ms-parameter-location: method
      schema:
        type: string
    DnsForwardingRulesetNameParameter:
      name: dnsForwardingRulesetName
      in: path
      required: true
      description: The name of the DNS forwarding ruleset.
      x-ms-parameter-location: method
      schema:
        type: string
    IfNoneMatchParameter:
      name: If-None-Match
      in: header
      required: false
      x-ms-client-name: IfNoneMatch
      description: Set to '*' to allow a new resource to be created, but to prevent updating an existing resource. Other values will be ignored.
      x-ms-parameter-location: method
      schema:
        type: string
    ForwardingRuleNameParameter:
      name: forwardingRuleName
      in: path
      required: true
      description: The name of the forwarding rule.
      x-ms-parameter-location: method
      schema:
        type: string
    TopParameter:
      name: $top
      in: query
      required: false
      description: The maximum number of results to return. If not specified, returns up to 100 results.
      x-ms-parameter-location: method
      schema:
        type: integer
        format: int32
  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