{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/microsoft-azure/json-schema/microsoft-azure-snapshot-resource-list-schema.json",
  "title": "SnapshotResourceList",
  "description": "Object that includes an array of resources and a possible link for next set.",
  "x-generated": "2026-11-05",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/microsoft-azure-appcomplianceautomation-api-openapi.yml#/components/schemas/SnapshotResourceList",
  "type": "object",
  "properties": {
    "value": {
      "description": "List of the snapshots",
      "type": "array",
      "readOnly": true,
      "items": {
        "$ref": "#/$defs/SnapshotResource"
      }
    },
    "nextLink": {
      "description": "The URL the client should use to fetch the next page (per server side paging).\nIt's null for now, added for future use.",
      "type": "string"
    }
  },
  "$defs": {
    "Assessment": {
      "type": "object",
      "description": "A class represent the assessment.",
      "properties": {
        "name": {
          "description": "The name of the assessment.",
          "type": "string",
          "readOnly": true
        },
        "severity": {
          "$ref": "#/$defs/AssessmentSeverity",
          "readOnly": true,
          "description": "The severity level of this assessment."
        },
        "description": {
          "description": "The description of the assessment.",
          "type": "string",
          "readOnly": true
        },
        "remediation": {
          "description": "The remediation of the assessment.",
          "type": "string",
          "readOnly": true
        },
        "isPass": {
          "type": "string",
          "enum": [
            "True",
            "False"
          ],
          "readOnly": true,
          "description": "Indicates whether all the resource(s) are compliant.",
          "x-ms-enum": {
            "name": "IsPass",
            "modelAsString": true
          }
        },
        "policyId": {
          "description": "The policy id mapping to this assessment.",
          "type": "string",
          "readOnly": true
        },
        "resourceList": {
          "readOnly": true,
          "type": "array",
          "description": "List of resource assessments.",
          "items": {
            "description": "Single resource metadata.",
            "$ref": "#/$defs/AssessmentResource"
          },
          "x-ms-identifiers": [
            "resourceId"
          ]
        }
      }
    },
    "AssessmentResource": {
      "type": "object",
      "description": "A class represent the assessment resource.",
      "properties": {
        "resourceId": {
          "description": "The Id of the resource.",
          "type": "string",
          "readOnly": true
        },
        "resourceStatus": {
          "description": "Resource status.",
          "readOnly": true,
          "$ref": "#/$defs/ResourceStatus"
        },
        "reason": {
          "description": "The reason for the N/A resource.",
          "type": "string",
          "readOnly": true
        },
        "statusChangeDate": {
          "description": "The status change date for the resource. For unavailable date, set it as N/A.",
          "type": "string",
          "readOnly": true
        }
      }
    },
    "AssessmentSeverity": {
      "description": "Indicates the assessment severity.",
      "enum": [
        "High",
        "Medium",
        "Low"
      ],
      "readOnly": true,
      "type": "string",
      "x-ms-enum": {
        "name": "AssessmentSeverity",
        "modelAsString": true
      }
    },
    "Category": {
      "type": "object",
      "description": "A class represent the compliance category.",
      "properties": {
        "categoryName": {
          "description": "The name of the compliance category. e.g. \"Operational Security\"",
          "type": "string",
          "readOnly": true
        },
        "categoryType": {
          "description": "The category type ",
          "$ref": "#/$defs/CategoryType",
          "readOnly": true
        },
        "categoryStatus": {
          "readOnly": true,
          "description": "Category status.",
          "$ref": "#/$defs/CategoryStatus"
        },
        "controlFamilies": {
          "readOnly": true,
          "type": "array",
          "description": "List of control families.",
          "items": {
            "description": "Single control family content.",
            "$ref": "#/$defs/ControlFamily"
          },
          "x-ms-identifiers": [
            "familyName"
          ]
        }
      }
    },
    "CategoryStatus": {
      "description": "Indicates the category status.",
      "enum": [
        "Healthy",
        "Unhealthy"
      ],
      "readOnly": true,
      "type": "string",
      "x-ms-enum": {
        "name": "CategoryStatus",
        "modelAsString": true
      }
    },
    "CategoryType": {
      "description": "Indicates the compliance category type.",
      "enum": [
        "FullyAutomated",
        "PartiallyAutomated",
        "Manual"
      ],
      "readOnly": true,
      "type": "string",
      "x-ms-enum": {
        "name": "CategoryType",
        "modelAsString": true
      }
    },
    "ComplianceResult": {
      "type": "object",
      "description": "A class represent the compliance result.",
      "properties": {
        "complianceName": {
          "description": "The name of the compliance. e.g. \"M365\"",
          "type": "string",
          "readOnly": true
        },
        "categories": {
          "readOnly": true,
          "type": "array",
          "description": "List of categories.",
          "items": {
            "description": "Single category content.",
            "$ref": "#/$defs/Category"
          },
          "x-ms-identifiers": [
            "categoryName"
          ]
        }
      }
    },
    "Control": {
      "type": "object",
      "description": "A class represent the control.",
      "properties": {
        "controlId": {
          "description": "The Id of the control. e.g. \"Operational Security#10\"",
          "type": "string",
          "readOnly": true
        },
        "controlShortName": {
          "description": "The short name of the control. e.g. \"Unsupported OS and Software.\"",
          "type": "string",
          "readOnly": true
        },
        "controlFullName": {
          "description": "The full name of the control. e.g. \"Validate that unsupported operating systems and software components are not in use.\"",
          "type": "string",
          "readOnly": true
        },
        "controlType": {
          "description": "The control type ",
          "$ref": "#/$defs/ControlType",
          "readOnly": true
        },
        "controlDescription": {
          "description": "The control's description",
          "type": "string",
          "readOnly": true
        },
        "controlDescriptionHyperLink": {
          "description": "The hyper link to the control's description'.",
          "type": "string",
          "readOnly": true
        },
        "controlStatus": {
          "description": "Control status.",
          "$ref": "#/$defs/ControlStatus",
          "readOnly": true
        },
        "assessments": {
          "readOnly": true,
          "type": "array",
          "description": "List of assessments.",
          "items": {
            "description": "Single assessment content.",
            "$ref": "#/$defs/Assessment"
          },
          "x-ms-identifiers": [
            "name"
          ]
        }
      }
    },
    "ControlFamily": {
      "type": "object",
      "description": "A class represent the control family.",
      "properties": {
        "familyName": {
          "description": "The name of the control family. e.g. \"Malware Protection - Anti-Virus\"",
          "type": "string",
          "readOnly": true
        },
        "familyType": {
          "description": "The control family type ",
          "$ref": "#/$defs/ControlFamilyType",
          "readOnly": true
        },
        "familyStatus": {
          "readOnly": true,
          "description": "Control family status.",
          "$ref": "#/$defs/ControlFamilyStatus"
        },
        "controls": {
          "readOnly": true,
          "type": "array",
          "description": "List of controls.",
          "items": {
            "description": "Single control content.",
            "$ref": "#/$defs/Control"
          },
          "x-ms-identifiers": [
            "controlId"
          ]
        }
      }
    },
    "ControlFamilyStatus": {
      "description": "Indicates the control family status.",
      "enum": [
        "Healthy",
        "Unhealthy"
      ],
      "readOnly": true,
      "type": "string",
      "x-ms-enum": {
        "name": "ControlFamilyStatus",
        "modelAsString": true
      }
    },
    "ControlFamilyType": {
      "description": "Indicates the control family type.",
      "enum": [
        "FullyAutomated",
        "PartiallyAutomated",
        "Manual"
      ],
      "readOnly": true,
      "type": "string",
      "x-ms-enum": {
        "name": "ControlFamilyType",
        "modelAsString": true
      }
    },
    "ControlStatus": {
      "description": "Indicates the control status.",
      "enum": [
        "Passed",
        "Failed",
        "NotApplicable"
      ],
      "readOnly": true,
      "type": "string",
      "x-ms-enum": {
        "name": "ControlStatus",
        "modelAsString": true
      }
    },
    "ControlType": {
      "description": "Indicates the control type.",
      "enum": [
        "FullyAutomated",
        "PartiallyAutomated",
        "Manual"
      ],
      "readOnly": true,
      "type": "string",
      "x-ms-enum": {
        "name": "ControlType",
        "modelAsString": true
      }
    },
    "OverviewStatus": {
      "description": "The overview of the compliance result for one report.",
      "type": "object",
      "properties": {
        "passedCount": {
          "format": "int32",
          "type": "integer",
          "description": "The count of all passed full automation control."
        },
        "failedCount": {
          "format": "int32",
          "type": "integer",
          "description": "The count of all failed full automation control."
        },
        "manualCount": {
          "format": "int32",
          "type": "integer",
          "description": "The count of all manual control."
        }
      }
    },
    "ProvisioningState": {
      "type": "string",
      "description": "Resource provisioning states.",
      "enum": [
        "Succeeded",
        "Failed",
        "Canceled",
        "Creating",
        "Deleting",
        "Updating"
      ],
      "readOnly": true,
      "x-ms-enum": {
        "name": "provisioningState",
        "modelAsString": true
      }
    },
    "ReportComplianceStatus": {
      "type": "object",
      "readOnly": true,
      "description": "A list which includes all the compliance result for one report.",
      "properties": {
        "m365": {
          "description": "The Microsoft 365 certification name.",
          "$ref": "#/$defs/OverviewStatus"
        }
      }
    },
    "ReportProperties": {
      "type": "object",
      "description": "Report's properties.",
      "required": [
        "timeZone",
        "triggerTime",
        "resources"
      ],
      "properties": {
        "id": {
          "type": "string",
          "description": "Report id in database.",
          "readOnly": true
        },
        "status": {
          "description": "Report status.",
          "enum": [
            "Active",
            "Failed",
            "Disabled"
          ],
          "readOnly": true,
          "type": "string",
          "x-ms-enum": {
            "name": "ReportStatus",
            "modelAsString": true
          }
        },
        "tenantId": {
          "type": "string",
          "description": "Report's tenant id.",
          "readOnly": true
        },
        "reportName": {
          "description": "Report name.",
          "type": "string",
          "readOnly": true
        },
        "offerGuid": {
          "description": "Report offer Guid.",
          "type": "string"
        },
        "timeZone": {
          "type": "string",
          "description": "Report collection trigger time's time zone, the available list can be obtained by executing \"Get-TimeZone -ListAvailable\" in PowerShell.\nAn example of valid timezone id is \"Pacific Standard Time\"."
        },
        "triggerTime": {
          "format": "date-time",
          "description": "Report collection trigger time.",
          "type": "string"
        },
        "nextTriggerTime": {
          "format": "date-time",
          "type": "string",
          "description": "Report next collection trigger time.",
          "readOnly": true
        },
        "lastTriggerTime": {
          "format": "date-time",
          "type": "string",
          "description": "Report last collection trigger time.",
          "readOnly": true
        },
        "subscriptions": {
          "type": "array",
          "description": "List of subscription Ids.",
          "items": {
            "type": "string",
            "description": "Single subscription Id."
          },
          "readOnly": true
        },
        "resources": {
          "type": "array",
          "description": "List of resource data.",
          "items": {
            "description": "Single resource metadata.",
            "$ref": "#/$defs/ResourceMetadata"
          },
          "x-ms-identifiers": [
            "resourceId"
          ]
        },
        "complianceStatus": {
          "readOnly": true,
          "description": "Report compliance status.",
          "$ref": "#/$defs/ReportComplianceStatus"
        },
        "provisioningState": {
          "readOnly": true,
          "description": "Azure lifecycle management",
          "$ref": "#/$defs/ProvisioningState"
        }
      }
    },
    "ResourceMetadata": {
      "type": "object",
      "description": "Single resource Id's metadata.",
      "required": [
        "resourceId"
      ],
      "properties": {
        "resourceId": {
          "description": "Resource Id - e.g. \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.Compute/virtualMachines/vm1\".",
          "type": "string"
        },
        "resourceType": {
          "description": "Resource type.",
          "type": "string"
        },
        "resourceKind": {
          "description": "Resource kind.",
          "type": "string"
        },
        "resourceName": {
          "description": "Resource name.",
          "type": "string"
        },
        "tags": {
          "type": "object",
          "description": "Resource's tag type.",
          "additionalProperties": {
            "description": "Tag properties.",
            "type": "string"
          }
        }
      }
    },
    "ResourceStatus": {
      "description": "Indicates the resource status.",
      "enum": [
        "Healthy",
        "Unhealthy",
        "NotApplicable"
      ],
      "readOnly": true,
      "type": "string",
      "x-ms-enum": {
        "name": "ResourceStatus",
        "modelAsString": true
      }
    },
    "SnapshotProperties": {
      "type": "object",
      "description": "Snapshot's properties.",
      "properties": {
        "id": {
          "description": "Snapshot id in the database.",
          "type": "string",
          "readOnly": true
        },
        "snapshotName": {
          "description": "Snapshot name.",
          "type": "string",
          "readOnly": true
        },
        "createdAt": {
          "type": "string",
          "format": "date-time",
          "description": "The timestamp of resource creation (UTC).",
          "readOnly": true
        },
        "provisioningState": {
          "readOnly": true,
          "description": "Azure lifecycle management",
          "$ref": "#/$defs/ProvisioningState"
        },
        "reportProperties": {
          "readOnly": true,
          "description": "The report essential info.",
          "$ref": "#/$defs/ReportProperties"
        },
        "reportSystemData": {
          "readOnly": true,
          "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/systemData"
        },
        "complianceResults": {
          "readOnly": true,
          "type": "array",
          "description": "List of compliance results.",
          "items": {
            "description": "Single compliance result.",
            "$ref": "#/$defs/ComplianceResult"
          },
          "x-ms-identifiers": []
        }
      }
    },
    "SnapshotResource": {
      "type": "object",
      "description": "A class represent a AppComplianceAutomation snapshot resource.",
      "allOf": [
        {
          "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ProxyResource"
        }
      ],
      "properties": {
        "properties": {
          "description": "Snapshot's property'.",
          "readOnly": true,
          "$ref": "#/$defs/SnapshotProperties"
        }
      }
    }
  }
}