Microsoft Defender Compliance Results API

The Compliance Results API from Microsoft Defender — 2 operation(s) for compliance results.

Operations 2

GET /{scope}/providers/Microsoft.Security/complianceResults Compliance results list #
GET /{resourceId}/providers/Microsoft.Security/complianceResults/{complianceResultName} Compliance results get #

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-defender:microsoft-defender-compliance-results-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. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

microsoft-defender-compliance-results-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Microsoft Defender for Cloud REST API (Microsoft.Security)…
  version: stable-composite
  description: Composite of the latest stable Microsoft.Security resource-manager swagger files published by Microsoft in Azure/azure-rest-api-specs. Each path keeps its own api-version via x-source.
  x-source-repo: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/security/resource-manager/Microsoft.Security/Security
servers:
- url: https://management.azure.com
security:
- azure_auth:
  - user_impersonation
tags:
- name: Compliance Results
paths:
  /{scope}/providers/Microsoft.Security/complianceResults:
    get:
      operationId: ComplianceResults_List
      tags:
      - Compliance Results
      description: Security compliance results in the subscription
      parameters:
      - $ref: https://raw.githubusercontent.com/Azure/azure-rest-api-specs/main/specification/common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter
      - name: scope
        in: path
        description: The fully qualified Azure Resource manager identifier of the resource.
        required: true
        x-ms-skip-url-encoding: true
        schema:
          type: string
      responses:
        '200':
          description: Azure operation completed successfully.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ComplianceResultList'
        default:
          description: An unexpected error response.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Common.CloudError'
      x-ms-examples:
        Get compliance results on subscription:
          $ref: https://raw.githubusercontent.com/Azure/azure-rest-api-specs/main/specification/security/resource-manager/Microsoft.Security/Security/stable/2017-08-01/examples/ComplianceResults/ListComplianceResults_example.json
      x-ms-pageable:
        nextLinkName: nextLink
      x-source: https://raw.githubusercontent.com/Azure/azure-rest-api-specs/main/specification/security/resource-manager/Microsoft.Security/Security/stable/2017-08-01/complianceResults.json
      summary: Compliance results list
      x-summary-source: derived
  /{resourceId}/providers/Microsoft.Security/complianceResults/{complianceResultName}:
    get:
      operationId: ComplianceResults_Get
      tags:
      - Compliance Results
      description: Security Compliance Result
      parameters:
      - $ref: https://raw.githubusercontent.com/Azure/azure-rest-api-specs/main/specification/common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter
      - name: resourceId
        in: path
        description: The fully qualified Azure Resource manager identifier of the resource.
        required: true
        x-ms-skip-url-encoding: true
        schema:
          type: string
      - name: complianceResultName
        in: path
        description: The compliance result key.
        required: true
        schema:
          type: string
      responses:
        '200':
          description: Azure operation completed successfully.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ComplianceResult'
        default:
          description: An unexpected error response.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Common.CloudError'
      x-ms-examples:
        Get compliance results on subscription:
          $ref: https://raw.githubusercontent.com/Azure/azure-rest-api-specs/main/specification/security/resource-manager/Microsoft.Security/Security/stable/2017-08-01/examples/ComplianceResults/GetComplianceResults_example.json
      x-source: https://raw.githubusercontent.com/Azure/azure-rest-api-specs/main/specification/security/resource-manager/Microsoft.Security/Security/stable/2017-08-01/complianceResults.json
      summary: Compliance results get
      x-summary-source: derived
components:
  schemas:
    Common.CloudErrorBody:
      type: object
      description: The error detail.
      properties:
        code:
          type: string
          description: The error code.
          readOnly: true
        message:
          type: string
          description: The error message.
          readOnly: true
        target:
          type: string
          description: The error target.
          readOnly: true
        details:
          type: array
          description: The error details.
          items:
            $ref: '#/components/schemas/Common.CloudErrorBody'
          readOnly: true
          x-ms-identifiers: []
        additionalInfo:
          type: array
          description: The error additional info.
          items:
            $ref: https://raw.githubusercontent.com/Azure/azure-rest-api-specs/main/specification/common-types/resource-management/v5/types.json#/definitions/ErrorAdditionalInfo
          readOnly: true
          x-ms-identifiers: []
      x-ms-external: true
    ComplianceResultList:
      type: object
      description: List of compliance results response
      properties:
        value:
          type: array
          description: The ComplianceResult items on this page
          items:
            $ref: '#/components/schemas/ComplianceResult'
        nextLink:
          type: string
          format: uri
          description: The link to the next page of items
      required:
      - value
    ComplianceResult:
      type: object
      description: a compliance result
      properties:
        properties:
          $ref: '#/components/schemas/ComplianceResultProperties'
          description: Compliance result data
          x-ms-client-flatten: true
      allOf:
      - $ref: https://raw.githubusercontent.com/Azure/azure-rest-api-specs/main/specification/common-types/resource-management/v5/types.json#/definitions/ProxyResource
    ComplianceResultProperties:
      type: object
      description: Compliance result data
      properties:
        resourceStatus:
          $ref: '#/components/schemas/ResourceStatus'
          description: The status of the resource regarding a single assessment
          readOnly: true
    Common.CloudError:
      type: object
      description: Common error response for all Azure Resource Manager APIs to return error details for failed operations. (This also follows the OData error response format.).
      properties:
        error:
          $ref: '#/components/schemas/Common.CloudErrorBody'
          description: The error object.
          x-ms-client-flatten: true
      x-ms-external: true
    ResourceStatus:
      type: string
      description: The status of the resource regarding a single assessment
      enum:
      - Healthy
      - NotApplicable
      - OffByPolicy
      - NotHealthy
      x-ms-enum:
        name: ResourceStatus
        modelAsString: true
        values:
        - name: Healthy
          value: Healthy
          description: This assessment on the resource is healthy
        - name: NotApplicable
          value: NotApplicable
          description: This assessment is not applicable to this resource
        - name: OffByPolicy
          value: OffByPolicy
          description: This assessment is turned off by policy on this subscription
        - name: NotHealthy
          value: NotHealthy
          description: This assessment on the resource is not healthy
  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.