{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/google-firebase/json-schema/google-firebase-database-instance-schema.json",
  "title": "DatabaseInstance",
  "description": "Representation of a Realtime Database instance. Details on interacting with contents of a DatabaseInstance can be found at: https://firebase.google.com/docs/database/rest/start.",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/google-firebase-firebasedatabase-projects-api-openapi.yml#/components/schemas/DatabaseInstance",
  "type": "object",
  "properties": {
    "databaseUrl": {
      "type": "string",
      "description": "Output only. Output Only. The globally unique hostname of the database.",
      "readOnly": true
    },
    "type": {
      "description": "Immutable. The database instance type. On creation only USER_DATABASE is allowed, which is also the default when omitted.",
      "enum": [
        "DATABASE_INSTANCE_TYPE_UNSPECIFIED",
        "DEFAULT_DATABASE",
        "USER_DATABASE"
      ],
      "type": "string"
    },
    "name": {
      "type": "string",
      "description": "The fully qualified resource name of the database instance, in the form: `projects/{project-number}/locations/{location-id}/instances/{database-id}`."
    },
    "project": {
      "readOnly": true,
      "type": "string",
      "description": "Output only. The resource name of the project this instance belongs to. For example: `projects/{project-number}`."
    },
    "state": {
      "enum": [
        "LIFECYCLE_STATE_UNSPECIFIED",
        "ACTIVE",
        "DISABLED",
        "DELETED"
      ],
      "readOnly": true,
      "type": "string",
      "description": "Output only. The database's lifecycle state. Read-only."
    }
  }
}