{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/microsoft-azure-backup/json-schema/microsoft-azure-backup-backup-status-response-schema.json",
  "title": "BackupStatusResponse",
  "description": "BackupStatus response.",
  "x-generated": "2026-11-12",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/_superseded/microsoft-azure-backup-backupstatus-api-openapi.yml#/components/schemas/BackupStatusResponse",
  "type": "object",
  "properties": {
    "protectionStatus": {
      "$ref": "#/$defs/ProtectionStatus",
      "description": "Specifies whether the container is registered or not"
    },
    "vaultId": {
      "type": "string",
      "description": "Specifies the arm resource id of the vault"
    },
    "fabricName": {
      "$ref": "#/$defs/FabricName",
      "description": "Specifies the fabric name - Azure or AD"
    },
    "containerName": {
      "type": "string",
      "description": "Specifies the product specific container name. E.g. iaasvmcontainer;iaasvmcontainer;csname;vmname."
    },
    "protectedItemName": {
      "type": "string",
      "description": "Specifies the product specific ds name. E.g. vm;iaasvmcontainer;csname;vmname."
    },
    "errorCode": {
      "type": "string",
      "description": "ErrorCode in case of intent failed"
    },
    "errorMessage": {
      "type": "string",
      "description": "ErrorMessage in case of intent failed."
    },
    "policyName": {
      "type": "string",
      "description": "Specifies the policy name which is used for protection"
    },
    "registrationStatus": {
      "type": "string",
      "description": "Container registration status"
    },
    "protectedItemsCount": {
      "type": "integer",
      "format": "int32",
      "description": "Number of protected items"
    },
    "acquireStorageAccountLock": {
      "$ref": "#/$defs/AcquireStorageAccountLock",
      "description": "Specifies whether the storage account lock has been acquired or not"
    }
  },
  "$defs": {
    "AcquireStorageAccountLock": {
      "type": "string",
      "description": "Whether storage account lock is to be acquired for this container or not.",
      "enum": [
        "Acquire",
        "NotAcquire"
      ],
      "x-ms-enum": {
        "name": "AcquireStorageAccountLock",
        "modelAsString": true,
        "values": [
          {
            "name": "Acquire",
            "value": "Acquire"
          },
          {
            "name": "NotAcquire",
            "value": "NotAcquire"
          }
        ]
      }
    },
    "FabricName": {
      "type": "string",
      "description": "Specifies the fabric name - Azure or AD",
      "enum": [
        "Invalid",
        "Azure"
      ],
      "x-ms-enum": {
        "name": "FabricName",
        "modelAsString": true,
        "values": [
          {
            "name": "Invalid",
            "value": "Invalid"
          },
          {
            "name": "Azure",
            "value": "Azure"
          }
        ]
      }
    },
    "ProtectionStatus": {
      "type": "string",
      "description": "Specifies whether the container is registered or not",
      "enum": [
        "Invalid",
        "NotProtected",
        "Protecting",
        "Protected",
        "ProtectionFailed"
      ],
      "x-ms-enum": {
        "name": "ProtectionStatus",
        "modelAsString": true,
        "values": [
          {
            "name": "Invalid",
            "value": "Invalid"
          },
          {
            "name": "NotProtected",
            "value": "NotProtected"
          },
          {
            "name": "Protecting",
            "value": "Protecting"
          },
          {
            "name": "Protected",
            "value": "Protected"
          },
          {
            "name": "ProtectionFailed",
            "value": "ProtectionFailed"
          }
        ]
      }
    }
  }
}