DatabaseInstance
import type { DatabaseInstance } from "https://googleapis.deno.dev/v1/sqladmin:v1.ts";
A Cloud SQL instance resource.
§Properties
Output only. List all maintenance versions applicable on the instance
The backend type. SECOND_GEN
: Cloud SQL database instance. EXTERNAL
: A
database server that is not managed by Google. This property is read-only;
use the tier
property in the settings
object to determine the database
type.
The current disk usage of the instance in bytes. This property has been deprecated. Use the "cloudsql.googleapis.com/database/disk/bytes_used" metric in Cloud Monitoring API instead. Please see this announcement for details.
Output only. Stores the current database version running on the instance
including minor version such as MYSQL_8_0_18
.
The database engine type and version. The databaseVersion
field cannot
be changed after instance creation.
Disk encryption configuration specific to an instance.
Disk encryption status specific to an instance.
This field is deprecated and will be removed from a future version of the
API. Use the settings.settingsVersion
field instead.
The name and status of the failover replica.
The Compute Engine zone that the instance is currently serving from. This value could be different from the zone that was specified when the instance was created if the instance has failed over to its secondary zone. WARNING: Changing this might restart the instance.
Gemini instance configuration.
The instance type.
The IPv6 address assigned to the instance. (Deprecated) This property was applicable only to First Generation instances.
The name of the instance which will act as primary in the replication setup.
Configuration specific to on-premises instances.
This field represents the report generated by the proactive database wellness job for OutOfDisk issues. * Writers: * the proactive database wellness job for OOD. * Readers: * the proactive database wellness job
The project ID of the project containing the Cloud SQL instance. The Google apps domain is prefixed if applicable.
Output only. The link to service attachment of PSC instance.
Configuration specific to failover replicas and read replicas.
Optional. A primary instance and disaster recovery (DR) replica pair. A DR replica is a cross-region replica that you designate for failover in the event that the primary instance experiences regional failure. Only applicable to MySQL.
Initial root password. Use only on creation. You must set root passwords before you can connect to PostgreSQL instances.
The status indicating if instance satisfiesPzs. Reserved for future use.
The start time of any upcoming scheduled maintenance for this instance.
The Compute Engine zone that the failover instance is currently serving from for a regional instance. This value could be different from the zone that was specified when the instance was created if the instance has failed over to its secondary/failover zone.
The service account email address assigned to the instance.\This property is read-only.
The current serving state of the Cloud SQL instance.