{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/microsoft-azure-sql-database/json-schema/microsoft-azure-sql-database-long-term-retention-backup-list-result-schema.json",
  "title": "LongTermRetentionBackupListResult",
  "description": "A list of long term retention backups.",
  "x-generated": "2026-11-12",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/microsoft-azure-sql-database-longtermretentionbackups-api-openapi.yml#/components/schemas/LongTermRetentionBackupListResult",
  "type": "object",
  "properties": {
    "value": {
      "type": "array",
      "description": "Array of results.",
      "items": {
        "$ref": "#/$defs/LongTermRetentionBackup"
      },
      "readOnly": true
    },
    "nextLink": {
      "type": "string",
      "description": "Link to retrieve next page of results.",
      "readOnly": true
    }
  },
  "$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"
          }
        ]
      }
    },
    "LongTermRetentionBackup": {
      "type": "object",
      "description": "A long term retention backup.",
      "properties": {
        "properties": {
          "$ref": "#/$defs/LongTermRetentionBackupProperties",
          "description": "Resource properties.",
          "x-ms-client-flatten": true
        }
      },
      "allOf": [
        {
          "$ref": "#/$defs/ProxyResource"
        }
      ]
    },
    "LongTermRetentionBackupProperties": {
      "type": "object",
      "description": "Properties of a long term retention backup",
      "properties": {
        "serverName": {
          "type": "string",
          "description": "The server name that the backup database belong to.",
          "readOnly": true
        },
        "serverCreateTime": {
          "type": "string",
          "format": "date-time",
          "description": "The create time of the server.",
          "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
        },
        "requestedBackupStorageRedundancy": {
          "$ref": "#/$defs/BackupStorageRedundancy",
          "description": "The storage redundancy type of the backup",
          "x-ms-mutability": [
            "update",
            "create"
          ]
        },
        "isBackupImmutable": {
          "type": "boolean",
          "description": "The setting whether the LTR backup is immutable"
        },
        "timeBasedImmutability": {
          "$ref": "#/$defs/TimeBasedImmutability",
          "description": "The setting for whether or not time-based immutability is enabled for the LTR backup. When time-based immutability is enabled and locked, the backup cannot be deleted until BackupExpirationTime."
        },
        "timeBasedImmutabilityMode": {
          "$ref": "#/$defs/TimeBasedImmutabilityMode",
          "description": "The time-based immutability mode. Only applicable if time-based immutability is enabled."
        },
        "legalHoldImmutability": {
          "$ref": "#/$defs/SetLegalHoldImmutability",
          "description": "The setting for whether LegalHold is enabled or disabled on the LTR backup. When LegalHold is enabled, the backup cannot be deleted until the LegalHold is removed."
        },
        "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
    },
    "SetLegalHoldImmutability": {
      "type": "string",
      "description": "The setting for whether LegalHold is enabled or disabled on the LTR backup. When LegalHold is enabled, the backup cannot be deleted until the LegalHold is removed.",
      "enum": [
        "Enabled",
        "Disabled"
      ],
      "x-ms-enum": {
        "name": "SetLegalHoldImmutability",
        "modelAsString": true,
        "values": [
          {
            "name": "Enabled",
            "value": "Enabled",
            "description": "Enabled"
          },
          {
            "name": "Disabled",
            "value": "Disabled",
            "description": "Disabled"
          }
        ]
      }
    },
    "TimeBasedImmutability": {
      "type": "string",
      "description": "The setting for whether or not time-based immutability is enabled for the LTR backup. When time-based immutability is enabled and locked, the backup cannot be deleted until BackupExpirationTime.",
      "enum": [
        "Enabled",
        "Disabled"
      ],
      "x-ms-enum": {
        "name": "TimeBasedImmutability",
        "modelAsString": true,
        "values": [
          {
            "name": "Enabled",
            "value": "Enabled",
            "description": "Enabled"
          },
          {
            "name": "Disabled",
            "value": "Disabled",
            "description": "Disabled"
          }
        ]
      }
    },
    "TimeBasedImmutabilityMode": {
      "type": "string",
      "description": "The time-based immutability mode. Only applicable if time-based immutability is enabled.",
      "enum": [
        "Locked",
        "Unlocked"
      ],
      "x-ms-enum": {
        "name": "TimeBasedImmutabilityMode",
        "modelAsString": true,
        "values": [
          {
            "name": "Locked",
            "value": "Locked",
            "description": "Locked"
          },
          {
            "name": "Unlocked",
            "value": "Unlocked",
            "description": "Unlocked"
          }
        ]
      }
    }
  }
}