Microsoft Defender · Schema

microsoft.graph.security.detectionRule

Cloud SecurityData ProtectionThreat IntelligenceEmail SecurityEndpoint Security

Properties

Name Type Description
id string The unique identifier for an entity. Read-only.
@odata.type string
createdBy string Name of the user or application that created the rule. Read-only. Supports $filter (eq, ne, not, in, startsWith, endsWith, contains).
createdDateTime string Timestamp of rule creation. Read-only. Supports $filter (eq, ne, not, le, ge, lt, gt) and $orderby.
description stringnull A user-supplied description of the detection rule. Supports $filter (eq, ne, not, in, startsWith, endsWith, contains).
detectionAction object
displayName string The display name of the rule. Supports $filter (eq, ne, not, in, startsWith, endsWith, contains) and $orderby.
lastModifiedBy string Name of the user or application that last updated the rule. Read-only. Supports $filter (eq, ne, not, in, startsWith, endsWith, contains).
lastModifiedDateTime string Timestamp of when the rule was last updated. Read-only. Supports $filter (eq, ne, not, le, ge, lt, gt) and $orderby.
queryCondition object
schedule object
status object
View JSON Schema on GitHub

JSON Schema

microsoft-defender-microsoft-graph-security-detection-rule-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/microsoft-defender/json-schema/microsoft-defender-microsoft-graph-security-detection-rule-schema.json",
  "title": "microsoft.graph.security.detectionRule",
  "x-generated": "2026-11-12",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/microsoft-defender-security-rulesroot-api-openapi.yml#/components/schemas/microsoft.graph.security.detectionRule",
  "allOf": [
    {
      "$ref": "#/$defs/microsoft.graph.entity"
    },
    {
      "title": "detectionRule",
      "required": [
        "@odata.type"
      ],
      "type": "object",
      "properties": {
        "createdBy": {
          "type": "string",
          "description": "Name of the user or application that created the rule. Read-only. Supports $filter (eq, ne, not, in, startsWith, endsWith, contains)."
        },
        "createdDateTime": {
          "pattern": "^[0-9]{4,}-(0[1-9]|1[012])-(0[1-9]|[12][0-9]|3[01])T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]{1,12})?(Z|[+-][0-9][0-9]:[0-9][0-9])$",
          "type": "string",
          "description": "Timestamp of rule creation. Read-only. Supports $filter (eq, ne, not, le, ge, lt, gt) and $orderby.",
          "format": "date-time"
        },
        "description": {
          "type": [
            "string",
            "null"
          ],
          "description": "A user-supplied description of the detection rule. Supports $filter (eq, ne, not, in, startsWith, endsWith, contains)."
        },
        "detectionAction": {
          "$ref": "#/$defs/microsoft.graph.security.detectionAction"
        },
        "displayName": {
          "type": "string",
          "description": "The display name of the rule. Supports $filter (eq, ne, not, in, startsWith, endsWith, contains) and $orderby."
        },
        "lastModifiedBy": {
          "type": "string",
          "description": "Name of the user or application that last updated the rule. Read-only. Supports $filter (eq, ne, not, in, startsWith, endsWith, contains)."
        },
        "lastModifiedDateTime": {
          "pattern": "^[0-9]{4,}-(0[1-9]|1[012])-(0[1-9]|[12][0-9]|3[01])T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]{1,12})?(Z|[+-][0-9][0-9]:[0-9][0-9])$",
          "type": "string",
          "description": "Timestamp of when the rule was last updated. Read-only. Supports $filter (eq, ne, not, le, ge, lt, gt) and $orderby.",
          "format": "date-time"
        },
        "queryCondition": {
          "$ref": "#/$defs/microsoft.graph.security.queryCondition"
        },
        "schedule": {
          "$ref": "#/$defs/microsoft.graph.security.ruleSchedule"
        },
        "status": {
          "$ref": "#/$defs/microsoft.graph.security.detectionRuleStatus"
        },
        "@odata.type": {
          "type": "string"
        }
      }
    }
  ],
  "x-ms-discriminator-value": "#microsoft.graph.security.detectionRule",
  "$defs": {
    "microsoft.graph.entity": {
      "title": "entity",
      "required": [
        "@odata.type"
      ],
      "type": "object",
      "properties": {
        "id": {
          "type": "string",
          "description": "The unique identifier for an entity. Read-only."
        },
        "@odata.type": {
          "type": "string"
        }
      }
    },
    "microsoft.graph.security.accountEntityMapping": {
      "allOf": [
        {
          "$ref": "#/$defs/microsoft.graph.security.entityMapping"
        },
        {
          "title": "accountEntityMapping",
          "required": [
            "@odata.type"
          ],
          "type": "object",
          "properties": {
            "aadUserIdColumn": {
              "type": [
                "string",
                "null"
              ],
              "description": "Name of the detection query column that maps to the Microsoft Entra user ID of the alert entity."
            },
            "dnsDomainColumn": {
              "type": [
                "string",
                "null"
              ],
              "description": "Name of the detection query column that maps to the DNS domain of the alert entity."
            },
            "nameColumn": {
              "type": [
                "string",
                "null"
              ],
              "description": "Name of the detection query column that maps to the name of the alert entity."
            },
            "ntDomainColumn": {
              "type": [
                "string",
                "null"
              ],
              "description": "Name of the detection query column that maps to the NT domain of the alert entity."
            },
            "sidColumn": {
              "type": [
                "string",
                "null"
              ],
              "description": "Name of the detection query column that maps to the security identifier (SID) of the alert entity."
            },
            "upnColumn": {
              "type": [
                "string",
                "null"
              ],
              "description": "Name of the detection query column that maps to the user principal name (UPN) of the alert entity."
            },
            "upnSuffixColumn": {
              "type": [
                "string",
                "null"
              ],
              "description": "Name of the detection query column that maps to the UPN suffix of the alert entity."
            },
            "@odata.type": {
              "type": "string",
              "default": "#microsoft.graph.security.accountEntityMapping"
            }
          }
        }
      ],
      "x-ms-discriminator-value": "#microsoft.graph.security.accountEntityMapping"
    },
    "microsoft.graph.security.accountObjectIdAction": {
      "allOf": [
        {
          "$ref": "#/$defs/microsoft.graph.security.automatedAction"
        },
        {
          "title": "accountObjectIdAction",
          "required": [
            "@odata.type"
          ],
          "type": "object",
          "properties": {
            "accountObjectIdColumn": {
              "type": "string",
              "description": "Name of the hunting-query result column that contains the Microsoft Entra object ID of the targeted account."
            },
            "@odata.type": {
              "type": "string",
              "default": "#microsoft.graph.security.accountObjectIdAction"
            }
          }
        }
      ],
      "x-ms-discriminator-value": "#microsoft.graph.security.accountObjectIdAction"
    },
    "microsoft.graph.security.accountSidAction": {
      "allOf": [
        {
          "$ref": "#/$defs/microsoft.graph.security.automatedAction"
        },
        {
          "title": "accountSidAction",
          "required": [
            "@odata.type"
          ],
          "type": "object",
          "properties": {
            "accountSidColumn": {
              "type": "string",
              "description": "Name of the hunting-query result column that contains the SID of the targeted account."
            },
            "@odata.type": {
              "type": "string",
              "default": "#microsoft.graph.security.accountSidAction"
            }
          }
        }
      ],
      "x-ms-discriminator-value": "#microsoft.graph.security.accountSidAction"
    },
    "microsoft.graph.security.alertCustomDetails": {
      "allOf": [
        {
          "$ref": "#/$defs/microsoft.graph.security.dictionary"
        },
        {
          "title": "alertCustomDetails",
          "required": [
            "@odata.type"
          ],
          "type": "object",
          "properties": {
            "@odata.type": {
              "type": "string",
              "default": "#microsoft.graph.security.alertCustomDetails"
            }
          }
        }
      ],
      "x-ms-discriminator-value": "#microsoft.graph.security.alertCustomDetails"
    },
    "microsoft.graph.security.alertSeverity": {
      "title": "alertSeverity",
      "enum": [
        "unknown",
        "informational",
        "low",
        "medium",
        "high",
        "unknownFutureValue"
      ],
      "type": "string"
    },
    "microsoft.graph.security.alertTemplate": {
      "title": "alertTemplate",
      "required": [
        "@odata.type"
      ],
      "type": "object",
      "properties": {
        "customDetails": {
          "anyOf": [
            {
              "$ref": "#/$defs/microsoft.graph.security.alertCustomDetails"
            },
            {
              "type": [
                "object",
                "null"
              ]
            }
          ],
          "description": "Custom key-value detail pairs to include in the alert. Each value identifies the detection query column that supplies the corresponding custom detail."
        },
        "description": {
          "type": "string",
          "description": "Description of the alert triggered by the custom detection rule."
        },
        "entityMappings": {
          "$ref": "#/$defs/microsoft.graph.security.entityMappingConfiguration"
        },
        "recommendedActions": {
          "type": [
            "string",
            "null"
          ],
          "description": "Recommended actions to mitigate the threat related to the alert triggered by the custom detection rule."
        },
        "severity": {
          "$ref": "#/$defs/microsoft.graph.security.alertSeverity"
        },
        "tactics": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/microsoft.graph.security.mitreTactic"
          },
          "description": "The MITRE ATT&CK tactics framing for this alert."
        },
        "title": {
          "type": "string",
          "description": "Name of the alert triggered by the custom detection rule."
        },
        "@odata.type": {
          "type": "string"
        }
      }
    },
    "microsoft.graph.security.amazonResourceEntityMapping": {
      "allOf": [
        {
          "$ref": "#/$defs/microsoft.graph.security.entityMapping"
        },
        {
          "title": "amazonResourceEntityMapping",
          "required": [
            "@odata.type"
          ],
          "type": "object",
          "properties": {
            "amazonResourceIdColumn": {
              "type": "string",
              "description": "Name of the detection query column that maps to the Amazon resource ID of the alert entity."
            },
            "@odata.type": {
              "type": "string",
              "default": "#microsoft.graph.security.amazonResourceEntityMapping"
            }
          }
        }
      ],
      "x-ms-discriminator-value": "#microsoft.graph.security.amazonResourceEntityMapping"
    },
    "microsoft.graph.security.automatedAction": {
      "title": "automatedAction",
      "required": [
        "@odata.type"
      ],
      "type": "object",
      "properties": {
        "@odata.type": {
          "type": "string"
        }
      }
    },
    "microsoft.graph.security.automatedActionSet": {
      "title": "automatedActionSet",
      "required": [
        "@odata.type"
      ],
      "type": "object",
      "properties": {
        "allowFiles": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/microsoft.graph.security.fileAction"
          },
          "description": "File actions that allow files identified by file hash columns in the hunting-query results."
        },
        "blockFiles": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/microsoft.graph.security.fileAction"
          },
          "description": "File actions that block files identified by file hash columns in the hunting-query results."
        },
        "collectInvestigationPackages": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/microsoft.graph.security.deviceAction"
          },
          "description": "Device actions that collect investigation packages from devices identified in the hunting-query results."
        },
        "disableUsers": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/microsoft.graph.security.accountSidAction"
          },
          "description": "Account actions that disable users identified by account SID columns in the hunting-query results."
        },
        "forceUserPasswordResets": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/microsoft.graph.security.accountSidAction"
          },
          "description": "Account actions that force password resets for users identified by account SID columns in the hunting-query results."
        },
        "hardDeleteEmails": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/microsoft.graph.security.emailAction"
          },
          "description": "Email actions that permanently delete messages identified in the hunting-query results."
        },
        "initiateInvestigations": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/microsoft.graph.security.deviceAction"
          },
          "description": "Device actions that initiate investigations on devices identified in the hunting-query results."
        },
        "isolateDevices": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/microsoft.graph.security.isolateDeviceAction"
          },
          "description": "Device actions that isolate devices identified in the hunting-query results."
        },
        "markUsersAsCompromised": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/microsoft.graph.security.accountObjectIdAction"
          },
          "description": "Account actions that mark users as compromised when they're identified by Microsoft Entra object ID columns in the hunting-query results."
        },
        "moveEmailsToDeletedItems": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/microsoft.graph.security.emailAction"
          },
          "description": "Email actions that move messages identified in the hunting-query results to Deleted Items."
        },
        "moveEmailsToInbox": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/microsoft.graph.security.emailAction"
          },
          "description": "Email actions that move messages identified in the hunting-query results to the Inbox."
        },
        "moveEmailsToJunk": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/microsoft.graph.security.emailAction"
          },
          "description": "Email actions that move messages identified in the hunting-query results to Junk Email."
        },
        "restrictAppExecutions": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/microsoft.graph.security.deviceAction"
          },
          "description": "Device actions that restrict app execution on devices identified in the hunting-query results."
        },
        "runAntivirusScans": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/microsoft.graph.security.deviceAction"
          },
          "description": "Device actions that run antivirus scans on devices identified in the hunting-query results."
        },
        "softDeleteEmails": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/microsoft.graph.security.emailAction"
          },
          "description": "Email actions that soft-delete messages identified in the hunting-query results."
        },
        "stopAndQuarantineFiles": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/microsoft.graph.security.stopAndQuarantineFileAction"
          },
          "description": "File actions that stop running files and quarantine them on devices identified in the hunting-query results."
        },
        "@odata.type": {
          "type": "string"
        }
      }
    },
    "microsoft.graph.security.azureResourceEntityMapping": {
      "allOf": [
        {
          "$ref": "#/$defs/microsoft.graph.security.entityMapping"
        },
        {
          "title": "azureResourceEntityMapping",
          "required": [
            "@odata.type"
          ],
          "type": "object",
          "properties": {
            "resourceIdColumn": {
              "type": "string",
              "description": "Name of the detection query column that maps to the resource ID of the alert entity."
            },
            "@odata.type": {
              "type": "string",
              "default": "#microsoft.graph.security.azureResourceEntityMapping"
            }
          }
        }
      ],
      "x-ms-discriminator-value": "#microsoft.graph.security.azureResourceEntityMapping"
    },
    "microsoft.graph.security.cloudApplicationEntityMapping": {
      "allOf": [
        {
          "$ref": "#/$defs/microsoft.graph.security.entityMapping"
        },
        {
          "title": "cloudApplicationEntityMapping",
          "required": [
            "@odata.type"
          ],
          "type": "object",
          "properties": {
            "appIdColumn": {
              "type": [
                "string",
                "null"
              ],
              "description": "Name of the detection query column that maps to the application ID of the alert entity."
            },
            "nameColumn": {
              "type": [
                "string",
                "null"
              ],
              "description": "Name of the detection query column that maps to the name of the alert entity."
            },
            "@odata.type": {
              "type": "string",
              "default": "#microsoft.graph.security.cloudApplicationEntityMapping"
            }
          }
        }
      ],
      "x-ms-discriminator-value": "#microsoft.graph.security.cloudApplicationEntityMapping"
    },
    "microsoft.graph.security.detectionAction": {
      "title": "detectionAction",
      "required": [
        "@odata.type"
      ],
      "type": "object",
      "properties": {
        "alertTemplate": {
          "$ref": "#/$defs/microsoft.graph.security.alertTemplate"
        },
        "automatedActions": {
          "anyOf": [
            {
              "$ref": "#/$defs/microsoft.graph.security.automatedActionSet"
            },
            {
              "type": [
                "object",
                "null"
              ]
            }
          ],
          "description": "The set of automated actions to run against entities that match the detection."
        },
        "organizationalScope": {
          "anyOf": [
            {
              "$ref": "#/$defs/microsoft.graph.security.organizationalScope"
            },
            {
              "type": [
                "object",
                "null"
              ]
            }
          ],
          "description": "The set of groups (for example, device groups) to which the parent custom detection rule applies."
        },
        "@odata.type": {
          "type": "string"
        }
      }
    },
    "microsoft.graph.security.detectionRuleStatus": {
      "title": "detectionRuleStatus",
      "enum": [
        "enabled",
        "disabled",
        "autoDisabled",
        "unknownFutureValue"
      ],
      "type": "string"
    },
    "microsoft.graph.security.deviceAction": {
      "allOf": [
        {
          "$ref": "#/$defs/microsoft.graph.security.automatedAction"
        },
        {
          "title": "deviceAction",
          "required": [
            "@odata.type"
          ],
          "type": "object",
          "properties": {
            "deviceIdColumn": {
              "type": "string",
              "description": "Name of the hunting-query result column that contains the device ID for the targeted device."
            },
            "@odata.type": {
              "type": "string",
              "default": "#microsoft.graph.security.deviceAction"
            }
          }
        }
      ]
    },
    "microsoft.graph.security.dictionary": {
      "title": "dictionary",
      "required": [
        "@odata.type"
      ],
      "type": "object",
      "properties": {
        "@odata.type": {
          "type": "string"
        }
      }
    },
    "microsoft.graph.security.dnsEntityMapping": {
      "allOf": [
        {
          "$ref": "#/$defs/microsoft.graph.security.entityMapping"
        },
        {
          "title": "dnsEntityMapping",
          "required": [
            "@odata.type"
          ],
          "type": "object",
          "properties": {
            "domainNameColumn": {
              "type": "string",
              "description": "Name of the detection query column that maps to the domain name of the alert entity."
            },
            "hostIpAddressColumn": {
              "type": "string",
              "description": "Name of the detection query column that maps to the host IP address of the alert entity."
            },
            "serverIpColumn": {
              "type": "string",
              "description": "Name of the detection query column that maps to the server IP address of the alert entity."
            },
            "@odata.type": {
              "type": "string",
              "default": "#microsoft.graph.security.dnsEntityMapping"
            }
          }
        }
      ],
      "x-ms-discriminator-value": "#microsoft.graph.security.dnsEntityMapping"
    },
    "microsoft.graph.security.emailAction": {
      "allOf": [
        {
          "$ref": "#/$defs/microsoft.graph.security.automatedAction"
        },
        {
          "title": "emailAction",
          "required": [
            "@odata.type"
          ],
          "type": "object",
          "properties": {
            "networkMessageIdColumn": {
              "type": "string",
              "description": "Name of the hunting-query result column that contains the network message ID of the targeted email message."
            },
            "recipientColumn": {
              "type": "string",
              "description": "Name of the hunting-query result column that contains the recipient of the targeted email message."
            },
            "@odata.type": {
              "type": "string",
              "default": "#microsoft.graph.security.emailAction"
            }
          }
        }
      ],
      "x-ms-discriminator-value": "#microsoft.graph.security.emailAction"
    },
    "microsoft.graph.security.entityMapping": {
      "title": "entityMapping",
      "required": [
        "@odata.type"
      ],
      "type": "object",
      "properties": {
        "@odata.type": {
          "type": "string"
        }
      }
    },
    "microsoft.graph.security.entityMappingConfiguration": {
      "title": "entityMappingConfiguration",
      "required": [
        "@odata.type"
      ],
      "type": "object",
      "properties": {
        "accounts": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/microsoft.graph.security.accountEntityMapping"
          },
          "description": "Mappings from detection query columns to account entities attached to the alert."
        },
        "amazonResources": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/microsoft.graph.security.amazonResourceEntityMapping"
          },
          "description": "Mappings from detection query columns to Amazon Web Services resource entities attached to the alert."
        },
        "azureResources": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/microsoft.graph.security.azureResourceEntityMapping"
          },
          "description": "Mappings from detection query columns to Azure resource entities attached to the alert."
        },
        "cloudApplications": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/microsoft.graph.security.cloudApplicationEntityMapping"
          },
          "description": "Mappings from detection query columns to cloud application entities attached to the alert."
        },
        "dns": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/microsoft.graph.security.dnsEntityMapping"
          },
          "description": "Mappings from detection query columns to DNS entities attached to the alert."
        },
        "files": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/microsoft.graph.security.fileEntityMapping"
          },
          "description": "Mappings from detection query columns to file entities attached to the alert."
        },
        "googleCloudResources": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/microsoft.graph.security.googleCloudResourceEntityMapping"
          },
          "description": "Mappings from detection query columns to Google Cloud resource entities attached to the alert."
        },
        "hosts": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/microsoft.graph.security.hostEntityMapping"
          },
          "description": "Mappings from detection query columns to host entities attached to the alert."
        },
        "ips": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/microsoft.graph.security.ipEntityMapping"
          },
          "description": "Mappings from detection query columns to IP address entities attached to the alert."
        },
        "mailboxes": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/microsoft.graph.security.mailboxEntityMapping"
          },
          "description": "Mappings from detection query columns to mailbox entities attached to the alert."
        },
        "mailClusters": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/microsoft.graph.security.mailClusterEntityMapping"
          },
          "description": "Mappings from detection query columns to mail cluster entities attached to the alert."
        },
        "mailMessages": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/microsoft.graph.security.mailMessageEntityMapping"
          },
          "description": "Mappings from detection query columns to mail message entities attached to the alert."
        },
        "oAuthApplications": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/microsoft.graph.security.oAuthApplicationEntityMapping"
          },
          "description": "Mappings from detection query columns to OAuth application entities attached to the alert."
        },
        "processes": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/microsoft.graph.security.processEntityMapping"
          },
          "description": "Mappings from detection query columns to process entities attached to the alert."
        },
        "registryValues": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/microsoft.graph.security.registryValueEntityMapping"
          },
          "description": "Mappings from detection query columns to registry value entities attached to the alert."
        },
        "securityGroups": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/microsoft.graph.security.securityGroupEntityMapping"
          },
          "description": "Mappings from detection query columns to security group entities attached to the alert."
        },
        "urls": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/microsoft.graph.security.urlEntityMapping"
          },
          "description": "Mappings from detection query columns to URL entities attached to the alert."
        },
        "@odata.type": {
          "type": "string"
        }
      }
    },
    "microsoft.graph.security.fileAction": {
      "allOf": [
        {
          "$ref": "#/$defs/microsoft.graph.security.automatedAction"
        },
        {
          "title": "fileAction",
          "required": [
            "@odata.type"
          ],
          "type": "object",
          "properties": {
            "deviceGroupNames": {
              "type": "array",
              "items": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "description": "Names of the device groups where the file action applies."
            },
            "sha1Column": {
              "type": [
                "string",
                "null"
              ],
              "description": "Name of the hunting-query result column that contains the SHA-1 hash of the targeted file."
            },
            "sha256Column": {
              "type": [
                "string",
                "null"
              ],
              "description": "Name of the hunting-query result column that contains the SHA-256 hash of the targeted file."
            },
            "@odata.type": {
              "type": "string",
              "default": "#microsoft.graph.security.fileAction"
            }
          }
        }
      ],
      "x-ms-discriminator-value": "#microsoft.graph.security.fileAction"
    },
    "microsoft.graph.security.fileEntityMapping": {
      "allOf": [
        {
          "$ref": "#/$defs/microsoft.graph.security.entityMapping"
        },
        {
          "title": "fileEntityMapping",
          "required": [
            "@odata.type"
          ],
          "type": "object",
          "properties": {
            "nameColumn": {
              "type": [
                "string",
                "null"
              ],
              "description": "Name of the detection query column that maps to the name of the alert entity."
            },
            "sha1Column": {
              "type": [
                "string",
                "null"
              ],
              "description": "Name of the detection query column that maps to the SHA-1 hash of the alert entity."
            },
            "sha256Column": {
              "type": [
                "string",
                "null"
              ],
              "description": "Name of the detection query column that maps to the SHA-256 hash of the alert entity."
            },
            "@odata.type": {
              "type": "string",
              "default": "#microsoft.graph.security.fileEntityMapping"
            }
          }
        }
      ],
      "x-ms-discriminator-value": "#microsoft.graph.security.fileEntityMapping"
    },
    "microsoft.graph.security.googleCloudResourceEntityMapping": {
      "allOf": [
        {
          "$ref": "#/$defs/microsoft.graph.security.entityMapping"
        },
        {
          "title": "googleCloudResourceEntityMapping",
          "required": [
            "@odata.type"
          ],
          "type": "object",
          "properties": {
            "fullResourceNameColumn": {
              "type": "string",
              "description": "Name of the detection query column that maps to the full resource name of the alert entity."
            },
            "@odata.type": {
              "type": "string",
              "default": "#microsoft.graph.security.googleCloudResourceEntityMapping"
            }
          }
        }
      ],
      "x-ms-discriminator-value": "#microsoft.graph.security.googleCloudResourceEntityMapping"
    },
    "microsoft.graph.security.hostEntityMapping": {
      "allOf": [
        {
          "$ref": "#/$defs/microsoft.graph.security.entityMapping"
        },
        {
          "title": "hostEntityMapping",
          "required": [
            "@odata.type"
          ],
          "type": "object",
          "properties": {
            "deviceIdColumn": {
              "type": [
                "string",
                "null"
              ],
              "description": "Name of the detection query column that maps to the device ID of the alert entity."
            },
            "dnsDomainColumn": {
              "type": [
                "string",
                "null"
              ],
              "description": "Name of the detection query column that maps to the DNS domain of the alert entity."
            },
            "nameColumn": {
              "type": [
                "string",
                "null"
              ],
              "description": "Name of the detection query column that maps to the name of the alert entity."
            },
            "netBiosNameColumn": {
              "type": [
                "string",
                "null"
        

# --- truncated at 32 KB (46 KB total) ---
# Full source: https://artifacts.apis.io/microsoft-defender/json-schema/microsoft-defender-microsoft-graph-security-detection-rule-schema.json

Work with this as data

Every JSON Schema 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 schemas

4 MCP tools reach this
  • find_json_schemasBrowse and filter every JSON Schema in the catalog.
  • 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 JSON Schema
curl "https://apis.io/api/v1/json-schemas/microsoft-defender-microsoft-graph-security-detection-rule"
All schemas
curl "https://apis.io/api/v1/json-schemas?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.