{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/microsoft-azure-backup/json-schema/microsoft-azure-backup-backup-engine-base-resource-schema.json",
  "title": "BackupEngineBaseResource",
  "description": "The base backup engine class. All workload specific backup engines derive from this class.",
  "x-generated": "2026-11-12",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/_superseded/microsoft-azure-backup-backupengines-api-openapi.yml#/components/schemas/BackupEngineBaseResource",
  "type": "object",
  "properties": {
    "properties": {
      "$ref": "#/$defs/BackupEngineBase",
      "description": "BackupEngineBaseResource 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."
    },
    "BackupEngineBase": {
      "type": "object",
      "description": "The base backup engine class. All workload specific backup engines derive from this class.",
      "properties": {
        "friendlyName": {
          "type": "string",
          "description": "Friendly name of the backup engine."
        },
        "backupManagementType": {
          "$ref": "#/$defs/BackupManagementType",
          "description": "Type of backup management for the backup engine."
        },
        "registrationStatus": {
          "type": "string",
          "description": "Registration status of the backup engine with the Recovery Services Vault."
        },
        "backupEngineState": {
          "type": "string",
          "description": "Status of the backup engine with the Recovery Services Vault. = {Active/Deleting/DeleteFailed}"
        },
        "healthStatus": {
          "type": "string",
          "description": "Backup status of the backup engine."
        },
        "backupEngineType": {
          "$ref": "#/$defs/BackupEngineType",
          "description": "Type of the backup engine."
        },
        "canReRegister": {
          "type": "boolean",
          "description": "Flag indicating if the backup engine be registered, once already registered."
        },
        "backupEngineId": {
          "type": "string",
          "description": "ID of the backup engine."
        },
        "dpmVersion": {
          "type": "string",
          "description": "Backup engine version"
        },
        "azureBackupAgentVersion": {
          "type": "string",
          "description": "Backup agent version"
        },
        "isAzureBackupAgentUpgradeAvailable": {
          "type": "boolean",
          "description": "To check if backup agent upgrade available"
        },
        "isDpmUpgradeAvailable": {
          "type": "boolean",
          "description": "To check if backup engine upgrade available"
        },
        "extendedInfo": {
          "$ref": "#/$defs/BackupEngineExtendedInfo",
          "description": "Extended info of the backupengine"
        }
      },
      "required": [
        "backupEngineType"
      ]
    },
    "BackupEngineExtendedInfo": {
      "type": "object",
      "description": "Additional information on backup engine.",
      "properties": {
        "databaseName": {
          "type": "string",
          "description": "Database name of backup engine."
        },
        "protectedItemsCount": {
          "type": "integer",
          "format": "int32",
          "description": "Number of protected items in the backup engine."
        },
        "protectedServersCount": {
          "type": "integer",
          "format": "int32",
          "description": "Number of protected servers in the backup engine."
        },
        "diskCount": {
          "type": "integer",
          "format": "int32",
          "description": "Number of disks in the backup engine."
        },
        "usedDiskSpace": {
          "type": "number",
          "format": "double",
          "description": "Disk space used in the backup engine."
        },
        "availableDiskSpace": {
          "type": "number",
          "format": "double",
          "description": "Disk space currently available in the backup engine."
        },
        "refreshedAt": {
          "type": "string",
          "format": "date-time",
          "description": "Last refresh time in the backup engine."
        },
        "azureProtectedInstances": {
          "type": "integer",
          "format": "int32",
          "description": "Protected instances in the backup engine."
        }
      }
    },
    "BackupEngineType": {
      "type": "string",
      "description": "Type of the backup engine.",
      "enum": [
        "Invalid",
        "DpmBackupEngine",
        "AzureBackupServerEngine"
      ],
      "x-ms-enum": {
        "name": "BackupEngineType",
        "modelAsString": true,
        "values": [
          {
            "name": "Invalid",
            "value": "Invalid"
          },
          {
            "name": "DpmBackupEngine",
            "value": "DpmBackupEngine"
          },
          {
            "name": "AzureBackupServerEngine",
            "value": "AzureBackupServerEngine"
          }
        ]
      }
    },
    "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"
          }
        ]
      }
    }
  }
}