{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/microsoft-azure-backup/json-schema/microsoft-azure-backup-protected-item-resource-list-schema.json",
  "title": "ProtectedItemResourceList",
  "description": "List of ProtectedItem resources",
  "x-generated": "2026-11-12",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/_superseded/microsoft-azure-backup-backupprotecteditems-api-openapi.yml#/components/schemas/ProtectedItemResourceList",
  "type": "object",
  "properties": {
    "value": {
      "type": "array",
      "description": "List of resources.",
      "items": {
        "$ref": "#/$defs/ProtectedItemResource"
      }
    }
  },
  "allOf": [
    {
      "$ref": "#/$defs/ResourceList"
    }
  ],
  "$defs": {
    "Azure.Core.azureLocation": {
      "type": "string",
      "description": "Represents an Azure geography region where supported resource providers live."
    },
    "BackupManagementType": {
      "type": "string",
      "description": "Backup management type to execute the current job.",
      "enum": [
        "Invalid",
        "AzureIaasVM",
        "MAB",
        "DPM",
        "AzureBackupServer",
        "AzureSql",
        "AzureStorage",
        "AzureWorkload",
        "DefaultBackup"
      ],
      "x-ms-enum": {
        "name": "BackupManagementType",
        "modelAsString": true,
        "values": [
          {
            "name": "Invalid",
            "value": "Invalid"
          },
          {
            "name": "AzureIaasVM",
            "value": "AzureIaasVM"
          },
          {
            "name": "MAB",
            "value": "MAB"
          },
          {
            "name": "DPM",
            "value": "DPM"
          },
          {
            "name": "AzureBackupServer",
            "value": "AzureBackupServer"
          },
          {
            "name": "AzureSql",
            "value": "AzureSql"
          },
          {
            "name": "AzureStorage",
            "value": "AzureStorage"
          },
          {
            "name": "AzureWorkload",
            "value": "AzureWorkload"
          },
          {
            "name": "DefaultBackup",
            "value": "DefaultBackup"
          }
        ]
      }
    },
    "CreateMode": {
      "type": "string",
      "description": "Create mode to indicate recovery of existing soft deleted data source or creation of new data source.",
      "enum": [
        "Invalid",
        "Default",
        "Recover"
      ],
      "x-ms-enum": {
        "name": "CreateMode",
        "modelAsString": true,
        "values": [
          {
            "name": "Invalid",
            "value": "Invalid"
          },
          {
            "name": "Default",
            "value": "Default"
          },
          {
            "name": "Recover",
            "value": "Recover"
          }
        ]
      }
    },
    "DataSourceType": {
      "type": "string",
      "description": "Type of workload this item represents.",
      "enum": [
        "Invalid",
        "VM",
        "FileFolder",
        "AzureSqlDb",
        "SQLDB",
        "Exchange",
        "Sharepoint",
        "VMwareVM",
        "SystemState",
        "Client",
        "GenericDataSource",
        "SQLDataBase",
        "AzureFileShare",
        "SAPHanaDatabase",
        "SAPAseDatabase",
        "SAPHanaDBInstance",
        "SQLInstance"
      ],
      "x-ms-enum": {
        "name": "DataSourceType",
        "modelAsString": true,
        "values": [
          {
            "name": "Invalid",
            "value": "Invalid"
          },
          {
            "name": "VM",
            "value": "VM"
          },
          {
            "name": "FileFolder",
            "value": "FileFolder"
          },
          {
            "name": "AzureSqlDb",
            "value": "AzureSqlDb"
          },
          {
            "name": "SQLDB",
            "value": "SQLDB"
          },
          {
            "name": "Exchange",
            "value": "Exchange"
          },
          {
            "name": "Sharepoint",
            "value": "Sharepoint"
          },
          {
            "name": "VMwareVM",
            "value": "VMwareVM"
          },
          {
            "name": "SystemState",
            "value": "SystemState"
          },
          {
            "name": "Client",
            "value": "Client"
          },
          {
            "name": "GenericDataSource",
            "value": "GenericDataSource"
          },
          {
            "name": "SQLDataBase",
            "value": "SQLDataBase"
          },
          {
            "name": "AzureFileShare",
            "value": "AzureFileShare"
          },
          {
            "name": "SAPHanaDatabase",
            "value": "SAPHanaDatabase"
          },
          {
            "name": "SAPAseDatabase",
            "value": "SAPAseDatabase"
          },
          {
            "name": "SAPHanaDBInstance",
            "value": "SAPHanaDBInstance"
          },
          {
            "name": "SQLInstance",
            "value": "SQLInstance",
            "description": "A SQL Server instance."
          }
        ]
      }
    },
    "ProtectedItem": {
      "type": "object",
      "description": "Base class for backup items.",
      "properties": {
        "protectedItemType": {
          "type": "string",
          "description": "backup item type."
        },
        "backupManagementType": {
          "$ref": "#/$defs/BackupManagementType",
          "description": "Type of backup management for the backed up item.",
          "readOnly": true
        },
        "workloadType": {
          "$ref": "#/$defs/DataSourceType",
          "description": "Type of workload this item represents.",
          "readOnly": true
        },
        "containerName": {
          "type": "string",
          "description": "Unique name of container"
        },
        "sourceResourceId": {
          "type": "string",
          "description": "ARM ID of the resource to be backed up."
        },
        "policyId": {
          "type": "string",
          "description": "ID of the backup policy with which this item is backed up."
        },
        "lastRecoveryPoint": {
          "type": "string",
          "format": "date-time",
          "description": "Timestamp when the last (latest) backup copy was created for this backup item."
        },
        "backupSetName": {
          "type": "string",
          "description": "Name of the backup set the backup item belongs to"
        },
        "createMode": {
          "$ref": "#/$defs/CreateMode",
          "description": "Create mode to indicate recovery of existing soft deleted data source or creation of new data source."
        },
        "deferredDeleteTimeInUTC": {
          "type": "string",
          "format": "date-time",
          "description": "Time for deferred deletion in UTC"
        },
        "isScheduledForDeferredDelete": {
          "type": "boolean",
          "description": "Flag to identify whether the DS is scheduled for deferred delete"
        },
        "deferredDeleteTimeRemaining": {
          "type": "string",
          "description": "Time remaining before the DS marked for deferred delete is permanently deleted"
        },
        "isDeferredDeleteScheduleUpcoming": {
          "type": "boolean",
          "description": "Flag to identify whether the deferred deleted DS is to be purged soon"
        },
        "isRehydrate": {
          "type": "boolean",
          "description": "Flag to identify that deferred deleted DS is to be moved into Pause state"
        },
        "resourceGuardOperationRequests": {
          "type": "array",
          "description": "ResourceGuardOperationRequests on which LAC check will be performed",
          "items": {
            "type": "string"
          }
        },
        "isArchiveEnabled": {
          "type": "boolean",
          "description": "Flag to identify whether datasource is protected in archive"
        },
        "policyName": {
          "type": "string",
          "description": "Name of the policy used for protection"
        },
        "softDeleteRetentionPeriodInDays": {
          "type": "integer",
          "format": "int32",
          "description": "Soft delete retention period in days"
        },
        "sourceLocation": {
          "type": "string",
          "description": "Source location of the protected item datasource.",
          "readOnly": true
        },
        "vaultId": {
          "type": "string",
          "description": "ID of the vault which protects this item",
          "readOnly": true
        },
        "sourceSideScanInfo": {
          "$ref": "#/$defs/SourceSideScanInfo",
          "description": "Source side threat information"
        }
      },
      "required": [
        "protectedItemType"
      ]
    },
    "ProtectedItemResource": {
      "type": "object",
      "description": "Base class for backup items.",
      "properties": {
        "properties": {
          "$ref": "#/$defs/ProtectedItem",
          "description": "ProtectedItemResource properties"
        },
        "tags": {
          "type": "object",
          "description": "Resource tags.",
          "additionalProperties": {
            "type": "string"
          }
        },
        "location": {
          "$ref": "#/$defs/Azure.Core.azureLocation",
          "description": "The geo-location where the resource lives",
          "x-ms-mutability": [
            "read",
            "create"
          ]
        },
        "eTag": {
          "type": "string",
          "description": "Optional ETag."
        }
      },
      "allOf": [
        {
          "$ref": "../../../../../../common-types/resource-management/v3/types.json#/definitions/ProxyResource"
        }
      ]
    },
    "ResourceList": {
      "type": "object",
      "description": "Base for all lists of resources.",
      "properties": {
        "nextLink": {
          "type": "string",
          "description": "The URI to fetch the next page of resources, with each API call returning up to 200 resources per page. Use ListNext() to fetch the next page if the total number of resources exceeds 200."
        }
      }
    },
    "SourceSideScanInfo": {
      "type": "object",
      "description": "Source side threat information",
      "properties": {
        "sourceSideScanStatus": {
          "$ref": "#/$defs/SourceSideScanStatus",
          "description": "Threat status of the container"
        },
        "sourceSideScanSummary": {
          "$ref": "#/$defs/SourceSideScanSummary",
          "description": "Threat summary for the container"
        }
      }
    },
    "SourceSideScanStatus": {
      "type": "string",
      "description": "Threat status of the container",
      "enum": [
        "Configured",
        "NotConfigured",
        "NotApplicable",
        "ConfigurationFailed"
      ],
      "x-ms-enum": {
        "name": "SourceSideScanStatus",
        "modelAsString": true,
        "values": [
          {
            "name": "Configured",
            "value": "Configured",
            "description": "Source side scan is configured"
          },
          {
            "name": "NotConfigured",
            "value": "NotConfigured",
            "description": "Source side scan is not configured"
          },
          {
            "name": "NotApplicable",
            "value": "NotApplicable",
            "description": "Source side scan is not applicable"
          },
          {
            "name": "ConfigurationFailed",
            "value": "ConfigurationFailed",
            "description": "Source side scan configuration failed"
          }
        ]
      }
    },
    "SourceSideScanSummary": {
      "type": "string",
      "description": "Threat summary for the container",
      "enum": [
        "Unknown",
        "NotApplicable",
        "Suspicious",
        "Healthy",
        "NoThreatsReported"
      ],
      "x-ms-enum": {
        "name": "SourceSideScanSummary",
        "modelAsString": true,
        "values": [
          {
            "name": "Unknown",
            "value": "Unknown",
            "description": "Scan summary is unknown"
          },
          {
            "name": "NotApplicable",
            "value": "NotApplicable",
            "description": "Scan summary is not applicable"
          },
          {
            "name": "Suspicious",
            "value": "Suspicious",
            "description": "Scan summary is suspicious"
          },
          {
            "name": "Healthy",
            "value": "Healthy",
            "description": "Scan summary indicates healthy state"
          },
          {
            "name": "NoThreatsReported",
            "value": "NoThreatsReported",
            "description": "No threats reported"
          }
        ]
      }
    }
  }
}