Microsoft Defender IoT Security Recommendations API

The IoT Security Recommendations API from Microsoft Defender — 2 operation(s) for iot security recommendations.

Operations 2

GET /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Security/iotSecuritySolutions/{solutionName}/iotRecommendations Iot recommendations list #
GET /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Security/iotSecuritySolutions/{solutionName}/iotRecommendations/{iotRecommendationId} Iot recommendations 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-iot-security-recommendations-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-iot-security-recommendations-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: IoT Security Recommendations
paths:
  ? /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Security/iotSecuritySolutions/{solutionName}/iotRecommendations
  : get:
      x-ms-examples:
        Get IoT Recommendations:
          $ref: https://raw.githubusercontent.com/Azure/azure-rest-api-specs/main/specification/security/resource-manager/Microsoft.Security/Security/stable/2019-08-01/examples/IotRecommendations/GetIoTRecommendationList.json
      tags:
      - IoT Security Recommendations
      description: List IoT recommendations
      operationId: IotRecommendations_List
      parameters:
      - $ref: ./common/v1/types.json#/parameters/ApiVersion
      - $ref: ./common/v1/types.json#/parameters/SubscriptionId
      - $ref: ./common/v1/types.json#/parameters/ResourceGroupName
      - $ref: '#/components/parameters/SolutionName'
      - in: query
        name: recommendationType
        required: false
        description: Filter by recommendation type
        schema:
          type: string
      - in: query
        name: deviceId
        required: false
        description: Filter by device id
        schema:
          type: string
      - in: query
        name: $limit
        required: false
        description: Limit the number of items returned in a single page
        schema:
          type: integer
          format: int32
      - in: query
        name: $skipToken
        required: false
        description: Skip token used for pagination
        schema:
          type: string
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/IotRecommendationList'
        default:
          description: Error response describing why the operation failed.
          content:
            application/json:
              schema:
                $ref: ./common/v1/types.json#/definitions/CloudError
      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/2019-08-01/iotRecommendations.json
      summary: Iot recommendations list
      x-summary-source: derived
  ? /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Security/iotSecuritySolutions/{solutionName}/iotRecommendations/{iotRecommendationId}
  : get:
      x-ms-examples:
        Get IoT Recommendation:
          $ref: https://raw.githubusercontent.com/Azure/azure-rest-api-specs/main/specification/security/resource-manager/Microsoft.Security/Security/stable/2019-08-01/examples/IotRecommendations/GetIoTRecommendation.json
      tags:
      - IoT Security Recommendations
      operationId: IotRecommendations_Get
      description: Get IoT recommendation
      parameters:
      - $ref: ./common/v1/types.json#/parameters/ApiVersion
      - $ref: ./common/v1/types.json#/parameters/SubscriptionId
      - $ref: ./common/v1/types.json#/parameters/ResourceGroupName
      - $ref: '#/components/parameters/SolutionName'
      - in: path
        name: iotRecommendationId
        required: true
        description: Id of the recommendation
        schema:
          type: string
      responses:
        '200':
          description: IoT recommendation
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/IotRecommendation'
        default:
          description: Error response describing why the operation failed.
          content:
            application/json:
              schema:
                $ref: ./common/v1/types.json#/definitions/CloudError
      x-source: https://raw.githubusercontent.com/Azure/azure-rest-api-specs/main/specification/security/resource-manager/Microsoft.Security/Security/stable/2019-08-01/iotRecommendations.json
      summary: Iot recommendations get
      x-summary-source: derived
components:
  schemas:
    IotRecommendationProperties:
      type: object
      description: IoT recommendation properties
      properties:
        deviceId:
          description: Identifier of the device being reported on
          readOnly: true
          type: string
          example: device-1
        recommendationType:
          description: The type name of the recommendation
          readOnly: true
          type: string
          example: IoT_PrivilegedContainer
        discoveredTimeUtc:
          description: The discovery time of the recommendation
          readOnly: true
          type: string
          example: '2020-05-13T06:32:25Z'
        recommendationAdditionalData:
          type: object
          description: A bag of fields which extends the recommendation information
          example:
            SnapshotId: 48519d58-4e35-46cd-aed5-6251af95ed50
            TotalFailedRules: '7'
            TotalRulesFailedDuoToError: '1'
            TotalInformationalFailedRules: '2'
            TotalCriticalFailedRules: '3'
            TotalWarningFailedRules: '1'
    IotRecommendationList:
      description: List of IoT recommendations
      type: object
      properties:
        value:
          description: List data
          readOnly: true
          type: array
          items:
            $ref: '#/components/schemas/IotRecommendation'
        nextLink:
          readOnly: true
          type: string
          description: When available, follow the URI to get the next page of data
        totalCount:
          readOnly: true
          format: int32
          type: integer
          description: Total count of recommendations that conforms with the given filter options (not affected by page size)
    IotRecommendation:
      type: object
      description: IoT recommendation
      properties:
        properties:
          x-ms-client-flatten: true
          description: Recommendation properties
          $ref: '#/components/schemas/IotRecommendationProperties'
      allOf:
      - $ref: ./common/v1/types.json#/definitions/Resource
  parameters:
    SolutionName:
      name: solutionName
      in: path
      required: true
      description: The name of the IoT Security solution.
      x-ms-parameter-location: method
      schema:
        type: string
  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.