{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/microsoft-azure-sql-database/json-schema/microsoft-azure-sql-database-managed-instance-long-term-retention-backup-schema.json",
  "title": "ManagedInstanceLongTermRetentionBackup",
  "description": "A long term retention backup for a managed database.",
  "x-generated": "2026-11-12",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/microsoft-azure-sql-database-longtermretentionmanagedinstancebackups-api-openapi.yml#/components/schemas/ManagedInstanceLongTermRetentionBackup",
  "type": "object",
  "properties": {
    "properties": {
      "$ref": "#/$defs/ManagedInstanceLongTermRetentionBackupProperties",
      "description": "Resource properties.",
      "x-ms-client-flatten": true
    }
  },
  "allOf": [
    {
      "$ref": "#/$defs/ProxyResource"
    }
  ],
  "$defs": {
    "BackupStorageAccessTier": {
      "type": "string",
      "description": "The BackupStorageAccessTier for the LTR backup",
      "enum": [
        "Hot",
        "Archive"
      ],
      "x-ms-enum": {
        "name": "BackupStorageAccessTier",
        "modelAsString": true,
        "values": [
          {
            "name": "Hot",
            "value": "Hot",
            "description": "Hot"
          },
          {
            "name": "Archive",
            "value": "Archive",
            "description": "Archive"
          }
        ]
      }
    },
    "BackupStorageRedundancy": {
      "type": "string",
      "description": "The storage account type used to store backups for this database.",
      "enum": [
        "Geo",
        "Local",
        "Zone",
        "GeoZone"
      ],
      "x-ms-enum": {
        "name": "BackupStorageRedundancy",
        "modelAsString": true,
        "values": [
          {
            "name": "Geo",
            "value": "Geo",
            "description": "Geo"
          },
          {
            "name": "Local",
            "value": "Local",
            "description": "Local"
          },
          {
            "name": "Zone",
            "value": "Zone",
            "description": "Zone"
          },
          {
            "name": "GeoZone",
            "value": "GeoZone",
            "description": "GeoZone"
          }
        ]
      }
    },
    "ManagedInstanceLongTermRetentionBackupProperties": {
      "type": "object",
      "description": "Properties of a long term retention backup",
      "properties": {
        "managedInstanceName": {
          "type": "string",
          "description": "The managed instance that the backup database belongs to.",
          "readOnly": true
        },
        "managedInstanceCreateTime": {
          "type": "string",
          "format": "date-time",
          "description": "The create time of the instance.",
          "readOnly": true
        },
        "databaseName": {
          "type": "string",
          "description": "The name of the database the backup belong to",
          "readOnly": true
        },
        "databaseDeletionTime": {
          "type": "string",
          "format": "date-time",
          "description": "The delete time of the database",
          "readOnly": true
        },
        "backupTime": {
          "type": "string",
          "format": "date-time",
          "description": "The time the backup was taken",
          "readOnly": true
        },
        "backupExpirationTime": {
          "type": "string",
          "format": "date-time",
          "description": "The time the long term retention backup will expire.",
          "readOnly": true
        },
        "backupStorageRedundancy": {
          "$ref": "#/$defs/BackupStorageRedundancy",
          "description": "The storage redundancy type of the backup",
          "readOnly": true
        },
        "backupStorageAccessTier": {
          "$ref": "#/$defs/BackupStorageAccessTier",
          "description": "The BackupStorageAccessTier for the LTR backup",
          "readOnly": true
        }
      }
    },
    "ProxyResource": {
      "type": "object",
      "title": "Proxy Resource",
      "description": "The resource model definition for a Azure Resource Manager proxy resource. It will not have tags and a location",
      "allOf": [
        {
          "$ref": "#/$defs/Resource"
        }
      ]
    },
    "Resource": {
      "type": "object",
      "description": "Referenced by this document but never defined in it. API Evangelist added this empty placeholder so the document resolves; the shape is unknown and is NOT a claim about the API.",
      "x-ae-placeholder": true
    }
  }
}