{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/microsoft-azure-sql-database/json-schema/microsoft-azure-sql-database-copy-long-term-retention-backup-parameters-schema.json",
  "title": "CopyLongTermRetentionBackupParameters",
  "description": "Contains the information necessary to perform long term retention backup copy operation.",
  "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/CopyLongTermRetentionBackupParameters",
  "type": "object",
  "properties": {
    "properties": {
      "$ref": "#/$defs/CopyLongTermRetentionBackupParametersProperties",
      "description": "Resource properties.",
      "x-ms-client-flatten": true
    }
  },
  "$defs": {
    "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"
          }
        ]
      }
    },
    "CopyLongTermRetentionBackupParametersProperties": {
      "type": "object",
      "description": "Contains the properties to perform long term retention backup copy operation.",
      "properties": {
        "targetSubscriptionId": {
          "type": "string",
          "description": "The subscription that owns the target server",
          "x-ms-mutability": [
            "create"
          ]
        },
        "targetResourceGroup": {
          "type": "string",
          "description": "The resource group that owns the target server",
          "x-ms-mutability": [
            "create"
          ]
        },
        "targetServerResourceId": {
          "type": "string",
          "description": "The resource Id of the target server that owns the database",
          "x-ms-mutability": [
            "create"
          ]
        },
        "targetServerFullyQualifiedDomainName": {
          "type": "string",
          "description": "The fully qualified domain name of the target server",
          "x-ms-mutability": [
            "create"
          ]
        },
        "targetDatabaseName": {
          "type": "string",
          "description": "The name of the database owns the copied backup.",
          "x-ms-mutability": [
            "create"
          ]
        },
        "targetBackupStorageRedundancy": {
          "$ref": "#/$defs/BackupStorageRedundancy",
          "description": "The storage redundancy type of the copied backup",
          "x-ms-mutability": [
            "create"
          ]
        }
      }
    }
  }
}