{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/microsoft-azure-sql-database/json-schema/microsoft-azure-sql-database-import-existing-database-definition-schema.json",
  "title": "ImportExistingDatabaseDefinition",
  "description": "Contains the information necessary to perform import operation for existing database.",
  "x-generated": "2026-11-05",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/microsoft-azure-sql-database-databases-api-openapi.yml#/components/schemas/ImportExistingDatabaseDefinition",
  "type": "object",
  "properties": {
    "storageKeyType": {
      "$ref": "#/$defs/storageKeyType"
    },
    "storageKey": {
      "type": "string",
      "description": "Storage key for the storage account. If StorageKeyType is ManagedIdentity, this field should specify the Managed Identity's resource ID.",
      "x-ms-mutability": [
        "create"
      ]
    },
    "storageUri": {
      "type": "string",
      "description": "Storage Uri.",
      "x-ms-mutability": [
        "create"
      ]
    },
    "administratorLogin": {
      "type": "string",
      "description": "Administrator login name. If AuthenticationType is ManagedIdentity, this field should specify the Managed Identity's resource ID.",
      "x-ms-mutability": [
        "create"
      ]
    },
    "administratorLoginPassword": {
      "type": "string",
      "format": "password",
      "description": "Administrator login password. If AuthenticationType is ManagedIdentity, this field should not be specified.",
      "x-ms-mutability": [
        "create"
      ],
      "x-ms-secret": true
    },
    "authenticationType": {
      "type": "string",
      "description": "Type of credentials provided for access to the target SQL server: SQL, ADPassword or ManagedIdentity.",
      "x-ms-mutability": [
        "create"
      ]
    },
    "networkIsolation": {
      "$ref": "#/$defs/networkIsolation"
    }
  },
  "required": [
    "storageKeyType",
    "storageKey",
    "storageUri",
    "administratorLogin"
  ]
}