SQL Database Instance

This table represents the SQL Database Instance resource from Google Cloud Platform.

gcp.sql_database_instance

Fields

TitleIDTypeData TypeDescription
_keycorestring
ancestorscorearray<string>
available_maintenance_versionscorearray<string>Output only. List all maintenance versions applicable on the instance
backend_typecorestringThe 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. Possible values: ['SQL_BACKEND_TYPE_UNSPECIFIED', 'FIRST_GEN', 'SECOND_GEN', 'EXTERNAL']. Values descriptions: ['This is an unknown backend type for instance.', 'V1 speckle instance.', 'V2 speckle instance.', 'On premises instance.']
clear_networkcoreboolClears private network settings when the instance is restored.
connection_namecorestringConnection name of the Cloud SQL instance used in connection strings.
create_timecoretimestampOutput only. The time when the instance was created in [RFC 3339](https://tools.ietf.org/html/rfc3339) format, for example `2012-11-15T16:19:00.094Z`.
current_disk_sizecoreint64The 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](https://groups.google.com/d/msg/google-cloud-sql-announce/I_7-F9EBhT0/BtvFtdFeAgAJ) for details.
database_installed_versioncorestringOutput only. Stores the current database version running on the instance including minor version such as `MYSQL_8_0_18`.
database_versioncorestringThe database engine type and version. The `databaseVersion` field cannot be changed after instance creation. Possible values: ['SQL_DATABASE_VERSION_UNSPECIFIED', 'MYSQL_5_1', 'MYSQL_5_5', 'MYSQL_5_6', 'MYSQL_5_7', 'MYSQL_8_0', 'MYSQL_8_0_18', 'MYSQL_8_0_26', 'MYSQL_8_0_27', 'MYSQL_8_0_28', 'MYSQL_8_0_29', 'MYSQL_8_0_30', 'MYSQL_8_0_31', 'MYSQL_8_0_32', 'MYSQL_8_0_33', 'MYSQL_8_0_34', 'MYSQL_8_0_35', 'MYSQL_8_0_36', 'MYSQL_8_0_37', 'MYSQL_8_0_39', 'MYSQL_8_0_40', 'MYSQL_8_0_41', 'MYSQL_8_0_42', 'MYSQL_8_0_43', 'MYSQL_8_0_44', 'MYSQL_8_0_45', 'MYSQL_8_0_46', 'MYSQL_8_4', 'SQLSERVER_2017_STANDARD', 'SQLSERVER_2017_ENTERPRISE', 'SQLSERVER_2017_EXPRESS', 'SQLSERVER_2017_WEB', 'POSTGRES_9_6', 'POSTGRES_10', 'POSTGRES_11', 'POSTGRES_12', 'POSTGRES_13', 'POSTGRES_14', 'POSTGRES_15', 'POSTGRES_16', 'POSTGRES_17', 'SQLSERVER_2019_STANDARD', 'SQLSERVER_2019_ENTERPRISE', 'SQLSERVER_2019_EXPRESS', 'SQLSERVER_2019_WEB', 'SQLSERVER_2022_STANDARD', 'SQLSERVER_2022_ENTERPRISE', 'SQLSERVER_2022_EXPRESS', 'SQLSERVER_2022_WEB']. Values descriptions: ['This is an unknown database version.', 'The database version is MySQL 5.1.', 'The database version is MySQL 5.5.', 'The database version is MySQL 5.6.', 'The database version is MySQL 5.7.', 'The database version is MySQL 8.', 'The database major version is MySQL 8.0 and the minor version is 18.', 'The database major version is MySQL 8.0 and the minor version is 26.', 'The database major version is MySQL 8.0 and the minor version is 27.', 'The database major version is MySQL 8.0 and the minor version is 28.', 'The database major version is MySQL 8.0 and the minor version is 29.', 'The database major version is MySQL 8.0 and the minor version is 30.', 'The database major version is MySQL 8.0 and the minor version is 31.', 'The database major version is MySQL 8.0 and the minor version is 32.', 'The database major version is MySQL 8.0 and the minor version is 33.', 'The database major version is MySQL 8.0 and the minor version is 34.', 'The database major version is MySQL 8.0 and the minor version is 35.', 'The database major version is MySQL 8.0 and the minor version is 36.', 'The database major version is MySQL 8.0 and the minor version is 37.', 'The database major version is MySQL 8.0 and the minor version is 39.', 'The database major version is MySQL 8.0 and the minor version is 40.', 'The database major version is MySQL 8.0 and the minor version is 41.', 'The database major version is MySQL 8.0 and the minor version is 42.', 'The database major version is MySQL 8.0 and the minor version is 43.', 'The database major version is MySQL 8.0 and the minor version is 44.', 'The database major version is MySQL 8.0 and the minor version is 45.', 'The database major version is MySQL 8.0 and the minor version is 46.', 'The database version is MySQL 8.4.', 'The database version is SQL Server 2017 Standard.', 'The database version is SQL Server 2017 Enterprise.', 'The database version is SQL Server 2017 Express.', 'The database version is SQL Server 2017 Web.', 'The database version is PostgreSQL 9.6.', 'The database version is PostgreSQL 10.', 'The database version is PostgreSQL 11.', 'The database version is PostgreSQL 12.', 'The database version is PostgreSQL 13.', 'The database version is PostgreSQL 14.', 'The database version is PostgreSQL 15.', 'The database version is PostgreSQL 16.', 'The database version is PostgreSQL 17.', 'The database version is SQL Server 2019 Standard.', 'The database version is SQL Server 2019 Enterprise.', 'The database version is SQL Server 2019 Express.', 'The database version is SQL Server 2019 Web.', 'The database version is SQL Server 2022 Standard.', 'The database version is SQL Server 2022 Enterprise.', 'The database version is SQL Server 2022 Express.', 'The database version is SQL Server 2022 Web.']
datadog_display_namecorestring
disk_encryption_configurationcorejsonDisk encryption configuration specific to an instance.
disk_encryption_statuscorejsonDisk encryption status specific to an instance.
dns_namecorestringOutput only. The dns name of the instance.
dns_namescorejsonOutput only. The list of DNS names used by this instance.
etagcorestringThis field is deprecated and will be removed from a future version of the API. Use the `settings.settingsVersion` field instead.
failover_replicacorejsonThe name and status of the failover replica.
gce_zonecorestringThe 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_configcorejsonGemini instance configuration.
include_replicas_for_major_version_upgradecoreboolInput only. Determines whether an in-place major version upgrade of replicas happens when an in-place major version upgrade of a primary instance is initiated.
instance_typecorestringThe instance type. Possible values: ['SQL_INSTANCE_TYPE_UNSPECIFIED', 'CLOUD_SQL_INSTANCE', 'ON_PREMISES_INSTANCE', 'READ_REPLICA_INSTANCE', 'READ_POOL_INSTANCE']. Values descriptions: ['This is an unknown Cloud SQL instance type.', 'A regular Cloud SQL instance that is not replicating from a primary instance.', "An instance running on the customer's premises that is not managed by Cloud SQL.", 'A Cloud SQL instance acting as a read-replica.', 'A Cloud SQL read pool.']
ip_addressescorejsonThe assigned IP addresses for the instance.
ipv6_addresscorestringThe IPv6 address assigned to the instance. (Deprecated) This property was applicable only to First Generation instances.
kindcorestringThis is always `sql#instance`.
labelscorearray<string>
maintenance_versioncorestringThe current software version on the instance.
master_instance_namecorestringThe name of the instance which will act as primary in the replication setup.
max_disk_sizecoreint64The maximum disk size of the instance in bytes.
namecorestringName of the Cloud SQL instance. This does not include the project ID.
node_countcoreint64The number of read pool nodes in a read pool.
nodescorejsonOutput only. Entries containing information about each read pool node of the read pool.
on_premises_configurationcorejsonConfiguration specific to on-premises instances.
organization_idcorestring
out_of_disk_reportcorejsonThis 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
parentcorestring
primary_dns_namecorestringOutput only. DEPRECATED: please use write_endpoint instead.
projectcorestringThe project ID of the project containing the Cloud SQL instance. The Google apps domain is prefixed if applicable.
project_idcorestring
project_numbercorestring
psc_service_attachment_linkcorestringOutput only. The link to service attachment of PSC instance.
regioncorestringThe geographical region of the Cloud SQL instance. It can be one of the [regions](https://cloud.google.com/sql/docs/mysql/locations#location-r) where Cloud SQL operates: For example, `asia-east1`, `europe-west1`, and `us-central1`. The default value is `us-central1`.
replica_configurationcorejsonConfiguration specific to failover replicas and read replicas.
replica_namescorearray<string>The replicas of the instance.
replication_clustercorejsonA 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. Applicable to MySQL and PostgreSQL.
resource_namecorestring
satisfies_pzicoreboolOutput only. This status indicates whether the instance satisfies PZI. The status is reserved for future use.
satisfies_pzscoreboolThis status indicates whether the instance satisfies PZS. The status is reserved for future use.
scheduled_maintenancecorejsonThe start time of any upcoming scheduled maintenance for this instance.
secondary_gce_zonecorestringThe 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.
self_linkcorestringThe URI of this resource.
server_ca_certcorejsonSSL configuration.
service_account_email_addresscorestringThe service account email address assigned to the instance. \This property is read-only.
settingscorejsonThe user settings.
sql_network_architecturecorestringThe SQL network architecture for the instance. Possible values: ['SQL_NETWORK_ARCHITECTURE_UNSPECIFIED', 'NEW_NETWORK_ARCHITECTURE', 'OLD_NETWORK_ARCHITECTURE']. Values descriptions: ['', 'The instance uses the new network architecture.', 'The instance uses the old network architecture.']
statecorestringThe current serving state of the Cloud SQL instance. Possible values: ['SQL_INSTANCE_STATE_UNSPECIFIED', 'RUNNABLE', 'SUSPENDED', 'PENDING_DELETE', 'PENDING_CREATE', 'MAINTENANCE', 'FAILED', 'ONLINE_MAINTENANCE', 'REPAIRING']. Values descriptions: ['The state of the instance is unknown.', 'The instance is running, or has been stopped by owner.', 'The instance is not available, for example due to problems with billing.', 'The instance is being deleted.', 'The instance is being created.', 'The instance is down for maintenance.', 'The creation of the instance failed or a fatal error occurred during maintenance.', 'Deprecated', '(Applicable to read pool nodes only.) The read pool node needs to be repaired. The database might be unavailable.']
suspension_reasoncorearray<string>If the instance state is SUSPENDED, the reason for the suspension.
switch_transaction_logs_to_cloud_storage_enabledcoreboolInput only. Whether Cloud SQL is enabled to switch storing point-in-time recovery log files from a data disk to Cloud Storage.
tagscorehstore
upgradable_database_versionscorejsonOutput only. All database versions that are available for upgrade.
write_endpointcorestringOutput only. The dns name of the primary instance in a replication group.