{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/microsoft-azure-migrate/json-schema/microsoft-azure-migrate-database-instance-schema.json",
  "title": "DatabaseInstance",
  "description": "DatabaseInstance REST resource.",
  "x-generated": "2026-11-12",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/microsoft-azure-migrate-databaseinstancescontroller-api-openapi.yml#/components/schemas/DatabaseInstance",
  "type": "object",
  "properties": {
    "id": {
      "description": "Gets or sets the relative URL to get to this REST resource.",
      "type": "string"
    },
    "name": {
      "description": "Gets or sets the name of this REST resource.",
      "type": "string"
    },
    "type": {
      "description": "Gets the type of this REST resource.",
      "type": "string",
      "readOnly": true
    },
    "properties": {
      "$ref": "#/$defs/DatabaseInstanceProperties",
      "description": "Gets or sets the properties of the machine."
    }
  },
  "$defs": {
    "DatabaseInstanceDiscoveryDetails": {
      "description": "Discovery properties that can be shared by various publishers.",
      "type": "object",
      "properties": {
        "lastUpdatedTime": {
          "format": "date-time",
          "description": "Gets or sets the time of the last modification of the database instance details.",
          "type": "string"
        },
        "id": {
          "description": "Gets the relative URL to get to this DatabaseInstanceDiscoveryDetails resource.",
          "type": "string"
        },
        "instanceId": {
          "description": "Gets or sets the database instance Id.",
          "type": "string"
        },
        "enqueueTime": {
          "description": "Gets or sets the time the message was enqueued.",
          "type": "string"
        },
        "solutionName": {
          "description": "Gets or sets the name of the solution that sent the data.",
          "type": "string"
        },
        "instanceName": {
          "description": "Gets or sets the database instance name.",
          "type": "string"
        },
        "instanceVersion": {
          "description": "Gets or sets the database instance version.",
          "type": "string"
        },
        "instanceType": {
          "description": "Gets or sets the database instance type.",
          "type": "string"
        },
        "hostName": {
          "description": "Gets or sets the host name of the database server.",
          "type": "string"
        },
        "ipAddress": {
          "description": "Gets or sets the IP addresses of the database server. IP addresses could be IP V4 or IP V6.",
          "type": "string"
        },
        "portNumber": {
          "format": "int32",
          "description": "Gets or sets the port number of the database server.",
          "type": "integer"
        },
        "extendedInfo": {
          "description": "Gets or sets the extended properties of the database server.",
          "type": "object",
          "additionalProperties": {
            "type": "string"
          }
        }
      }
    },
    "DatabaseInstanceProperties": {
      "description": "Properties of the database instance resource.",
      "type": "object",
      "properties": {
        "discoveryData": {
          "description": "Gets or sets the assessment details of the database instance published by various sources.",
          "type": "array",
          "items": {
            "$ref": "#/$defs/DatabaseInstanceDiscoveryDetails"
          },
          "x-ms-identifiers": [
            "instanceId"
          ]
        },
        "summary": {
          "description": "Gets or sets the database instances summary per solution. The key of dictionary is the solution name and value is the corresponding database instance summary object.",
          "type": "object",
          "additionalProperties": {
            "$ref": "#/$defs/DatabaseInstanceSummary"
          }
        },
        "lastUpdatedTime": {
          "format": "date-time",
          "description": "Gets or sets the time of the last modification of the database.",
          "type": "string"
        }
      }
    },
    "DatabaseInstanceSummary": {
      "description": "Class representing the database instance summary object.",
      "type": "object",
      "properties": {
        "databasesAssessedCount": {
          "format": "int32",
          "description": "Gets or sets the count of databases assessed.",
          "type": "integer"
        },
        "migrationReadyCount": {
          "format": "int32",
          "description": "Gets or sets the count of databases ready for migration.",
          "type": "integer"
        }
      }
    }
  }
}