{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/microsoft-graph/json-schema/microsoft-graph-microsoft-graph-device-log-collection-response-schema.json",
  "title": "microsoft.graph.deviceLogCollectionResponse",
  "x-generated": "2026-11-12",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/microsoft-graph-devicemanagement-manageddevice-api-openapi.yml#/components/schemas/microsoft.graph.deviceLogCollectionResponse",
  "allOf": [
    {
      "$ref": "#/$defs/microsoft.graph.entity"
    },
    {
      "title": "deviceLogCollectionResponse",
      "required": [
        "@odata.type"
      ],
      "type": "object",
      "properties": {
        "enrolledByUser": {
          "type": [
            "string",
            "null"
          ],
          "description": "The User Principal Name (UPN) of the user that enrolled the device."
        },
        "expirationDateTimeUTC": {
          "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": "The DateTime of the expiration of the logs.",
          "format": "date-time"
        },
        "initiatedByUserPrincipalName": {
          "type": [
            "string",
            "null"
          ],
          "description": "The UPN for who initiated the request."
        },
        "managedDeviceId": {
          "pattern": "^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$",
          "type": "string",
          "description": "Indicates Intune device unique identifier.",
          "format": "uuid"
        },
        "receivedDateTimeUTC": {
          "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": "The DateTime the request was received.",
          "format": "date-time"
        },
        "requestedDateTimeUTC": {
          "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": "The DateTime of the request.",
          "format": "date-time"
        },
        "sizeInKB": {
          "oneOf": [
            {
              "type": [
                "number",
                "null"
              ],
              "format": "double"
            },
            {
              "type": [
                "string",
                "null"
              ]
            },
            {
              "$ref": "#/$defs/ReferenceNumeric"
            }
          ],
          "description": "The size of the logs in KB. Valid values -1.79769313486232E+308 to 1.79769313486232E+308"
        },
        "status": {
          "$ref": "#/$defs/microsoft.graph.appLogUploadState"
        },
        "@odata.type": {
          "type": "string"
        }
      },
      "description": "Windows Log Collection request entity."
    }
  ],
  "x-ms-discriminator-value": "#microsoft.graph.deviceLogCollectionResponse",
  "$defs": {
    "ReferenceNumeric": {
      "enum": [
        "-INF",
        "INF",
        "NaN",
        null
      ],
      "type": [
        "string",
        "null"
      ]
    },
    "microsoft.graph.appLogUploadState": {
      "title": "appLogUploadState",
      "enum": [
        "pending",
        "completed",
        "failed",
        "unknownFutureValue"
      ],
      "type": "string",
      "description": "AppLogUploadStatus",
      "x-ms-enum": {
        "name": "appLogUploadState",
        "modelAsString": false,
        "values": [
          {
            "value": "pending",
            "description": "Default. Indicates that request is waiting to be processed or under processing.",
            "name": "pending"
          },
          {
            "value": "completed",
            "description": "Indicates that request is completed with file uploaded to Azure blob for download.",
            "name": "completed"
          },
          {
            "value": "failed",
            "description": "Indicates that request is completed with file uploaded to Azure blob for download.",
            "name": "failed"
          },
          {
            "value": "unknownFutureValue",
            "description": "Evolvable enumeration sentinel value. Do not use.",
            "name": "unknownFutureValue"
          }
        ]
      }
    },
    "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"
        }
      }
    }
  }
}