- Resource: DatabaseInstance
- JSON representation
- SqlInstanceState
- Settings
- SqlAvailabilityType
- SqlPricingPlan
- SqlReplicationType
- SqlActivationPolicy
- IpConfiguration
- AclEntry
- SslMode
- PscConfig
- PscAutoConnectionConfig
- AutoDnsStatus
- CaMode
- ServerCertificateRotationMode
- LocationPreference
- DatabaseFlags
- SqlDataDiskType
- MaintenanceWindow
- SqlUpdateTrack
- BackupConfiguration
- BackupRetentionSettings
- RetentionUnit
- TransactionalLogStorageState
- BackupTier
- SqlActiveDirectoryConfig
- ActiveDirectoryMode
- DenyMaintenancePeriod
- InsightsConfig
- PasswordValidationPolicy
- Complexity
- SqlServerAuditConfig
- Edition
- ConnectorEnforcement
- AdvancedMachineFeatures
- DataCacheConfig
- ConnectionPoolConfig
- ConnectionPoolFlags
- FinalBackupConfig
- ReadPoolAutoScaleConfig
- TargetMetric
- SqlServerEntraIdConfig
- DataApiAccess
- IpMapping
- SqlIpAddressType
- SqlInstanceType
- OnPremisesConfiguration
- InstanceReference
- SelectedObjects
- SslOption
- ReplicaConfiguration
- MySqlReplicaConfiguration
- SqlBackendType
- SqlSuspensionReason
- SqlScheduledMaintenance
- SqlOutOfDiskReport
- SqlOutOfDiskState
- AvailableDatabaseVersion
- SqlNetworkArchitecture
- ReplicationCluster
- GeminiInstanceConfig
- PoolNodeConfig
- DnsNameMapping
- ConnectionType
- DnsScope
- RecordManager
- Methods
Resource: DatabaseInstance
A Cloud SQL instance resource.
| JSON representation |
|---|
{ "kind": string, "state": enum ( |
| Fields | |
|---|---|
kind |
This is always |
state |
The current serving state of the Cloud SQL instance. |
databaseVersion |
The database engine type and version. The |
settings |
The user settings. |
etag |
This field is deprecated and will be removed from a future version of the API. Use the |
failoverReplica |
The name and status of the failover replica. |
failoverReplica.name |
The name of the failover replica. If specified at instance creation, a failover replica is created for the instance. The name doesn't include the project ID. |
failoverReplica.available |
The availability status of the failover replica. A false status indicates that the failover replica is out of sync. The primary instance can only failover to the failover replica when the status is true. |
masterInstanceName |
The name of the instance which will act as primary in the replication setup. |
replicaNames[] |
The replicas of the instance. |
maxDiskSize |
The maximum disk size of the instance in bytes. |
currentDiskSize |
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. |
ipAddresses[] |
The assigned IP addresses for the instance. |
serverCaCert |
SSL configuration. |
instanceType |
The instance type. |
project |
The project ID of the project containing the Cloud SQL instance. The Google apps domain is prefixed if applicable. |
ipv6Address |
The IPv6 address assigned to the instance. (Deprecated) This property was applicable only to First Generation instances. |
serviceAccountEmailAddress |
The service account email address assigned to the instance. \This property is read-only. |
onPremisesConfiguration |
Configuration specific to on-premises instances. |
replicaConfiguration |
Configuration specific to failover replicas and read replicas. |
backendType |
The backend type. This property is read-only; use the |
selfLink |
The URI of this resource. |
suspensionReason[] |
If the instance state is SUSPENDED, the reason for the suspension. |
connectionName |
Connection name of the Cloud SQL instance used in connection strings. |
name |
Name of the Cloud SQL instance. This does not include the project ID. |
region |
The geographical region of the Cloud SQL instance. It can be one of the regions where Cloud SQL operates: For example, |
gceZone |
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. |
secondaryGceZone |
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. |
diskEncryptionConfiguration |
Disk encryption configuration specific to an instance. |
diskEncryptionStatus |
Disk encryption status specific to an instance. |
rootPassword |
Initial root password. Use only on creation. You must set root passwords before you can connect to PostgreSQL instances. |
scheduledMaintenance |
The start time of any upcoming scheduled maintenance for this instance. |
satisfiesPzs |
This status indicates whether the instance satisfies PZS. The status is reserved for future use. |
databaseInstalledVersion |
Output only. Stores the current database version running on the instance including minor version such as |
createTime |
Output only. The time when the instance was created in RFC 3339 format, for example Uses RFC 3339, where generated output will always be Z-normalized and use 0, 3, 6 or 9 fractional digits. Offsets other than "Z" are also accepted. Examples: |
availableMaintenanceVersions[] |
Output only. instances.list all maintenance versions applicable on the instance |
maintenanceVersion |
The current software version on the instance. |
upgradableDatabaseVersions[] |
Output only. All database versions that are available for upgrade. |
satisfiesPzi |
Output only. This status indicates whether the instance satisfies PZI. The status is reserved for future use. |
tags |
Optional. Input only. Immutable. Tag keys and tag values that are bound to this instance. You must represent each item in the map as: For example, a single resource can have the following tags: For more information on tag creation and management, see https://cloud.google.com/resource-manager/docs/tags/tags-overview. An object containing a list of |
nodes[] |
Output only. Entries containing information about each read pool node of the read pool. |
dnsNames[] |
Output only. The list of DNS names used by this instance. |
outOfDiskReport |
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 |
sqlNetworkArchitecture |
The SQL network architecture for the instance. |
pscServiceAttachmentLink |
Output only. The link to service attachment of PSC instance. |
dnsName |
Output only. The dns name of the instance. |
primaryDnsName |
Output only. DEPRECATED: please use writeEndpoint instead. |
writeEndpoint |
Output only. The dns name of the primary instance in a replication group. |
replicationCluster |
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. Applicable to MySQL and PostgreSQL. |
geminiConfig |
|