{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/microsoft-defender/json-schema/microsoft-defender-microsoft-graph-simulation-automation-schema.json",
  "title": "microsoft.graph.simulationAutomation",
  "x-generated": "2026-11-12",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/microsoft-defender-security-attacksimulationroot-api-openapi.yml#/components/schemas/microsoft.graph.simulationAutomation",
  "allOf": [
    {
      "$ref": "#/$defs/microsoft.graph.entity"
    },
    {
      "title": "simulationAutomation",
      "required": [
        "@odata.type"
      ],
      "type": "object",
      "properties": {
        "createdBy": {
          "anyOf": [
            {
              "$ref": "#/$defs/microsoft.graph.emailIdentity"
            },
            {
              "type": [
                "object",
                "null"
              ]
            }
          ],
          "description": "Identity of the user who created the attack simulation automation."
        },
        "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",
            "null"
          ],
          "description": "Date and time when the attack simulation automation was created.",
          "format": "date-time"
        },
        "description": {
          "type": [
            "string",
            "null"
          ],
          "description": "Description of the attack simulation automation."
        },
        "displayName": {
          "type": [
            "string",
            "null"
          ],
          "description": "Display name of the attack simulation automation. Supports $filter and $orderby."
        },
        "lastModifiedBy": {
          "anyOf": [
            {
              "$ref": "#/$defs/microsoft.graph.emailIdentity"
            },
            {
              "type": [
                "object",
                "null"
              ]
            }
          ],
          "description": "Identity of the user who most recently modified the attack simulation automation."
        },
        "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",
            "null"
          ],
          "description": "Date and time when the attack simulation automation was most recently modified.",
          "format": "date-time"
        },
        "lastRunDateTime": {
          "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",
            "null"
          ],
          "description": "Date and time of the latest run of the attack simulation automation.",
          "format": "date-time"
        },
        "nextRunDateTime": {
          "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",
            "null"
          ],
          "description": "Date and time of the upcoming run of the attack simulation automation.",
          "format": "date-time"
        },
        "status": {
          "anyOf": [
            {
              "$ref": "#/$defs/microsoft.graph.simulationAutomationStatus"
            },
            {
              "type": [
                "object",
                "null"
              ]
            }
          ],
          "description": "Status of the attack simulation automation. Supports $filter and $orderby. The possible values are: unknown, draft, notRunning, running, completed, unknownFutureValue."
        },
        "runs": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/microsoft.graph.simulationAutomationRun"
          },
          "description": "A collection of simulation automation runs.",
          "x-ms-navigationProperty": true
        },
        "@odata.type": {
          "type": "string"
        }
      }
    }
  ],
  "x-ms-discriminator-value": "#microsoft.graph.simulationAutomation",
  "$defs": {
    "microsoft.graph.emailIdentity": {
      "allOf": [
        {
          "$ref": "#/$defs/microsoft.graph.identity"
        },
        {
          "title": "emailIdentity",
          "required": [
            "@odata.type"
          ],
          "type": "object",
          "properties": {
            "email": {
              "type": [
                "string",
                "null"
              ],
              "description": "Email address of the user."
            },
            "@odata.type": {
              "type": "string",
              "default": "#microsoft.graph.emailIdentity"
            }
          }
        }
      ],
      "x-ms-discriminator-value": "#microsoft.graph.emailIdentity"
    },
    "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.identity": {
      "title": "identity",
      "required": [
        "@odata.type"
      ],
      "type": "object",
      "properties": {
        "displayName": {
          "type": [
            "string",
            "null"
          ],
          "description": "The display name of the identity.For drive items, the display name might not always be available or up to date. For example, if a user changes their display name the API might show the new value in a future response, but the items associated with the user don't show up as changed when using delta."
        },
        "id": {
          "type": [
            "string",
            "null"
          ],
          "description": "Unique identifier for the identity or actor. For example, in the access reviews decisions API, this property might record the id of the principal, that is, the group, user, or application that's subject to review."
        },
        "@odata.type": {
          "type": "string"
        }
      }
    },
    "microsoft.graph.simulationAutomationRun": {
      "allOf": [
        {
          "$ref": "#/$defs/microsoft.graph.entity"
        },
        {
          "title": "simulationAutomationRun",
          "required": [
            "@odata.type"
          ],
          "type": "object",
          "properties": {
            "endDateTime": {
              "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",
                "null"
              ],
              "description": "Date and time when the run ends in an attack simulation automation.",
              "format": "date-time"
            },
            "simulationId": {
              "type": [
                "string",
                "null"
              ],
              "description": "Unique identifier for the attack simulation campaign initiated in the attack simulation automation run."
            },
            "startDateTime": {
              "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",
                "null"
              ],
              "description": "Date and time when the run starts in an attack simulation automation.",
              "format": "date-time"
            },
            "status": {
              "anyOf": [
                {
                  "$ref": "#/$defs/microsoft.graph.simulationAutomationRunStatus"
                },
                {
                  "type": [
                    "object",
                    "null"
                  ]
                }
              ],
              "description": "Status of the attack simulation automation run. The possible values are: unknown, running, succeeded, failed, skipped, unknownFutureValue."
            },
            "@odata.type": {
              "type": "string"
            }
          }
        }
      ],
      "x-ms-discriminator-value": "#microsoft.graph.simulationAutomationRun"
    },
    "microsoft.graph.simulationAutomationRunStatus": {
      "title": "simulationAutomationRunStatus",
      "enum": [
        "unknown",
        "running",
        "succeeded",
        "failed",
        "skipped",
        "unknownFutureValue"
      ],
      "type": "string"
    },
    "microsoft.graph.simulationAutomationStatus": {
      "title": "simulationAutomationStatus",
      "enum": [
        "unknown",
        "draft",
        "notRunning",
        "running",
        "completed",
        "unknownFutureValue"
      ],
      "type": "string"
    }
  }
}