- 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 |
|