Microsoft Defender Topology API

The Topology API from Microsoft Defender — 3 operation(s) for topology.

Operations 3

GET /subscriptions/{subscriptionId}/providers/Microsoft.Security/locations/{ascLocation}/topologies Topology list by home region #
GET /subscriptions/{subscriptionId}/providers/Microsoft.Security/topologies Topology list #
GET /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Security/locations/{ascLocation}/topologies/{topologyResourceName} Topology 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-topology-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-topology-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: Topology
paths:
  /subscriptions/{subscriptionId}/providers/Microsoft.Security/locations/{ascLocation}/topologies:
    get:
      operationId: Topology_ListByHomeRegion
      tags:
      - Topology
      description: Gets a list that allows to build a topology view of a subscription and location.
      parameters:
      - $ref: https://raw.githubusercontent.com/Azure/azure-rest-api-specs/main/specification/common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter
      - $ref: https://raw.githubusercontent.com/Azure/azure-rest-api-specs/main/specification/common-types/resource-management/v5/types.json#/parameters/SubscriptionIdParameter
      - name: ascLocation
        in: path
        description: The location where ASC stores the data of the subscription. can be retrieved from Get locations
        required: true
        schema:
          type: string
      responses:
        '200':
          description: Azure operation completed successfully.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/TopologyList'
        default:
          description: An unexpected error response.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Common.CloudError'
      x-ms-examples:
        Get topology on a subscription from security data location:
          $ref: https://raw.githubusercontent.com/Azure/azure-rest-api-specs/main/specification/security/resource-manager/Microsoft.Security/Security/stable/2020-01-01/examples/Topology/GetTopologySubscriptionLocation_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/2020-01-01/security-SecuritySolutions.json
      summary: Topology list by home region
      x-summary-source: derived
  /subscriptions/{subscriptionId}/providers/Microsoft.Security/topologies:
    get:
      operationId: Topology_List
      tags:
      - Topology
      description: Gets a list that allows to build a topology view of a subscription.
      parameters:
      - $ref: https://raw.githubusercontent.com/Azure/azure-rest-api-specs/main/specification/common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter
      - $ref: https://raw.githubusercontent.com/Azure/azure-rest-api-specs/main/specification/common-types/resource-management/v5/types.json#/parameters/SubscriptionIdParameter
      responses:
        '200':
          description: The request has succeeded.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/TopologyList'
        default:
          description: An unexpected error response.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Common.CloudError'
      x-ms-examples:
        Get topology on a subscription:
          $ref: https://raw.githubusercontent.com/Azure/azure-rest-api-specs/main/specification/security/resource-manager/Microsoft.Security/Security/stable/2020-01-01/examples/Topology/GetTopologySubscription_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/2020-01-01/security-SecuritySolutions.json
      summary: Topology list
      x-summary-source: derived
  ? /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Security/locations/{ascLocation}/topologies/{topologyResourceName}
  : get:
      operationId: Topology_Get
      tags:
      - Topology
      description: Gets a specific topology component.
      parameters:
      - $ref: https://raw.githubusercontent.com/Azure/azure-rest-api-specs/main/specification/common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter
      - $ref: https://raw.githubusercontent.com/Azure/azure-rest-api-specs/main/specification/common-types/resource-management/v5/types.json#/parameters/SubscriptionIdParameter
      - $ref: https://raw.githubusercontent.com/Azure/azure-rest-api-specs/main/specification/common-types/resource-management/v5/types.json#/parameters/ResourceGroupNameParameter
      - name: ascLocation
        in: path
        description: The location where ASC stores the data of the subscription. can be retrieved from Get locations
        required: true
        schema:
          type: string
      - name: topologyResourceName
        in: path
        description: Name of a topology resources collection.
        required: true
        schema:
          type: string
      responses:
        '200':
          description: Azure operation completed successfully.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/TopologyResource'
        default:
          description: An unexpected error response.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Common.CloudError'
      x-ms-examples:
        Get topology:
          $ref: https://raw.githubusercontent.com/Azure/azure-rest-api-specs/main/specification/security/resource-manager/Microsoft.Security/Security/stable/2020-01-01/examples/Topology/GetTopology_example.json
      x-source: https://raw.githubusercontent.com/Azure/azure-rest-api-specs/main/specification/security/resource-manager/Microsoft.Security/Security/stable/2020-01-01/security-SecuritySolutions.json
      summary: Topology get
      x-summary-source: derived
components:
  schemas:
    TopologySingleResourceParent:
      type: object
      properties:
        resourceId:
          type: string
          description: Azure resource id which serves as parent resource in topology view
          readOnly: true
    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
    TopologySingleResource:
      type: object
      properties:
        resourceId:
          type: string
          description: Azure resource id
          readOnly: true
        severity:
          type: string
          description: The security severity of the resource
          readOnly: true
        recommendationsExist:
          type: boolean
          description: Indicates if the resource has security recommendations
          readOnly: true
        networkZones:
          type: string
          description: Indicates the resource connectivity level to the Internet (InternetFacing, Internal ,etc.)
          readOnly: true
        topologyScore:
          type: integer
          format: int32
          description: Score of the resource based on its security severity
          readOnly: true
        location:
          type: string
          description: The location of this resource
          readOnly: true
        parents:
          type: array
          description: Azure resources connected to this resource which are in higher level in the topology view
          items:
            $ref: '#/components/schemas/TopologySingleResourceParent'
          readOnly: true
        children:
          type: array
          description: Azure resources connected to this resource which are in lower level in the topology view
          items:
            $ref: '#/components/schemas/TopologySingleResourceChild'
          readOnly: true
    TopologySingleResourceChild:
      type: object
      properties:
        resourceId:
          type: string
          description: Azure resource id which serves as child resource in topology view
          readOnly: true
    TopologyResourceProperties:
      type: object
      properties:
        calculatedDateTime:
          type: string
          format: date-time
          description: The UTC time on which the topology was calculated
          readOnly: true
        topologyResources:
          type: array
          description: Azure resources which are part of this topology resource
          items:
            $ref: '#/components/schemas/TopologySingleResource'
          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
    TopologyList:
      type: object
      properties:
        value:
          type: array
          items:
            $ref: '#/components/schemas/TopologyResource'
          readOnly: true
        nextLink:
          type: string
          readOnly: true
    TopologyResource:
      type: object
      description: Concrete proxy resource types can be created by aliasing this type using a specific property type.
      properties:
        properties:
          $ref: '#/components/schemas/TopologyResourceProperties'
          readOnly: true
          x-ms-client-flatten: true
        location:
          type: string
          description: Location where the resource is stored
          readOnly: true
      required:
      - location
      allOf:
      - $ref: https://raw.githubusercontent.com/Azure/azure-rest-api-specs/main/specification/common-types/resource-management/v5/types.json#/definitions/ProxyResource
  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.