{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/microsoft-azure-backup/json-schema/microsoft-azure-backup-protection-container-resource-schema.json",
  "title": "ProtectionContainerResource",
  "description": "Base class for container with backup items. Containers with specific workloads are derived from this class.",
  "x-generated": "2026-11-12",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/_superseded/microsoft-azure-backup-protectioncontaineroperationresults-api-openapi.yml#/components/schemas/ProtectionContainerResource",
  "type": "object",
  "properties": {
    "properties": {
      "$ref": "#/$defs/ProtectionContainer",
      "description": "ProtectionContainerResource 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"
    }
  ],
  "$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"
          }
        ]
      }
    },
    "ProtectableContainerType": {
      "type": "string",
      "description": "Type of the container. The value of this property for\n1. Compute Azure VM is Microsoft.Compute/virtualMachines\n2. Classic Compute Azure VM is Microsoft.ClassicCompute/virtualMachines",
      "enum": [
        "Invalid",
        "Unknown",
        "IaasVMContainer",
        "IaasVMServiceContainer",
        "DPMContainer",
        "AzureBackupServerContainer",
        "MABContainer",
        "Cluster",
        "AzureSqlContainer",
        "Windows",
        "VCenter",
        "VMAppContainer",
        "SQLAGWorkLoadContainer",
        "StorageContainer",
        "GenericContainer",
        "Microsoft.ClassicCompute/virtualMachines",
        "Microsoft.Compute/virtualMachines",
        "AzureWorkloadContainer"
      ],
      "x-ms-enum": {
        "name": "ProtectableContainerType",
        "modelAsString": false
      }
    },
    "ProtectionContainer": {
      "type": "object",
      "description": "Base class for container with backup items. Containers with specific workloads are derived from this class.",
      "properties": {
        "friendlyName": {
          "type": "string",
          "description": "Friendly name of the container."
        },
        "backupManagementType": {
          "$ref": "#/$defs/BackupManagementType",
          "description": "Type of backup management for the container."
        },
        "registrationStatus": {
          "type": "string",
          "description": "Status of registration of the container with the Recovery Services Vault."
        },
        "healthStatus": {
          "type": "string",
          "description": "Status of health of the container."
        },
        "containerType": {
          "$ref": "#/$defs/ProtectableContainerType",
          "description": "Type of the container. The value of this property for: 1. Compute Azure VM is Microsoft.Compute/virtualMachines 2.\nClassic Compute Azure VM is Microsoft.ClassicCompute/virtualMachines 3. Windows machines (like MAB, DPM etc) is\nWindows 4. Azure SQL instance is AzureSqlContainer. 5. Storage containers is StorageContainer. 6. Azure workload\nBackup is VMAppContainer"
        },
        "protectableObjectType": {
          "type": "string",
          "description": "Type of the protectable object associated with this container"
        },
        "sourceLocation": {
          "type": "string",
          "description": "Source location of the container",
          "readOnly": true
        }
      },
      "required": [
        "containerType"
      ]
    }
  }
}