- Resource: DatabaseInstance
- SqlInstanceState
- Settings
- SqlAvailabilityType
- SqlPricingPlan
- SqlReplicationType
- SqlActivationPolicy
- IpConfiguration
- AclEntry
- SslMode
- PscConfig
- CaMode
- LocationPreference
- DatabaseFlags
- SqlDataDiskType
- MaintenanceWindow
- SqlUpdateTrack
- BackupConfiguration
- BackupRetentionSettings
- RetentionUnit
- TransactionalLogStorageState
- SqlActiveDirectoryConfig
- DenyMaintenancePeriod
- InsightsConfig
- PasswordValidationPolicy
- Complexity
- SqlServerAuditConfig
- Edition
- ConnectorEnforcement
- ConnectionPoolConfig
- ConnectionPoolFlags
- IpMapping
- SqlIpAddressType
- SqlInstanceType
- OnPremisesConfiguration
- InstanceReference
- SelectedObjects
- ReplicaConfiguration
- MySqlReplicaConfiguration
- SqlBackendType
- SqlSuspensionReason
- SqlScheduledMaintenance
- SqlOutOfDiskReport
- SqlOutOfDiskState
- AvailableDatabaseVersion
- SqlNetworkArchitecture
- ReplicationCluster
- GeminiInstanceConfig
- DnsNameMapping
- ConnectionType
- DnsScope
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. Can be: * Defaults to |
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 A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. 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. |
replicationCluster |
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. Applicable to MySQL and PostgreSQL. |
satisfiesPzi |
Output only. This status indicates whether the instance satisfies PZI. The status is reserved for future use. |
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 |
|
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. |
geminiConfig |
Gemini instance configuration. |
nodeCount |
The number of read pool nodes in a read pool. |
SqlInstanceState
The current serving state of the database instance.
Enums | |
---|---|
SQL_INSTANCE_STATE_UNSPECIFIED |
The state of the instance is unknown. |
RUNNABLE |
The instance is running, or has been stopped by owner. |
SUSPENDED |
The instance is not available, for example due to problems with billing. |
PENDING_DELETE |
The instance is being deleted. |
PENDING_CREATE |
The instance is being created. |
MAINTENANCE |
The instance is down for maintenance. |
FAILED |
The creation of the instance failed or a fatal error occurred during maintenance. |
ONLINE_MAINTENANCE |
Deprecated |
REPAIRING |
(Applicable to read pool nodes only.) The read pool node needs to be repaired. The database might be unavailable. |
Settings
Database instance settings.
JSON representation |
---|
{ "settingsVersion": string, "authorizedGaeApplications": [ string ], "tier": string, "kind": string, "userLabels": { string: string, ... }, "availabilityType": enum ( |
Fields | |
---|---|
settingsVersion |
The version of instance settings. This is a required field for update method to make sure concurrent updates are handled properly. During update, use the most recent settingsVersion value for this instance and do not try to update this value. |
authorizedGaeApplications[] |
The App Engine app IDs that can access this instance. (Deprecated) Applied to First Generation instances only. |
tier |
The tier (or machine type) for this instance, for example |
kind |
This is always |
userLabels |
User-provided labels, represented as a dictionary where each label is a single key value pair. An object containing a list of |
availabilityType |
Availability type. Potential values: * For more information, see Overview of the High Availability Configuration. |
pricingPlan |
The pricing plan for this instance. This can be either |
replicationType |
The type of replication this instance uses. This can be either |
storageAutoResizeLimit |
The maximum size to which storage capacity can be automatically increased. The default value is 0, which specifies that there is no limit. |
activationPolicy |
The activation policy specifies when the instance is activated; it is applicable only when the instance state is RUNNABLE. Valid values: * |
ipConfiguration |
The settings for IP Management. This allows to enable or disable the instance IP and manage which external networks can connect to the instance. The IPv4 address cannot be disabled for Second Generation instances. |
storageAutoResize |
Configuration to increase storage size automatically. The default value is true. |
locationPreference |
The location preference settings. This allows the instance to be located as near as possible to either an App Engine app or Compute Engine zone for better performance. App Engine co-location was only applicable to First Generation instances. |
databaseFlags[] |
The database flags passed to the instance at startup. |
dataDiskType |
The type of data disk: |
maintenanceWindow |
The maintenance window for this instance. This specifies when the instance can be restarted for maintenance purposes. |
backupConfiguration |
The daily backup configuration for the instance. |
databaseReplicationEnabled |
Configuration specific to read replica instances. Indicates whether replication is enabled or not. WARNING: Changing this restarts the instance. |
crashSafeReplicationEnabled |
Configuration specific to read replica instances. Indicates whether database flags for crash-safe replication are enabled. This property was only applicable to First Generation instances. |
dataDiskSizeGb |
The size of data disk, in GB. The data disk size minimum is 10GB. |
activeDirectoryConfig |
Active Directory configuration, relevant only for Cloud SQL for SQL Server. |
collation |
The name of server Instance collation. |
denyMaintenancePeriods[] |
Deny maintenance periods |
insightsConfig |
Insights configuration, for now relevant only for Postgres. |
passwordValidationPolicy |
The local user password validation policy of the instance. |
sqlServerAuditConfig |
SQL Server specific audit configuration. |
edition |
Optional. The edition of the instance. |
connectorEnforcement |
Specifies if connections must use Cloud SQL connectors. Option values include the following: Note that using REQUIRED disables all existing authorized networks. If this field is not specified when creating a new instance, NOT_REQUIRED is used. If this field is not specified when patching or updating an existing instance, it is left unchanged in the instance. |
deletionProtectionEnabled |
Configuration to protect against accidental instance deletion. |
timeZone |
Server timezone, relevant only for Cloud SQL for SQL Server. |
enableGoogleMlIntegration |
Optional. When this parameter is set to true, Cloud SQL instances can connect to Vertex AI to pass requests for real-time predictions and insights to the AI. The default value is false. This applies only to Cloud SQL for MySQL and Cloud SQL for PostgreSQL instances. |
enableDataplexIntegration |
Optional. By default, Cloud SQL instances have schema extraction disabled for Dataplex. When this parameter is set to true, schema extraction for Dataplex on Cloud SQL instances is activated. |
retainBackupsOnDelete |
Optional. When this parameter is set to true, Cloud SQL retains backups of the instance even after the instance is deleted. The ON_DEMAND backup will be retained until customer deletes the backup or the project. The AUTOMATED backup will be retained based on the backups retention setting. |
connectionPoolConfig |
Optional. The managed connection pooling configuration for the instance. |
SqlAvailabilityType
The availability type of the given Cloud SQL instance.
Enums | |
---|---|
SQL_AVAILABILITY_TYPE_UNSPECIFIED |
This is an unknown Availability type. |
ZONAL |
Zonal available instance. |
REGIONAL |
Regional available instance. |
SqlPricingPlan
The pricing plan for this instance.
Enums | |
---|---|
SQL_PRICING_PLAN_UNSPECIFIED |
This is an unknown pricing plan for this instance. |
PACKAGE |
The instance is billed at a monthly flat rate. |
PER_USE |
The instance is billed per usage. |
SqlReplicationType
Enums | |
---|---|
SQL_REPLICATION_TYPE_UNSPECIFIED |
This is an unknown replication type for a Cloud SQL instance. |
SYNCHRONOUS |
The synchronous replication mode for First Generation instances. It is the default value. |
ASYNCHRONOUS |
The asynchronous replication mode for First Generation instances. It provides a slight performance gain, but if an outage occurs while this option is set to asynchronous, you can lose up to a few seconds of updates to your data. |
SqlActivationPolicy
Specifies when the instance is activated.
Enums | |
---|---|
SQL_ACTIVATION_POLICY_UNSPECIFIED |
Unknown activation plan. |
ALWAYS |
The instance is always up and running. |
NEVER |
The instance never starts. |
ON_DEMAND |
The instance starts upon receiving requests. |
IpConfiguration
IP Management configuration.
JSON representation |
---|
{ "ipv4Enabled": boolean, "privateNetwork": string, "requireSsl": boolean, "authorizedNetworks": [ { object ( |
Fields | |
---|---|
ipv4Enabled |
Whether the instance is assigned a public IP address or not. |
privateNetwork |
The resource link for the VPC network from which the Cloud SQL instance is accessible for private IP. For example, |
requireSsl |
Use Whether SSL/TLS connections over IP are enforced. If set to false, then allow both non-SSL/non-TLS and SSL/TLS connections. For SSL/TLS connections, the client certificate won't be verified. If set to true, then only allow connections encrypted with SSL/TLS and with valid client certificates. If you want to enforce SSL/TLS without enforcing the requirement for valid client certificates, then use the |
authorizedNetworks[] |
|