Microsoft Azure Data Collection Rule Associations API

The DataCollectionRuleAssociations API from Microsoft Azure, for datacollectionruleassociations.

GitHub OpenAPI

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 /{resourceUri}/providers/Microsoft.Insights/dataCollectionRuleAssociations List data collection rules linked to a resource · Microsoft Azure Lists Associations For The Specified Resource #
Ask an LLM
“Which data collection rules are associated with my virtual machine?”
“How can I see what monitoring rules apply to a given resource?”
Tell an agent
List data collection rule associations for resource {resource_uri}.
Show which DCRs are attached to {resource_uri}.
GET /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/dataCollectionRules/{dataCollectionRuleName}/associations List resources associated with a data collection rule · Microsoft Azure Lists Associations For The Specified Data Collection Rule #
Ask an LLM
“Which resources is a particular data collection rule applied to?”
“How many machines use one of my DCRs?”
Tell an agent
Find all resources that use data collection rule {rule}.
Show every resource linked to DCR {rule}.
GET /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/dataCollectionEndpoints/{dataCollectionEndpointName}/associations List associations for a data collection endpoint · Microsoft Azure Lists Associations For The Specified Data Collection Endpoint #
Ask an LLM
“Which resources send data through a specific data collection endpoint?”
“Can I list associations tied to a DCE instead of a rule?”
Tell an agent
List associations for data collection endpoint {endpoint}.
Show resources linked to DCE {endpoint}.
GET /{resourceUri}/providers/Microsoft.Insights/dataCollectionRuleAssociations/{associationName} Get a data collection rule association · Microsoft Azure Returns The Specified Association #
Ask an LLM
“What rule does a specific association on my resource point to?”
“Can I read one data collection rule association by name?”
Tell an agent
Show association {association} on resource {resource_uri}.
Get the DCR association named {association} for {resource_uri}.
PUT /{resourceUri}/providers/Microsoft.Insights/dataCollectionRuleAssociations/{associationName} Associate a data collection rule with a resource · Microsoft Azure Creates Or Updates An Association #
Ask an LLM
“How do I apply a data collection rule to a virtual machine?”
“Can I change which rule an existing association points at?”
Tell an agent
Create association {association} on resource {resource_uri} with properties {properties}.
Link resource {resource_uri} to a data collection rule via association {association}.
DELETE /{resourceUri}/providers/Microsoft.Insights/dataCollectionRuleAssociations/{associationName} Remove a data collection rule association · Microsoft Azure Deletes An Association #
Ask an LLM
“How do I stop a data collection rule from applying to a resource?”
“Can I detach a DCR from a machine without deleting the rule?”
Tell an agent destructive · confirm first
Delete association {association} from resource {resource_uri}.
Detach the DCR association {association} on {resource_uri}.

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-datacollectionruleassociations-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-datacollectionruleassociations-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Microsoft Azure Azure Monitor Data Collection Rule…
  description: Provides operations for working with Azure Monitor data collection rule associations
  version: 2021-09-01-preview
  x-ms-code-generation-settings:
    name: MonitorManagementClient
servers:
- url: https://management.azure.com
security:
- azure_auth:
  - user_impersonation
tags:
- name: DataCollectionRuleAssociations
paths:
  /{resourceUri}/providers/Microsoft.Insights/dataCollectionRuleAssociations:
    get:
      tags:
      - DataCollectionRuleAssociations
      summary: Microsoft Azure Lists Associations For The Specified Resource
      operationId: microsoftAzureDatacollectionruleassociationsListbyresource
      parameters:
      - $ref: '#/components/parameters/ResourceUriParameter'
      - $ref: ../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter
      responses:
        '200':
          description: Request completed successfully
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/DataCollectionRuleAssociationProxyOnlyResourceListResult'
        default:
          description: Error
          content:
            application/json:
              schema:
                $ref: ./dataCollectionRules_API.json#/definitions/ErrorResponseCommonV2
      x-ms-pageable:
        nextLinkName: nextLink
      x-ms-examples:
        List associations for specified resource:
          $ref: ./examples/DataCollectionRuleAssociationsListByResource.json
      description: Needs a more full description created.
  ? /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/dataCollectionRules/{dataCollectionRuleName}/associations
  : get:
      tags:
      - DataCollectionRuleAssociations
      summary: Microsoft Azure Lists Associations For The Specified Data Collection Rule
      operationId: microsoftAzureDatacollectionruleassociationsListbyrule
      parameters:
      - $ref: ../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter
      - $ref: ../../../../../common-types/resource-management/v2/types.json#/parameters/ResourceGroupNameParameter
      - $ref: '#/components/parameters/DataCollectionRuleNameParameter'
      - $ref: ../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter
      responses:
        '200':
          description: Request completed successfully
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/DataCollectionRuleAssociationProxyOnlyResourceListResult'
        default:
          description: Error
          content:
            application/json:
              schema:
                $ref: ./dataCollectionRules_API.json#/definitions/ErrorResponseCommonV2
      x-ms-pageable:
        nextLinkName: nextLink
      x-ms-examples:
        List associations for specified data collection rule:
          $ref: ./examples/DataCollectionRuleAssociationsListByRule.json
      description: Needs a more full description created.
  ? /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/dataCollectionEndpoints/{dataCollectionEndpointName}/associations
  : get:
      tags:
      - DataCollectionRuleAssociations
      summary: Microsoft Azure Lists Associations For The Specified Data Collection Endpoint
      operationId: microsoftAzureDatacollectionruleassociationsListbydatacollectionendpoint
      parameters:
      - $ref: ../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter
      - $ref: ../../../../../common-types/resource-management/v2/types.json#/parameters/ResourceGroupNameParameter
      - $ref: '#/components/parameters/DataCollectionEndpointNameParameter'
      - $ref: ../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter
      responses:
        '200':
          description: Request completed successfully
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/DataCollectionRuleAssociationProxyOnlyResourceListResult'
        default:
          description: Error
          content:
            application/json:
              schema:
                $ref: ./dataCollectionRules_API.json#/definitions/ErrorResponseCommonV2
      x-ms-pageable:
        nextLinkName: nextLink
      x-ms-examples:
        List associations for specified data collection endpoint:
          $ref: ./examples/DataCollectionRuleAssociationsListByDataCollectionEndpoint.json
      description: Needs a more full description created.
  /{resourceUri}/providers/Microsoft.Insights/dataCollectionRuleAssociations/{associationName}:
    get:
      tags:
      - DataCollectionRuleAssociations
      summary: Microsoft Azure Returns The Specified Association
      operationId: microsoftAzureDatacollectionruleassociationsGet
      parameters:
      - $ref: '#/components/parameters/ResourceUriParameter'
      - $ref: '#/components/parameters/AssociationNameParameter'
      - $ref: ../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter
      responses:
        '200':
          description: Request completed successfully
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/DataCollectionRuleAssociationProxyOnlyResource'
        default:
          description: Error
          content:
            application/json:
              schema:
                $ref: ./dataCollectionRules_API.json#/definitions/ErrorResponseCommonV2
      x-ms-examples:
        Get association:
          $ref: ./examples/DataCollectionRuleAssociationsGet.json
      description: Needs a more full description created.
    put:
      tags:
      - DataCollectionRuleAssociations
      summary: Microsoft Azure Creates Or Updates An Association
      operationId: microsoftAzureDatacollectionruleassociationsCreate
      parameters:
      - $ref: '#/components/parameters/ResourceUriParameter'
      - $ref: '#/components/parameters/AssociationNameParameter'
      - $ref: ../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter
      responses:
        '200':
          description: Association was successfully updated
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/DataCollectionRuleAssociationProxyOnlyResource'
        '201':
          description: Association was successfully created
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/DataCollectionRuleAssociationProxyOnlyResource'
        default:
          description: Error
          content:
            application/json:
              schema:
                $ref: ./dataCollectionRules_API.json#/definitions/ErrorResponseCommonV2
      x-ms-examples:
        Create or update association:
          $ref: ./examples/DataCollectionRuleAssociationsCreate.json
      description: Needs a more full description created.
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/DataCollectionRuleAssociationProxyOnlyResource'
        description: The payload
    delete:
      tags:
      - DataCollectionRuleAssociations
      summary: Microsoft Azure Deletes An Association
      operationId: microsoftAzureDatacollectionruleassociationsDelete
      parameters:
      - $ref: '#/components/parameters/ResourceUriParameter'
      - $ref: '#/components/parameters/AssociationNameParameter'
      - $ref: ../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter
      responses:
        '200':
          description: Association was successfully deleted
        '204':
          description: Association did not exist
        default:
          description: Error
          content:
            application/json:
              schema:
                $ref: ./dataCollectionRules_API.json#/definitions/ErrorResponseCommonV2
      x-ms-examples:
        Delete association:
          $ref: ./examples/DataCollectionRuleAssociationsDelete.json
      description: Needs a more full description created.
components:
  parameters:
    AssociationNameParameter:
      in: path
      name: associationName
      description: The name of the association. The name is case insensitive.
      required: true
      x-ms-parameter-location: method
      schema:
        type: string
    DataCollectionRuleNameParameter:
      in: path
      name: dataCollectionRuleName
      description: The name of the data collection rule. The name is case insensitive.
      required: true
      x-ms-parameter-location: method
      schema:
        type: string
    ResourceUriParameter:
      in: path
      name: resourceUri
      description: The identifier of the resource.
      required: true
      x-ms-parameter-location: method
      x-ms-skip-url-encoding: true
      schema:
        type: string
        minLength: 1
    DataCollectionEndpointNameParameter:
      in: path
      name: dataCollectionEndpointName
      description: The name of the data collection endpoint. The name is case insensitive.
      required: true
      x-ms-parameter-location: method
      schema:
        type: string
  schemas:
    DataCollectionRuleAssociation:
      description: Definition of association of a data collection rule with a monitored Azure resource.
      type: object
      properties:
        description:
          description: Description of the association.
          type: string
        dataCollectionRuleId:
          description: The resource ID of the data collection rule that is to be associated.
          type: string
          example: /subscriptions/703362b3-f278-4e4b-9179-c76eaf41ffc2/resourceGroups/myResourceGroup/providers/Microsoft.Insights/dataCollectionRules/myCollectionRule
        dataCollectionEndpointId:
          description: The resource ID of the data collection endpoint that is to be associated.
          type: string
          example: /subscriptions/703362b3-f278-4e4b-9179-c76eaf41ffc2/resourceGroups/myResourceGroup/providers/Microsoft.Insights/dataCollectionEndpoints/myCollectionEndpoint
        provisioningState:
          description: The resource provisioning state.
          enum:
          - Creating
          - Updating
          - Deleting
          - Succeeded
          - Failed
          type: string
          readOnly: true
          example: Creating
          x-ms-enum:
            name: KnownDataCollectionRuleAssociationProvisioningState
            modelAsString: true
          x-ms-mutability:
          - read
        metadata:
          description: Metadata about the resource
          allOf:
          - $ref: '#/components/schemas/Metadata'
          readOnly: true
          x-ms-mutability:
          - read
    DataCollectionRuleAssociationProxyOnlyResourceListResult:
      description: A pageable list of resources.
      required:
      - value
      type: object
      properties:
        value:
          description: A list of resources.
          type: array
          items:
            $ref: '#/components/schemas/DataCollectionRuleAssociationProxyOnlyResource'
        nextLink:
          description: The URL to use for getting the next set of results.
          type: string
    Metadata:
      description: Metadata about the resource
      type: object
      properties:
        provisionedBy:
          description: Azure offering managing this resource on-behalf-of customer.
          type: string
          readOnly: true
          example: Azure Security Center
          x-ms-mutability:
          - read
    DataCollectionRuleAssociationProxyOnlyResource:
      description: Definition of generic ARM proxy resource.
      type: object
      properties:
        properties:
          description: Resource properties.
          allOf:
          - $ref: '#/components/schemas/DataCollectionRuleAssociation'
          x-ms-client-flatten: true
        id:
          description: Fully qualified ID of the resource.
          type: string
          readOnly: true
          example: /subscriptions/703362b3-f278-4e4b-9179-c76eaf41ffc2/resourceGroups/myResourceGroup/providers/Microsoft.Insights/dataCollectionRules/myCollectionRule
          x-ms-mutability:
          - read
        name:
          description: The name of the resource.
          type: string
          readOnly: true
          example: myCollectionRule
          x-ms-mutability:
          - read
        type:
          description: The type of the resource.
          type: string
          readOnly: true
          example: Microsoft.Insights/dataCollectionRules
          x-ms-mutability:
          - read
        etag:
          description: Resource entity tag (ETag).
          type: string
          readOnly: true
          x-ms-mutability:
          - read
        systemData:
          description: Metadata pertaining to creation and last modification of the resource.
          allOf:
          - $ref: ../../../../../common-types/resource-management/v2/types.json#/definitions/systemData
          readOnly: true
          x-ms-mutability:
          - read
      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