Get desktop application:
View/edit binary Protocol Buffers messages
Service that exposes Cloud SQL database versions information. This service is only used internally.
(no methods)
Service for managing database backups.
Deletes the backup taken by a backup run.
Backup runs delete request.
The ID of the backup run to delete. To find a backup run ID, use the [list](https://cloud.google.com/sql/docs/mysql/admin-api/rest/v1/backupRuns/list) method.
Cloud SQL instance ID. This does not include the project ID.
Project ID of the project that contains the instance.
Retrieves a resource containing information about a backup run.
Backup runs get request.
The ID of this backup run.
Cloud SQL instance ID. This does not include the project ID.
Project ID of the project that contains the instance.
Creates a new backup run on demand.
Backup runs insert request.
Cloud SQL instance ID. This does not include the project ID.
Project ID of the project that contains the instance.
Lists all backup runs associated with the project or a given instance and configuration in the reverse chronological order of the backup initiation time.
Backup runs list request.
Cloud SQL instance ID, or "-" for all instances. This does not include the project ID.
Maximum number of backup runs per response.
A previously-returned page token representing part of the larger set of results to view.
Project ID of the project that contains the instance.
Backup run list results.
This is always `sql#backupRunsList`.
A list of backup runs in reverse chronological order of the enqueued time.
The continuation token, used to page through large result sets. Provide this value in a subsequent request to return the next page of results.
Cloud SQL connect service.
Retrieves connect settings about a Cloud SQL instance.
Connect settings retrieval request.
Cloud SQL instance ID. This does not include the project ID.
Project ID of the project that contains the instance.
Optional. Optional snapshot read timestamp to trade freshness for performance.
Connect settings retrieval response.
This is always `sql#connectSettings`.
SSL configuration.
The assigned IP addresses for the instance.
The cloud region for the instance. For example, `us-central1`, `europe-west1`. The region cannot be changed after instance creation.
The database engine type and version. The `databaseVersion` field cannot be changed after instance creation. MySQL instances: `MYSQL_8_0`, `MYSQL_5_7` (default), or `MYSQL_5_6`. PostgreSQL instances: `POSTGRES_9_6`, `POSTGRES_10`, `POSTGRES_11`, `POSTGRES_12` (default), `POSTGRES_13`, or `POSTGRES_14`. SQL Server instances: `SQLSERVER_2017_STANDARD` (default), `SQLSERVER_2017_ENTERPRISE`, `SQLSERVER_2017_EXPRESS`, `SQLSERVER_2017_WEB`, `SQLSERVER_2019_STANDARD`, `SQLSERVER_2019_ENTERPRISE`, `SQLSERVER_2019_EXPRESS`, or `SQLSERVER_2019_WEB`.
`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.
Whether PSC connectivity is enabled for this instance.
The dns name of the instance.
Specify what type of CA is used for the server certificate.
Generates a short-lived X509 certificate containing the provided public key and signed by a private key specific to the target instance. Users may use the certificate to authenticate as themselves when connecting to the database.
Ephemeral certificate creation request.
Cloud SQL instance ID. This does not include the project ID.
Project ID of the project that contains the instance.
PEM encoded public key to include in the signed certificate.
Optional. Access token to include in the signed certificate.
Optional. Optional snapshot read timestamp to trade freshness for performance.
Optional. If set, it will contain the cert valid duration.
Ephemeral certificate creation request.
Generated cert
Service to manage databases.
Deletes a database from a Cloud SQL instance.
Database delete request.
Name of the database to be deleted in the instance.
Database instance ID. This does not include the project ID.
Project ID of the project that contains the instance.
Retrieves a resource containing information about a database inside a Cloud SQL instance.
Database get request.
Name of the database in the instance.
Database instance ID. This does not include the project ID.
Project ID of the project that contains the instance.
Inserts a resource containing information about a database inside a Cloud SQL instance. **Note:** You can't modify the default character set and collation.
Database insert request.
Database instance ID. This does not include the project ID.
Project ID of the project that contains the instance.
Lists databases in the specified Cloud SQL instance.
Database list request.
Cloud SQL instance ID. This does not include the project ID.
Project ID of the project that contains the instance.
Database list response.
This is always `sql#databasesList`.
List of database resources in the instance.
Partially updates a resource containing information about a database inside a Cloud SQL instance. This method supports patch semantics.
Updates a resource containing information about a database inside a Cloud SQL instance.
Service that exposes Cloud SQL event information. This service is only used internally.
(no methods)
Service to manage database flags for Cloud SQL instances.
Lists all available database flags for Cloud SQL instances.
Flags list request.
Database type and version you want to retrieve flags for. By default, this method returns flags for all database types and versions.
Flags list response.
This is always `sql#flagsList`.
List of flags.
Service for providing IAM Meta APIs for Cloud SQL.
(no methods)
Cloud SQL instance names service.
(no methods)
Service to manage Cloud SQL instances.
Adds a new trusted Certificate Authority (CA) version for the specified instance. Required to prepare for a certificate rotation. If a CA version was previously added but never used in a certificate rotation, this operation replaces that version. There cannot be more than one CA version waiting to be rotated in. For instances that have enabled Certificate Authority Service (CAS) based server CA, please use AddServerCertificate to add a new server certificate.
Instance add server CA request.
Cloud SQL instance ID. This does not include the project ID.
Project ID of the project that contains the instance.
Creates a Cloud SQL instance as a clone of the source instance. Using this operation might cause your instance to restart.
Instance clone request.
The ID of the Cloud SQL instance to be cloned (source). This does not include the project ID.
Project ID of the source as well as the clone Cloud SQL instance.
Deletes a Cloud SQL instance.
Instance delete request.
Cloud SQL instance ID. This does not include the project ID.
Project ID of the project that contains the instance to be deleted.
Demotes the stand-alone instance to be a Cloud SQL read replica for an external database server.
Instance demote master request.
Cloud SQL instance name.
ID of the project that contains the instance.
Demotes an existing standalone instance to be a Cloud SQL read replica for an external database server.
Instance demote request.
Required. Cloud SQL instance name.
Required. ID of the project that contains the instance.
Required. The request body.
Exports data from a Cloud SQL instance to a Cloud Storage bucket as a SQL dump or CSV file.
Instance export request.
Cloud SQL instance ID. This does not include the project ID.
Project ID of the project that contains the instance to be exported.
Initiates a manual failover of a high availability (HA) primary instance to a standby instance, which becomes the primary instance. Users are then rerouted to the new primary. For more information, see the [Overview of high availability](https://cloud.google.com/sql/docs/mysql/high-availability) page in the Cloud SQL documentation. If using Legacy HA (MySQL only), this causes the instance to failover to its failover replica instance.
Instance failover request.
Cloud SQL instance ID. This does not include the project ID.
ID of the project that contains the read replica.
Reencrypt CMEK instance with latest key version.
Instance reencrypt request.
Cloud SQL instance ID. This does not include the project ID.
ID of the project that contains the instance.
Reencrypt body that users request
Retrieves a resource containing information about a Cloud SQL instance.
Instance get request.
Database instance ID. This does not include the project ID.
Project ID of the project that contains the instance.
Imports data into a Cloud SQL instance from a SQL dump or CSV file in Cloud Storage.
Instance import request.
Cloud SQL instance ID. This does not include the project ID.
Project ID of the project that contains the instance.
Creates a new Cloud SQL instance.
Instance insert request.
Project ID of the project to which the newly created Cloud SQL instances should belong.
Lists instances under a given project.
Instance list request.
A filter expression that filters resources listed in the response. The expression is in the form of field:value. For example, 'instanceType:CLOUD_SQL_INSTANCE'. Fields can be nested as needed as per their JSON representation, such as 'settings.userLabels.auto_start:true'. Multiple filter queries are space-separated. For example. 'state:RUNNABLE instanceType:CLOUD_SQL_INSTANCE'. By default, each expression is an AND expression. However, you can include AND and OR expressions explicitly.
The maximum number of instances to return. The service may return fewer than this value. If unspecified, at most 500 instances are returned. The maximum value is 1000; values above 1000 are coerced to 1000.
A previously-returned page token representing part of the larger set of results to view.
Project ID of the project for which to list Cloud SQL instances.
Database instances list response.
This is always `sql#instancesList`.
List of warnings that occurred while handling the request.
List of database instance resources.
The continuation token, used to page through large result sets. Provide this value in a subsequent request to return the next page of results.
Lists all of the trusted Certificate Authorities (CAs) for the specified instance. There can be up to three CAs listed: the CA that was used to sign the certificate that is currently in use, a CA that has been added but not yet used to sign a certificate, and a CA used to sign a certificate that has previously rotated out.
Instance list server CAs request.
Cloud SQL instance ID. This does not include the project ID.
Project ID of the project that contains the instance.
Instances ListServerCas response.
List of server CA certificates for the instance.
This is always `sql#instancesListServerCas`.
Partially updates settings of a Cloud SQL instance by merging the request with the current configuration. This method supports patch semantics.
Instance patch request.
Cloud SQL instance ID. This does not include the project ID.
Project ID of the project that contains the instance.
Promotes the read replica instance to be an independent Cloud SQL primary instance. Using this operation might cause your instance to restart.
Instance promote replica request.
Cloud SQL read replica instance name.
ID of the project that contains the read replica.
Set to true to invoke a replica failover to the designated DR replica. As part of replica failover, the promote operation attempts to add the original primary instance as a replica of the promoted DR replica when the original primary instance comes back online. If set to false or not specified, then the original primary instance becomes an independent Cloud SQL primary instance. Only applicable to MySQL.
Switches over from the primary instance to the designated DR replica instance.
Instance switchover request.
Cloud SQL read replica instance name.
ID of the project that contains the replica.
Optional. (MySQL only) Cloud SQL instance operations timeout, which is a sum of all database operations. Default value is 10 minutes and can be modified to a maximum value of 24 hours.
Deletes all client certificates and generates a new server SSL certificate for the instance.
Instance reset SSL config request.
Cloud SQL instance ID. This does not include the project ID.
Project ID of the project that contains the instance.
Restarts a Cloud SQL instance.
Instance restart request.
Cloud SQL instance ID. This does not include the project ID.
Project ID of the project that contains the instance to be restarted.
Restores a backup of a Cloud SQL instance. Using this operation might cause your instance to restart.
Instance restore backup request.
Cloud SQL instance ID. This does not include the project ID.
Project ID of the project that contains the instance.
Rotates the server certificate to one signed by the Certificate Authority (CA) version previously added with the addServerCA method. For instances that have enabled Certificate Authority Service (CAS) based server CA, please use RotateServerCertificate to rotate the server certificate.
Instance rotate server CA request.
Cloud SQL instance ID. This does not include the project ID.
Project ID of the project that contains the instance.
Starts the replication in the read replica instance.
Instance start replica request.
Cloud SQL read replica instance name.
ID of the project that contains the read replica.
Stops the replication in the read replica instance.
Instance stop replica request.
Cloud SQL read replica instance name.
ID of the project that contains the read replica.
Truncate MySQL general and slow query log tables MySQL only.
Instance truncate log request.
Cloud SQL instance ID. This does not include the project ID.
Project ID of the Cloud SQL project.
Updates settings of a Cloud SQL instance. Using this operation might cause your instance to restart.
Instance update request.
Cloud SQL instance ID. This does not include the project ID.
Project ID of the project that contains the instance.
Generates a short-lived X509 certificate containing the provided public key and signed by a private key specific to the target instance. Users may use the certificate to authenticate as themselves when connecting to the database.
Instance create ephemeral certificate request.
Cloud SQL instance ID. This does not include the project ID.
Project ID of the Cloud SQL project.
Reschedules the maintenance on the given instance.
Instance reschedule maintenance request.
Cloud SQL instance ID. This does not include the project ID.
ID of the project that contains the instance.
Verify External primary instance external sync settings.
Instance verify external sync settings request.
Cloud SQL instance ID. This does not include the project ID.
Project ID of the project that contains the instance.
Flag to enable verifying connection only
External sync mode
Optional. Flag to verify settings required by replication setup only
Optional. MySQL-specific settings for start external sync.
Optional. MigrationType configures the migration to use physical files or logical dump files. If not set, then the logical dump file configuration is used. Valid values are `LOGICAL` or `PHYSICAL`. Only applicable to MySQL.
Optional. Parallel level for initial data sync. Only applicable for PostgreSQL.
Instance verify external sync settings response.
This is always `sql#migrationSettingErrorList`.
List of migration violations.
List of migration warnings.
Start External primary instance migration.
Instance start external sync request.
Cloud SQL instance ID. This does not include the project ID.
ID of the project that contains the instance.
External sync mode.
Whether to skip the verification step (VESS).
MySQL-specific settings for start external sync.
Optional. Parallel level for initial data sync. Currently only applicable for MySQL.
Optional. MigrationType configures the migration to use physical files or logical dump files. If not set, then the logical dump file configuration is used. Valid values are `LOGICAL` or `PHYSICAL`. Only applicable to MySQL.
Perform Disk Shrink on primary instance.
Instance perform disk shrink request.
Cloud SQL instance ID. This does not include the project ID.
Project ID of the project that contains the instance.
Perform disk shrink context.
Get Disk Shrink Config for a given instance.
Instance get disk shrink config request.
Cloud SQL instance ID. This does not include the project ID.
Project ID of the project that contains the instance.
Instance get disk shrink config response.
This is always `sql#getDiskShrinkConfig`.
The minimum size to which a disk can be shrunk in GigaBytes.
Additional message to customers.
Reset Replica Size to primary instance disk size.
Instance reset replica size request.
Cloud SQL read replica instance name.
ID of the project that contains the read replica.
Get Latest Recovery Time for a given instance.
Instance get latest recovery time request.
Cloud SQL instance ID. This does not include the project ID.
Project ID of the project that contains the instance.
Instance get latest recovery time response.
This is always `sql#getLatestRecoveryTime`.
Timestamp, identifies the latest recovery time of the source instance.
Acquire a lease for the setup of SQL Server Reporting Services (SSRS).
Request to acquire a lease for SSRS.
Required. Cloud SQL instance ID. This doesn't include the project ID. It's composed of lowercase letters, numbers, and hyphens, and it must start with a letter. The total length must be 98 characters or less (Example: instance-id).
Required. Project ID of the project that contains the instance (Example: project-id).
Required. The request body.
Response for the acquire SSRS lease request.
The unique identifier for this operation.
Release a lease for the setup of SQL Server Reporting Services (SSRS).
Request to release a lease for SSRS.
Required. The Cloud SQL instance ID. This doesn't include the project ID. The instance ID contains lowercase letters, numbers, and hyphens, and it must start with a letter. This ID can have a maximum length of 98 characters.
Required. The project ID that contains the instance.
Response for the release SSRS lease request.
The unique identifier for this operation.
Service to fetch operations for database instances.
Retrieves an instance operation that has been performed on an instance.
Operations get request.
Instance operation ID.
Project ID of the project that contains the instance.
Lists all instance operations that have been performed on the given Cloud SQL instance in the reverse chronological order of the start time.
Operations list request.
Cloud SQL instance ID. This does not include the project ID.
Maximum number of operations per response.
A previously-returned page token representing part of the larger set of results to view.
Project ID of the project that contains the instance.
Operations list response.
This is always `sql#operationsList`.
List of operation resources.
The continuation token, used to page through large result sets. Provide this value in a subsequent request to return the next page of results.
Cancels an instance operation that has been performed on an instance.
Operations cancel request.
Instance operation ID.
Project ID of the project that contains the instance.
Service that exposes Cloud SQL region information. This service is only used internally and does not follow the same patterns as the other v1 RPCs.
(no methods)
Service to manage SSL certs for Cloud SQL instances.
Deletes the SSL certificate. For First Generation instances, the certificate remains valid until the instance is restarted.
Cloud SQL instance ID. This does not include the project ID.
Project ID of the project that contains the instance.
Sha1 FingerPrint.
Retrieves a particular SSL certificate. Does not include the private key (required for usage). The private key must be saved from the response to initial creation.
Cloud SQL instance ID. This does not include the project ID.
Project ID of the project that contains the instance.
Sha1 FingerPrint.
Creates an SSL certificate and returns it along with the private key and server certificate authority. The new certificate will not be usable until the instance is restarted.
Cloud SQL instance ID. This does not include the project ID.
Project ID of the project that contains the instance.
SslCert insert response.
This is always `sql#sslCertsInsert`.
The operation to track the ssl certs insert request.
The server Certificate Authority's certificate. If this is missing you can force a new one to be generated by calling resetSslConfig method on instances resource.
The new client certificate and private key.
Lists all of the current SSL certificates for the instance.
Cloud SQL instance ID. This does not include the project ID.
Project ID of the project that contains the instance.
SslCerts list response.
This is always `sql#sslCertsList`.
List of client certificates for the instance.
Service for providing machine types (tiers) for Cloud SQL instances.
Lists all available machine types (tiers) for Cloud SQL, for example, `db-custom-1-3840`. For more information, see https://cloud.google.com/sql/pricing.
Tiers list request.
Project ID of the project for which to list tiers.
Tiers list response.
This is always `sql#tiersList`.
List of tiers.
Cloud SQL users service.
Deletes a user from a Cloud SQL instance.
Host of the user in the instance.
Database instance ID. This does not include the project ID.
Name of the user in the instance.
Project ID of the project that contains the instance.
Retrieves a resource containing information about a user.
Request message for Users Get RPC
Database instance ID. This does not include the project ID.
User of the instance.
Project ID of the project that contains the instance.
Host of a user of the instance.
Creates a new user in a Cloud SQL instance.
Database instance ID. This does not include the project ID.
Project ID of the project that contains the instance.
Lists users in the specified Cloud SQL instance.
Database instance ID. This does not include the project ID.
Project ID of the project that contains the instance.
User list response.
This is always `sql#usersList`.
List of user resources in the instance.
Unused.
Updates an existing user in a Cloud SQL instance.
Optional. Host of the user in the instance.
Database instance ID. This does not include the project ID.
Name of the user in the instance.
Project ID of the project that contains the instance.
An entry for an Access Control list.
Used in:
The allowlisted value for the access control list.
The time when this access control entry expires in [RFC 3339](https://tools.ietf.org/html/rfc3339) format, for example `2012-11-15T16:19:00.094Z`.
Optional. A label to identify this entry.
This is always `sql#aclEntry`.
Acquire SSRS lease context.
Used in:
,The username to be used as the setup login to connect to the database server for SSRS setup.
The username to be used as the service login to connect to the report database for SSRS setup.
The report database to be used for SSRS setup.
Lease duration needed for SSRS setup.
Specifies options for controlling advanced machine features.
Used in:
The number of threads per physical core.
An Admin API warning message.
Used in:
,Code to uniquely identify the warning type.
The warning message.
The region name for REGION_UNREACHABLE warning.
Used in:
An unknown or unset warning type from Cloud SQL API.
Warning when one or more regions are not reachable. The returned result set may be incomplete.
Warning when user provided maxResults parameter exceeds the limit. The returned result set may be incomplete.
Warning when user tries to create/update a user with credentials that have previously been compromised by a public data breach.
Warning when the operation succeeds but some non-critical workflow state failed.
An available database version. It can be a major or a minor version.
Used in:
The version's major version name.
The database version name. For MySQL 8.0, this string provides the database major and minor version.
The database version's display name.
Database instance backup configuration.
Used in:
Start time for the daily backup configuration in UTC timezone in the 24 hour format - `HH:MM`.
Whether this configuration is enabled.
This is always `sql#backupConfiguration`.
(MySQL only) Whether binary log is enabled. If backup configuration is disabled, binarylog must be disabled as well.
Reserved for future use.
Location of the backup
Whether point in time recovery is enabled.
Backup retention settings.
The number of days of transaction logs we retain for point in time restore, from 1-7.
Output only. This value contains the storage location of transactional logs used to perform point-in-time recovery (PITR) for the database.
This value contains the storage location of the transactional logs used to perform point-in-time recovery (PITR) for the database.
Used in:
Unspecified.
The transaction logs used for PITR for the instance are stored on a data disk.
The transaction logs used for PITR for the instance are switching from being stored on a data disk to being stored in Cloud Storage. Only applicable to MySQL.
The transaction logs used for PITR for the instance are now stored in Cloud Storage. Previously, they were stored on a data disk. Only applicable to MySQL.
The transaction logs used for PITR for the instance are stored in Cloud Storage. Only applicable to MySQL and PostgreSQL.
Backup context.
Used in:
The identifier of the backup.
This is always `sql#backupContext`.
Backup Reencryption Config
Used in:
Backup re-encryption limit
Type of backups users want to re-encrypt.
Backup type for re-encryption
Used in:
Unknown backup type, will be defaulted to AUTOMATIC backup type
Reencrypt automatic backups
Reencrypt on-demand backups
We currently only support backup retention by specifying the number of backups we will retain.
Used in:
The unit that 'retained_backups' represents.
Depending on the value of retention_unit, this is used to determine if a backup needs to be deleted. If retention_unit is 'COUNT', we will retain this many backups.
The units that retained_backups specifies, we only support COUNT.
Used in:
Backup retention unit is unspecified, will be treated as COUNT.
Retention will be by count, eg. "retain the most recent 7 backups".
A BackupRun resource.
Used as response type in: SqlBackupRunsService.Get
Used as field type in:
,This is always `sql#backupRun`.
The status of this run.
The time the run was enqueued in UTC timezone in [RFC 3339](https://tools.ietf.org/html/rfc3339) format, for example `2012-11-15T16:19:00.094Z`.
The identifier for this backup run. Unique only for a specific Cloud SQL instance.
The time the backup operation actually started in UTC timezone in [RFC 3339](https://tools.ietf.org/html/rfc3339) format, for example `2012-11-15T16:19:00.094Z`.
The time the backup operation completed in UTC timezone in [RFC 3339](https://tools.ietf.org/html/rfc3339) format, for example `2012-11-15T16:19:00.094Z`.
Information about why the backup operation failed. This is only present if the run has the FAILED status.
The type of this run; can be either "AUTOMATED" or "ON_DEMAND" or "FINAL". This field defaults to "ON_DEMAND" and is ignored, when specified for insert requests.
The description of this run, only applicable to on-demand backups.
The start time of the backup window during which this the backup was attempted in [RFC 3339](https://tools.ietf.org/html/rfc3339) format, for example `2012-11-15T16:19:00.094Z`.
Name of the database instance.
The URI of this resource.
Location of the backups.
Encryption configuration specific to a backup.
Encryption status specific to a backup.
Specifies the kind of backup, PHYSICAL or DEFAULT_SNAPSHOT.
Backup time zone to prevent restores to an instance with a different time zone. Now relevant only for SQL Server.
Output only. The maximum chargeable bytes for the backup.
Used in:
,Default type.
Full backup.
Differential backup.
Transaction Log backup
Binary log coordinates.
Used in:
Name of the binary log file for a Cloud SQL instance.
Position (offset) within the binary log file.
This is always `sql#binLogCoordinates`.
Database instance clone context.
Used in:
This is always `sql#cloneContext`.
Reserved for future use.
Name of the Cloud SQL instance to be created as a clone.
Binary log coordinates, if specified, identify the position up to which the source instance is cloned. If not specified, the source instance is cloned up to the most recent binary log coordinates.
Timestamp, if specified, identifies the time to which the source instance is cloned.
The name of the allocated ip range for the private ip Cloud SQL instance. For example: "google-managed-services-default". If set, the cloned instance ip will be created in the allocated range. The range name must comply with [RFC 1035](https://tools.ietf.org/html/rfc1035). Specifically, the name must be 1-63 characters long and match the regular expression [a-z]([-a-z0-9]*[a-z0-9])?. Reserved for future use.
(SQL Server only) Clone only the specified databases from the source instance. Clone all databases if empty.
Optional. Copy clone and point-in-time recovery clone of an instance to the specified zone. If no zone is specified, clone to the same primary zone as the source instance. This field applies to all DB types.
Various Certificate Authority (CA) modes for certificate signing.
Used in:
CA mode is unknown.
Google-managed self-signed internal CA.
Google-managed regional CA part of root CA hierarchy hosted on Google Cloud's Certificate Authority Service (CAS).
Data cache configurations.
Used in:
Whether data cache is enabled for the instance.
Represents a SQL database on the Cloud SQL instance.
Used as response type in: SqlDatabasesService.Get
Used as field type in:
, ,This is always `sql#database`.
The Cloud SQL charset value.
The Cloud SQL collation value.
This field is deprecated and will be removed from a future version of the API.
The name of the database in the Cloud SQL instance. This does not include the project ID or instance name.
The name of the Cloud SQL instance. This does not include the project ID.
The URI of this resource.
The project ID of the project containing the Cloud SQL database. The Google apps domain is prefixed if applicable.
Database flags for Cloud SQL instances.
Used in:
The name of the flag. These flags are passed at instance startup, so include both server options and system variables. Flags are specified with underscores, not hyphens. For more information, see [Configuring Database Flags](https://cloud.google.com/sql/docs/mysql/flags) in the Cloud SQL documentation.
The value of the flag. Boolean flags are set to `on` for true and `off` for false. This field must be omitted if the flag doesn't take a value.
A Cloud SQL instance resource.
Used as response type in: SqlInstancesService.Get
Used as field type in:
, , ,This is always `sql#instance`.
The current serving state of the Cloud SQL instance.
The database engine type and version. The `databaseVersion` field cannot be changed after instance creation.
The user settings.
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 name of the instance which will act as primary in the replication setup.
The replicas of the instance.
The maximum disk size of the instance in bytes.
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](https://groups.google.com/d/msg/google-cloud-sql-announce/I_7-F9EBhT0/BtvFtdFeAgAJ) for details.
The assigned IP addresses for the instance.
SSL configuration.
The instance type.
The project ID of the project containing the Cloud SQL instance. The Google apps domain is prefixed if applicable.
The IPv6 address assigned to the instance. (Deprecated) This property was applicable only to First Generation instances.
The service account email address assigned to the instance.\This property is read-only.
Configuration specific to on-premises instances.
Configuration specific to failover replicas and read replicas.
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 URI of this resource.
If the instance state is SUSPENDED, the reason for the suspension.
Connection name of the Cloud SQL instance used in connection strings.
Name of the Cloud SQL instance. This does not include the project ID.
The 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`.
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.
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.
Disk encryption configuration specific to an instance.
Disk encryption status specific to an instance.
Initial root password. Use only on creation. You must set root passwords before you can connect to PostgreSQL instances.
The start time of any upcoming scheduled maintenance for this instance.
This status indicates whether the instance satisfies PZS. The status is reserved for future use.
Output only. Stores the current database version running on the instance including minor version such as `MYSQL_8_0_18`.
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
Output 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`.
Output only. List all maintenance versions applicable on the instance
The current software version on the instance.
Output only. All database versions that are available for upgrade.
Output only. The link to service attachment of PSC instance.
Output only. The dns name of the instance.
Output only. DEPRECATED: please use write_endpoint instead.
Output only. The dns name of the primary instance in a replication group.
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.
Gemini instance configuration.
Output only. This status indicates whether the instance satisfies PZI. The status is reserved for future use.
Input only. Whether Cloud SQL is enabled to switch storing point-in-time recovery log files from a data disk to Cloud Storage.
Used in:
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.
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.
The current serving state of the database instance.
Used in:
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
The SQL network architecture for the instance.
Used in:
The instance uses the new network architecture.
The instance uses the old network architecture.
This message wraps up the information written by out-of-disk detection job.
Used in:
This field represents the state 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 minimum recommended increase size in GigaBytes This field is consumed by the frontend * Writers: * the proactive database wellness job for OOD. * Readers:
This enum lists all possible states regarding out-of-disk issues.
Used in:
Unspecified state
The instance has plenty space on data disk
Data disk is almost used up. It is shutdown to prevent data corruption.
Any scheduled maintenance for this instance.
Used in:
The start time of any upcoming scheduled maintenance for this instance.
If the scheduled maintenance can be rescheduled.
Maintenance cannot be rescheduled to start beyond this deadline.
This context is used to demote an existing standalone instance to be a Cloud SQL read replica for an external database server.
Used in:
This is always `sql#demoteContext`.
Required. The name of the instance which acts as the on-premises primary instance in the replication setup.
Read-replica configuration for connecting to the on-premises primary instance.
Used in:
This is always `sql#demoteMasterConfiguration`.
MySQL specific configuration when replicating from a MySQL on-premises primary instance. Replication configuration information such as the username, password, certificates, and keys are not stored in the instance metadata. The configuration information is used only to set up the replication connection and is stored by MySQL in a file named `master.info` in the data directory.
Database instance demote primary instance context.
Used in:
This is always `sql#demoteMasterContext`.
Verify the GTID consistency for demote operation. Default value: `True`. Setting this flag to `false` enables you to bypass the GTID consistency check between on-premises primary instance and Cloud SQL instance during the demotion operation but also exposes you to the risk of future replication failures. Change the value only if you know the reason for the GTID divergence and are confident that doing so will not cause any replication issues.
The name of the instance which will act as on-premises primary instance in the replication setup.
Configuration specific to read-replicas replicating from the on-premises primary instance.
Flag to skip replication setup on the instance.
Read-replica configuration specific to MySQL databases.
Used in:
This is always `sql#demoteMasterMysqlReplicaConfiguration`.
The username for the replication connection.
The password for the replication connection.
PEM representation of the replica's private key. The corresponsing public key is encoded in the client's certificate. The format of the replica's private key can be either PKCS #1 or PKCS #8.
PEM representation of the replica's x509 certificate.
PEM representation of the trusted CA's x509 certificate.
Deny maintenance Periods. This specifies a date range during when all CSA rollout will be denied.
Used in:
"deny maintenance period" start date. If the year of the start date is empty, the year of the end date also must be empty. In this case, it means the deny maintenance period recurs every year. The date is in format yyyy-mm-dd i.e., 2020-11-01, or mm-dd, i.e., 11-01
"deny maintenance period" end date. If the year of the end date is empty, the year of the start date also must be empty. In this case, it means the no maintenance interval recurs every year. The date is in format yyyy-mm-dd i.e., 2020-11-01, or mm-dd, i.e., 11-01
Time in UTC when the "deny maintenance period" starts on start_date and ends on end_date. The time is in format: HH:mm:SS, i.e., 00:00:00
Disk encryption configuration for an instance.
Used in:
,Resource name of KMS key for disk encryption
This is always `sql#diskEncryptionConfiguration`.
Disk encryption status for an instance.
Used in:
,KMS key version used to encrypt the Cloud SQL instance resource
This is always `sql#diskEncryptionStatus`.
Database instance export context.
Used in:
,The path to the file in Google Cloud Storage where the export will be stored. The URI is in the form `gs://bucketName/fileName`. If the file already exists, the request succeeds, but the operation fails. If `fileType` is `SQL` and the filename ends with .gz, the contents are compressed.
Databases to be exported. <br /> `MySQL instances:` If `fileType` is `SQL` and no database is specified, all databases are exported, except for the `mysql` system database. If `fileType` is `CSV`, you can specify one database, either by using this property or by using the `csvExportOptions.selectQuery` property, which takes precedence over this property. <br /> `PostgreSQL instances:` You must specify one database to be exported. If `fileType` is `CSV`, this database must match the one specified in the `csvExportOptions.selectQuery` property. <br /> `SQL Server instances:` You must specify one database to be exported, and the `fileType` must be `BAK`.
This is always `sql#exportContext`.
Options for exporting data as SQL statements.
Options for exporting data as CSV. `MySQL` and `PostgreSQL` instances only.
The file type for the specified uri.
Option for export offload.
Options for exporting data as BAK files.
Options for exporting BAK files (SQL Server-only)
Used in:
Whether or not the export should be striped.
Option for specifying how many stripes to use for the export. If blank, and the value of the striped field is true, the number of stripes is automatically chosen.
Type of this bak file will be export, FULL or DIFF, SQL Server only
Deprecated: copy_only is deprecated. Use differential_base instead
Whether or not the backup can be used as a differential base copy_only backup can not be served as differential base
Used in:
The select query used to extract the data.
Specifies the character that should appear before a data character that needs to be escaped.
Specifies the quoting character to be used when a data value is quoted.
Specifies the character that separates columns within each row (line) of the file.
This is used to separate lines. If a line does not contain all fields, the rest of the columns are set to their default values.
Used in:
Tables to export, or that were exported, from the specified database. If you specify tables, specify one and only one database. For PostgreSQL instances, you can specify only one table.
Export only schemas.
Optional. The number of threads to use for parallel export.
Optional. Whether or not the export should be parallel.
Optional. Options for exporting from a Cloud SQL for PostgreSQL instance.
Options for exporting from MySQL.
Used in:
Option to include SQL statement required to set up replication. If set to `1`, the dump file includes a CHANGE MASTER TO statement with the binary log coordinates, and --set-gtid-purged is set to ON. If set to `2`, the CHANGE MASTER TO statement is written as a SQL comment and has no effect. If set to any value other than `1`, --set-gtid-purged is set to OFF.
Options for exporting from a Cloud SQL for PostgreSQL instance.
Used in:
Optional. Use this option to include DROP <object> SQL statements. These statements are used to delete database objects before running the import operation.
Optional. Option to include an IF EXISTS SQL statement with each DROP statement produced by clean.
External Sync parallel level.
Used in:
,Unknown sync parallel level. Will be defaulted to OPTIMAL.
Minimal parallel level.
Optimal parallel level.
Maximum parallel level.
Database instance failover context.
Used in:
The current settings version of this instance. Request will be rejected if this version doesn't match the current settings version.
This is always `sql#failoverContext`.
A flag resource.
Used in:
This is the name of the flag. Flag names always use underscores, not hyphens, for example: `max_allowed_packet`
The type of the flag. Flags are typed to being `BOOLEAN`, `STRING`, `INTEGER` or `NONE`. `NONE` is used for flags that do not take a value, such as `skip_grant_tables`.
The database version this flag applies to. Can be MySQL instances: `MYSQL_8_0`, `MYSQL_8_0_18`, `MYSQL_8_0_26`, `MYSQL_5_7`, or `MYSQL_5_6`. PostgreSQL instances: `POSTGRES_9_6`, `POSTGRES_10`, `POSTGRES_11` or `POSTGRES_12`. SQL Server instances: `SQLSERVER_2017_STANDARD`, `SQLSERVER_2017_ENTERPRISE`, `SQLSERVER_2017_EXPRESS`, `SQLSERVER_2017_WEB`, `SQLSERVER_2019_STANDARD`, `SQLSERVER_2019_ENTERPRISE`, `SQLSERVER_2019_EXPRESS`, or `SQLSERVER_2019_WEB`. See [the complete list](/sql/docs/mysql/admin-api/rest/v1/SqlDatabaseVersion).
For `STRING` flags, a list of strings that the value can be set to.
For `INTEGER` flags, the minimum allowed value.
For `INTEGER` flags, the maximum allowed value.
Indicates whether changing this flag will trigger a database restart. Only applicable to Second Generation instances.
This is always `sql#flag`.
Whether or not the flag is considered in beta.
Use this field if only certain integers are accepted. Can be combined with min_value and max_value to add additional values.
Gemini instance configuration.
Used in:
Output only. Whether Gemini is enabled.
Output only. Whether the vacuum management is enabled.
Output only. Whether canceling the out-of-memory (OOM) session is enabled.
Output only. Whether the active query is enabled.
Output only. Whether the index advisor is enabled.
Output only. Whether the flag recommender is enabled.
Database instance import context.
Used in:
,Path to the import file in Cloud Storage, in the form `gs://bucketName/fileName`. Compressed gzip files (.gz) are supported when `fileType` is `SQL`. The instance must have write permissions to the bucket and read access to the file.
The target database for the import. If `fileType` is `SQL`, this field is required only if the import file does not specify a database, and is overridden by any database specification in the import file. If `fileType` is `CSV`, one database must be specified.
This is always `sql#importContext`.
The file type for the specified uri.\`SQL`: The file contains SQL statements. \`CSV`: The file contains CSV data.
Options for importing data as CSV.
The PostgreSQL user for this import operation. PostgreSQL instances only.
Import parameters specific to SQL Server .BAK files
Optional. Options for importing data from SQL statements.
Used in:
Whether or not the backup set being restored is striped. Applies only to Cloud SQL for SQL Server.
Whether or not the backup importing will restore database with NORECOVERY option Applies only to Cloud SQL for SQL Server.
Whether or not the backup importing request will just bring database online without downloading Bak content only one of "no_recovery" and "recovery_only" can be true otherwise error will return. Applies only to Cloud SQL for SQL Server.
Type of the bak content, FULL or DIFF
Optional. The timestamp when the import should stop. This timestamp is in the [RFC 3339](https://tools.ietf.org/html/rfc3339) format (for example, `2023-10-01T16:19:00.094`). This field is equivalent to the STOPAT keyword and applies to Cloud SQL for SQL Server only.
Optional. The marked transaction where the import should stop. This field is equivalent to the STOPATMARK keyword and applies to Cloud SQL for SQL Server only.
Used in:
Path to the Certificate (.cer) in Cloud Storage, in the form `gs://bucketName/fileName`. The instance must have write permissions to the bucket and read access to the file.
Path to the Certificate Private Key (.pvk) in Cloud Storage, in the form `gs://bucketName/fileName`. The instance must have write permissions to the bucket and read access to the file.
Password that encrypts the private key
Used in:
The table to which CSV data is imported.
The columns to which CSV data is imported. If not specified, all columns of the database table are loaded with CSV data.
Specifies the character that should appear before a data character that needs to be escaped.
Specifies the quoting character to be used when a data value is quoted.
Specifies the character that separates columns within each row (line) of the file.
This is used to separate lines. If a line does not contain all fields, the rest of the columns are set to their default values.
Used in:
Optional. The number of threads to use for parallel import.
Optional. Whether or not the import should be parallel.
Optional. Options for importing from a Cloud SQL for PostgreSQL instance.
Used in:
Optional. The --clean flag for the pg_restore utility. This flag applies only if you enabled Cloud SQL to import files in parallel.
Optional. The --if-exists flag for the pg_restore utility. This flag applies only if you enabled Cloud SQL to import files in parallel.
Insights configuration. This specifies when Cloud SQL Insights feature is enabled and optional configuration.
Used in:
Whether Query Insights feature is enabled.
Whether Query Insights will record client address when enabled.
Whether Query Insights will record application tags from query when enabled.
Maximum query length stored in bytes. Default value: 1024 bytes. Range: 256-4500 bytes. Query length more than this field value will be truncated to this value. When unset, query length will be the default value. Changing query length will restart the database.
Number of query execution plans captured by Insights per minute for all queries combined. Default is 5.
Reference to another Cloud SQL instance.
Used in:
The name of the Cloud SQL instance being referenced. This does not include the project ID.
The region of the Cloud SQL instance being referenced.
The project ID of the Cloud SQL instance being referenced. The default is the same project ID as the instance references it.
Request to acquire a lease for SSRS.
Used in:
Contains details about the acquire SSRS lease operation.
Database instance clone request.
Used in:
Contains details about the clone operation.
Database demote primary instance request.
Used in:
Contains details about the demoteMaster operation.
This request is used to demote an existing standalone instance to be a Cloud SQL read replica for an external database server.
Used in:
Required. Contains details about the demote operation.
Database instance export request.
Used in:
Contains details about the export operation.
Instance failover request.
Used in:
Failover Context.
Database instance import request.
Used in:
Contains details about the import operation.
Database Instance reencrypt request.
Used in:
Configuration specific to backup re-encryption
Database instance restore backup request.
Used in:
Parameters required to perform the restore backup operation.
Rotate server CA request.
Used in:
Contains details about the rotate server CA operation.
Instance truncate log request.
Used in:
Contains details about the truncate log operation.
IP Management configuration.
Used in:
Whether the instance is assigned a public IP address or not.
The resource link for the VPC network from which the Cloud SQL instance is accessible for private IP. For example, `/projects/myProject/global/networks/default`. This setting can be updated, but it cannot be removed after it is set.
Use `ssl_mode` instead. 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 `ssl_mode` flag instead of the `require_ssl` flag.
The list of external networks that are allowed to connect to the instance using the IP. In 'CIDR' notation, also known as 'slash' notation (for example: `157.197.200.0/24`).
The name of the allocated ip range for the private ip Cloud SQL instance. For example: "google-managed-services-default". If set, the instance ip will be created in the allocated range. The range name must comply with [RFC 1035](https://tools.ietf.org/html/rfc1035). Specifically, the name must be 1-63 characters long and match the regular expression `[a-z]([-a-z0-9]*[a-z0-9])?.`
Controls connectivity to private IP instances from Google services, such as BigQuery.
Specify how SSL/TLS is enforced in database connections. If you must use the `require_ssl` flag for backward compatibility, then only the following value pairs are valid: For PostgreSQL and MySQL: * `ssl_mode=ALLOW_UNENCRYPTED_AND_ENCRYPTED` and `require_ssl=false` * `ssl_mode=ENCRYPTED_ONLY` and `require_ssl=false` * `ssl_mode=TRUSTED_CLIENT_CERTIFICATE_REQUIRED` and `require_ssl=true` For SQL Server: * `ssl_mode=ALLOW_UNENCRYPTED_AND_ENCRYPTED` and `require_ssl=false` * `ssl_mode=ENCRYPTED_ONLY` and `require_ssl=true` The value of `ssl_mode` has priority over the value of `require_ssl`. For example, for the pair `ssl_mode=ENCRYPTED_ONLY` and `require_ssl=false`, `ssl_mode=ENCRYPTED_ONLY` means accept only SSL connections, while `require_ssl=false` means accept both non-SSL and SSL connections. In this case, MySQL and PostgreSQL databases respect `ssl_mode` and accepts only SSL connections.
PSC settings for this instance.
Specify what type of CA is used for the server certificate.
Various Certificate Authority (CA) modes for certificate signing.
Used in:
CA mode is unknown.
Google-managed self-signed internal CA.
Google-managed regional CA part of root CA hierarchy hosted on Google Cloud's Certificate Authority Service (CAS).
The SSL options for database connections.
Used in:
The SSL mode is unknown.
Allow non-SSL/non-TLS and SSL/TLS connections. For SSL connections to MySQL and PostgreSQL, the client certificate isn't verified. When this value is used, the legacy `require_ssl` flag must be false or cleared to avoid a conflict between the values of the two flags.
Only allow connections encrypted with SSL/TLS. For SSL connections to MySQL and PostgreSQL, the client certificate isn't verified. When this value is used, the legacy `require_ssl` flag must be false or cleared to avoid a conflict between the values of the two flags.
Only allow connections encrypted with SSL/TLS and with valid client certificates. When this value is used, the legacy `require_ssl` flag must be true or cleared to avoid the conflict between values of two flags. PostgreSQL clients or users that connect using IAM database authentication must use either the [Cloud SQL Auth Proxy](https://cloud.google.com/sql/docs/postgres/connect-auth-proxy) or [Cloud SQL Connectors](https://cloud.google.com/sql/docs/postgres/connect-connectors) to enforce client identity verification. Only applicable to MySQL and PostgreSQL. Not applicable to SQL Server.
Database instance IP mapping
Used in:
,The type of this IP address. A `PRIMARY` address is a public address that can accept incoming connections. A `PRIVATE` address is a private address that can accept incoming connections. An `OUTGOING` address is the source address of connections originating from the instance, if supported.
The IP address assigned.
The due time for this IP to be retired in [RFC 3339](https://tools.ietf.org/html/rfc3339) format, for example `2012-11-15T16:19:00.094Z`. This field is only available when the IP is scheduled to be retired.
Preferred location. This specifies where a Cloud SQL instance is located. Note that if the preferred location is not available, the instance will be located as close as possible within the region. Only one location may be specified.
Used in:
The App Engine application to follow, it must be in the same region as the Cloud SQL instance. WARNING: Changing this might restart the instance.
The preferred Compute Engine zone (for example: us-central1-a, us-central1-b, etc.). WARNING: Changing this might restart the instance.
The preferred Compute Engine zone for the secondary/failover (for example: us-central1-a, us-central1-b, etc.). To disable this field, set it to 'no_secondary_zone'.
This is always `sql#locationPreference`.
Maintenance window. This specifies when a Cloud SQL instance is restarted for system maintenance purposes.
Used in:
Hour of day - 0 to 23. Specify in the UTC time zone.
Day of week - `MONDAY`, `TUESDAY`, `WEDNESDAY`, `THURSDAY`, `FRIDAY`, `SATURDAY`, or `SUNDAY`. Specify in the UTC time zone. Returned in output as an integer, 1 to 7, where `1` equals Monday.
Maintenance timing settings: `canary`, `stable`, or `week5`. For more information, see [About maintenance on Cloud SQL instances](https://cloud.google.com/sql/docs/mysql/maintenance).
This is always `sql#maintenanceWindow`.
Read-replica configuration specific to MySQL databases.
Used in:
Path to a SQL dump file in Google Cloud Storage from which the replica instance is to be created. The URI is in the form gs://bucketName/fileName. Compressed gzip files (.gz) are also supported. Dumps have the binlog co-ordinates from which replication begins. This can be accomplished by setting --master-data to 1 when using mysqldump.
The username for the replication connection.
The password for the replication connection.
Seconds to wait between connect retries. MySQL's default is 60 seconds.
Interval in milliseconds between replication heartbeats.
PEM representation of the trusted CA's x509 certificate.
PEM representation of the replica's x509 certificate.
PEM representation of the replica's private key. The corresponsing public key is encoded in the client's certificate.
A list of permissible ciphers to use for SSL encryption.
Whether or not to check the primary instance's Common Name value in the certificate that it sends during the SSL handshake.
This is always `sql#mysqlReplicaConfiguration`.
MySQL-specific external server sync settings.
Used in:
,Flags to use for the initial dump.
On-premises instance configuration.
Used in:
The host and port of the on-premises instance in host:port format
This is always `sql#onPremisesConfiguration`.
The username for connecting to on-premises instance.
The password for connecting to on-premises instance.
PEM representation of the trusted CA's x509 certificate.
PEM representation of the replica's x509 certificate.
PEM representation of the replica's private key. The corresponsing public key is encoded in the client's certificate.
The dump file to create the Cloud SQL replica.
The reference to Cloud SQL instance if the source is Cloud SQL.
An Operation resource. For successful operations that return an Operation resource, only the fields relevant to the operation are populated in the resource.
Used as response type in: SqlBackupRunsService.Delete, SqlBackupRunsService.Insert, SqlDatabasesService.Delete, SqlDatabasesService.Insert, SqlDatabasesService.Patch, SqlDatabasesService.Update, SqlInstancesService.AddServerCa, SqlInstancesService.Clone, SqlInstancesService.Delete, SqlInstancesService.Demote, SqlInstancesService.DemoteMaster, SqlInstancesService.Export, SqlInstancesService.Failover, SqlInstancesService.Import, SqlInstancesService.Insert, SqlInstancesService.Patch, SqlInstancesService.PerformDiskShrink, SqlInstancesService.PromoteReplica, SqlInstancesService.Reencrypt, SqlInstancesService.RescheduleMaintenance, SqlInstancesService.ResetReplicaSize, SqlInstancesService.ResetSslConfig, SqlInstancesService.Restart, SqlInstancesService.RestoreBackup, SqlInstancesService.RotateServerCa, SqlInstancesService.StartExternalSync, SqlInstancesService.StartReplica, SqlInstancesService.StopReplica, SqlInstancesService.Switchover, SqlInstancesService.TruncateLog, SqlInstancesService.Update, SqlOperationsService.Get, SqlSslCertsService.Delete, SqlUsersService.Delete, SqlUsersService.Insert, SqlUsersService.Update
Used as field type in:
,This is always `sql#operation`.
The status of an operation.
The email address of the user who initiated this operation.
The time this operation was enqueued in UTC timezone in [RFC 3339](https://tools.ietf.org/html/rfc3339) format, for example `2012-11-15T16:19:00.094Z`.
The time this operation actually started in UTC timezone in [RFC 3339](https://tools.ietf.org/html/rfc3339) format, for example `2012-11-15T16:19:00.094Z`.
The time this operation finished in UTC timezone in [RFC 3339](https://tools.ietf.org/html/rfc3339) format, for example `2012-11-15T16:19:00.094Z`.
If errors occurred during processing of this operation, this field will be populated.
An Admin API warning message.
The type of the operation. Valid values are: * `CREATE` * `DELETE` * `UPDATE` * `RESTART` * `IMPORT` * `EXPORT` * `BACKUP_VOLUME` * `RESTORE_VOLUME` * `CREATE_USER` * `DELETE_USER` * `CREATE_DATABASE` * `DELETE_DATABASE`
The context for import operation, if applicable.
The context for export operation, if applicable.
The context for backup operation, if applicable.
An identifier that uniquely identifies the operation. You can use this identifier to retrieve the Operations resource that has information about the operation.
Name of the database instance related to this operation.
The URI of this resource.
The project ID of the target instance related to this operation.
The context for acquire SSRS lease operation, if applicable.
The status of an operation.
Used in:
The state of the operation is unknown.
The operation has been queued, but has not started yet.
The operation is running.
The operation completed.
The type of Cloud SQL operation.
Used in:
Unknown operation type.
Imports data into a Cloud SQL instance.
Exports data from a Cloud SQL instance to a Cloud Storage bucket.
Creates a new Cloud SQL instance.
Updates the settings of a Cloud SQL instance.
Deletes a Cloud SQL instance.
Restarts the Cloud SQL instance.
Performs instance backup.
Deletes an instance backup.
Restores an instance backup.
Injects a privileged user in mysql for MOB instances.
Clones a Cloud SQL instance.
Stops replication on a Cloud SQL read replica instance.
Starts replication on a Cloud SQL read replica instance.
Promotes a Cloud SQL replica instance.
Creates a Cloud SQL replica instance.
Creates a new user in a Cloud SQL instance.
Deletes a user from a Cloud SQL instance.
Updates an existing user in a Cloud SQL instance.
Creates a database in the Cloud SQL instance.
Deletes a database in the Cloud SQL instance.
Updates a database in the Cloud SQL instance.
Performs failover of an HA-enabled Cloud SQL failover replica.
Deletes the backup taken by a backup run.
Truncates a general or slow log table in MySQL.
Demotes the stand-alone instance to be a Cloud SQL read replica for an external database server.
Indicates that the instance is currently in maintenance. Maintenance typically causes the instance to be unavailable for 1-3 minutes.
This field is deprecated, and will be removed in future version of API.
Creates clone instance.
Reschedule maintenance to another time.
Starts external sync of a Cloud SQL EM replica to an external primary instance.
Recovers logs from an instance's old data disk.
Performs auto-restart of an HA-enabled Cloud SQL database for auto recovery.
Re-encrypts CMEK instances with latest key version.
Switches the roles of the primary and replica pair. The target instance should be the replica.
Acquire a lease for the setup of SQL Server Reporting Services (SSRS).
Release a lease for the setup of SQL Server Reporting Services (SSRS).
Reconfigures old primary after a promote replica operation. Effect of a promote operation to the old primary is executed in this operation, asynchronously from the promote replica operation executed to the replica.
Indicates that the instance, its read replicas, and its cascading replicas are in maintenance. Maintenance typically gets initiated on groups of replicas first, followed by the primary instance. For each instance, maintenance typically causes the instance to be unavailable for 1-3 minutes.
Indicates that the instance (and any of its replicas) are currently in maintenance. This is initiated as a self-service request by using SSM. Maintenance typically causes the instance to be unavailable for 1-3 minutes.
Switches a primary instance to a replica. This operation runs as part of a switchover operation to the original primary instance.
Updates the major version of a Cloud SQL instance.
Database instance operation error.
Used in:
,This is always `sql#operationError`.
Identifies the specific error that occurred.
Additional information about the error encountered.
Database instance operation errors list wrapper.
Used in:
This is always `sql#operationErrors`.
The list of errors encountered while processing this operation.
Read-only password status.
Used in:
If true, user does not have login privileges.
The expiration time of the current password.
Database instance local user password validation policy
Used in:
Minimum number of characters allowed.
The complexity of the password.
Number of previous passwords that cannot be reused.
Disallow username as a part of the password.
Minimum interval after which the password can be changed. This flag is only supported for PostgreSQL.
Whether the password policy is enabled or not.
This field is deprecated and will be removed in a future version of the API.
The complexity choices of the password.
Used in:
Complexity check is not specified.
A combination of lowercase, uppercase, numeric, and non-alphanumeric characters.
Perform disk shrink context.
Used in:
The target disk shrink size in GigaBytes.
PSC settings for a Cloud SQL instance.
Used in:
Whether PSC connectivity is enabled for this instance.
Optional. The list of consumer projects that are allow-listed for PSC connections to this instance. This instance can be connected to with PSC from any network in these projects. Each consumer project in this list may be represented by a project number (numeric) or by a project id (alphanumeric).
Read-replica configuration for connecting to the primary instance.
Used in:
This is always `sql#replicaConfiguration`.
MySQL specific configuration when replicating from a MySQL on-premises primary instance. Replication configuration information such as the username, password, certificates, and keys are not stored in the instance metadata. The configuration information is used only to set up the replication connection and is stored by MySQL in a file named `master.info` in the data directory.
Specifies if the replica is the failover target. If the field is set to `true`, the replica will be designated as a failover replica. In case the primary instance fails, the replica instance will be promoted as the new primary instance. Only one replica can be specified as failover target, and the replica has to be in different zone with the primary instance.
Optional. Specifies if a SQL Server replica is a cascadable replica. A cascadable replica is a SQL Server cross region replica that supports replica(s) under it.
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.
Used in:
Output only. If set, it indicates this instance has a private service access (PSA) dns endpoint that is pointing to the primary instance of the cluster. If this instance is the primary, the dns should be pointing to this instance. After Switchover or Replica failover, this DNS endpoint points to the promoted instance. This is a read-only field, returned to the user as information. This field can exist even if a standalone instance does not yet have a replica, or had a DR replica that was deleted.
Optional. If the instance is a primary instance, then this field identifies the disaster recovery (DR) replica. A DR replica is an optional configuration for Enterprise Plus edition instances. If the instance is a read replica, then the field is not set. Set this field to a replica name to designate a DR replica for a primary instance. Remove the replica name to remove the DR replica designation.
Output only. Read-only field that indicates whether the replica is a DR replica. This field is not set if the instance is a primary instance.
Database instance restore from backup context. Backup context contains source instance id and project id.
Used in:
This is always `sql#restoreBackupContext`.
The ID of the backup run to restore from.
The ID of the instance that the backup was taken from.
The full project ID of the source instance.
Instance rotate server CA context.
Used in:
This is always `sql#rotateServerCaContext`.
The fingerprint of the next version to be rotated to. If left unspecified, will be rotated to the most recently added server CA version.
Database instance settings.
Used in:
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.
The App Engine app IDs that can access this instance. (Deprecated) Applied to First Generation instances only.
The tier (or machine type) for this instance, for example `db-custom-1-3840`. WARNING: Changing this restarts the instance.
This is always `sql#settings`.
User-provided labels, represented as a dictionary where each label is a single key value pair.
Availability type. Potential values: * `ZONAL`: The instance serves data from only one zone. Outages in that zone affect data accessibility. * `REGIONAL`: The instance can serve data from more than one zone in a region (it is highly available)./ For more information, see [Overview of the High Availability Configuration](https://cloud.google.com/sql/docs/mysql/high-availability).
The pricing plan for this instance. This can be either `PER_USE` or `PACKAGE`. Only `PER_USE` is supported for Second Generation instances.
The type of replication this instance uses. This can be either `ASYNCHRONOUS` or `SYNCHRONOUS`. (Deprecated) This property was only applicable to First Generation instances.
The maximum size to which storage capacity can be automatically increased. The default value is 0, which specifies that there is no limit.
The activation policy specifies when the instance is activated; it is applicable only when the instance state is RUNNABLE. Valid values: * `ALWAYS`: The instance is on, and remains so even in the absence of connection requests. * `NEVER`: The instance is off; it is not activated, even if a connection request arrives.
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.
Configuration to increase storage size automatically. The default value is true.
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.
The database flags passed to the instance at startup.
The type of data disk: `PD_SSD` (default) or `PD_HDD`. Not used for First Generation instances.
The maintenance window for this instance. This specifies when the instance can be restarted for maintenance purposes.
The daily backup configuration for the instance.
Configuration specific to read replica instances. Indicates whether replication is enabled or not. WARNING: Changing this restarts the instance.
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.
The size of data disk, in GB. The data disk size minimum is 10GB.
Active Directory configuration, relevant only for Cloud SQL for SQL Server.
The name of server Instance collation.
Deny maintenance periods
Insights configuration, for now relevant only for Postgres.
The local user password validation policy of the instance.
SQL Server specific audit configuration.
Optional. The edition of the instance.
Specifies if connections must use Cloud SQL connectors. Option values include the following: `NOT_REQUIRED` (Cloud SQL instances can be connected without Cloud SQL Connectors) and `REQUIRED` (Only allow connections that use Cloud SQL Connectors). 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.
Configuration to protect against accidental instance deletion.
Server timezone, relevant only for Cloud SQL for SQL Server.
Specifies advanced machine configuration for the instances relevant only for SQL Server.
Configuration for data cache.
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 PostgreSQL instances.
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.
The options for enforcing Cloud SQL connectors in the instance.
Used in:
The requirement for Cloud SQL connectors is unknown.
Do not require Cloud SQL connectors.
Require all connections to use Cloud SQL connectors, including the Cloud SQL Auth Proxy and Cloud SQL Java, Python, and Go connectors. Note: This disables all existing authorized networks.
The edition of the instance, can be ENTERPRISE or ENTERPRISE_PLUS.
Used in:
The instance did not specify the edition.
The instance is an enterprise edition.
The instance is an Enterprise Plus edition.
Specifies when the instance is activated.
Used in:
Unknown activation plan.
The instance is always up and running.
The instance never starts.
The instance starts upon receiving requests.
Active Directory configuration, relevant only for Cloud SQL for SQL Server.
Used in:
This is always sql#activeDirectoryConfig.
The name of the domain (e.g., mydomain.com).
The availability type of the given Cloud SQL instance.
Used in:
This is an unknown Availability type.
Zonal available instance.
Regional available instance.
Used in:
,This is an unknown backend type for instance.
V1 speckle instance.
V2 speckle instance.
On premises instance.
Defines the supported backup kinds.
Used in:
This is an unknown BackupKind.
The snapshot based backups
Physical backups
The status of a backup run.
Used in:
The status of the run is unknown.
The backup operation was enqueued.
The backup is overdue across a given backup window. Indicates a problem. Example: Long-running operation in progress during the whole window.
The backup is in progress.
The backup failed.
The backup was successful.
The backup was skipped (without problems) for a given backup window. Example: Instance was idle.
The backup is about to be deleted.
The backup deletion failed.
The backup has been deleted.
Type of backup (i.e. automated, on demand, etc).
Used in:
This is an unknown BackupRun type.
The backup schedule automatically triggers a backup.
The user manually triggers a backup.
The type of disk that is used for a v2 instance to use.
Used in:
This is an unknown data disk type.
An SSD data disk.
An HDD data disk.
This field is deprecated and will be removed from a future version of the API.
The database engine type and version.
Used in:
, ,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 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 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 38.
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 version is MySQL 8.4.
The database version is MySQL 8.4 and the patch version is 0.
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.
Database update request.
Used as request type in: SqlDatabasesService.Patch, SqlDatabasesService.Update
Name of the database to be updated in the instance.
Database instance ID. This does not include the project ID.
Project ID of the project that contains the instance.
External primary instance migration setting error/warning.
Used in:
Can be `sql#externalSyncSettingError` or `sql#externalSyncSettingWarning`.
Identifies the specific error that occurred.
Additional information about the error encountered.
Used in:
The replication user is missing privileges that are required.
Unsupported migration type.
No pglogical extension installed on databases, applicable for postgres.
pglogical node already exists on databases, applicable for postgres.
The value of parameter wal_level is not set to logical.
The value of parameter shared_preload_libraries does not include pglogical.
The value of parameter max_replication_slots is not sufficient.
The value of parameter max_wal_senders is not sufficient.
The value of parameter max_worker_processes is not sufficient.
Extensions installed are either not supported or having unsupported versions.
The value of parameter rds.logical_replication is not set to 1.
The primary instance logging setup doesn't allow EM sync.
The primary instance database parameter setup doesn't allow EM sync.
The gtid_mode is not supported, applicable for MySQL.
SQL Server Agent is not running.
The table definition is not support due to missing primary key or replica identity, applicable for postgres.
The customer has a definer that will break EM setup.
SQL Server @@SERVERNAME does not match actual host name.
The primary instance has been setup and will fail the setup.
The primary instance has unsupported binary log format.
The primary instance's binary log retention setting.
The primary instance has tables with unsupported storage engine.
Source has tables with limited support eg: PostgreSQL tables without primary keys.
The replica instance contains existing data.
The replication user is missing privileges that are optional.
Additional BACKUP_ADMIN privilege is granted to the replication user which may lock source MySQL 8 instance for DDLs during initial sync.
The Cloud Storage bucket is missing necessary permissions.
The Cloud Storage bucket has an error in the file or contains invalid file information.
The source instance has unsupported database settings for migration.
The replication user is missing parallel import specific privileges. (e.g. LOCK TABLES) for MySQL.
The global variable local_infile is off on external server replica.
This code instructs customers to turn on point-in-time recovery manually for the instance after promoting the Cloud SQL for PostgreSQL instance.
The minor version of replica database is incompatible with the source.
This warning message indicates that Cloud SQL uses the maximum number of subscriptions to migrate data from the source to the destination.
Unable to verify definers on the source for MySQL.
If a time out occurs while the subscription counts are calculated, then this value is set to 1. Otherwise, this value is set to 2.
Count of subscriptions needed to sync source data for PostgreSQL database.
Final parallel level that is used to do migration.
The disk size of the replica instance is smaller than the data size of the source instance.
The data size of the source instance is greater than 1 TB, the number of cores of the replica instance is less than 8, and the memory of the replica is less than 32 GB.
The warning message indicates the unsupported extensions will not be migrated to the destination.
The warning message indicates the pg_cron extension and settings will not be migrated to the destination.
The error message indicates that pg_cron flags are enabled on the destination which is not supported during the migration.
This error message indicates that the specified extensions are not enabled on destination instance. For example, before you can migrate data to the destination instance, you must enable the PGAudit extension on the instance.
The source database has generated columns that can't be migrated. Please change them to regular columns before migration.
Used in:
,Unknown file type.
File containing SQL statements.
File in CSV format.
Used in:
This is an unknown flag type.
Boolean type flag.
String type flag.
Integer type flag.
Flag type used for a server startup option.
Type introduced specially for MySQL TimeZone offset. Accept a string value with the format [-12:59, 13:00].
Float type flag.
Comma-separated list of the strings in a SqlFlagType enum.
Used in:
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.
Reschedule options for maintenance windows.
Used in:
Required. The type of the reschedule the user wants.
Used in:
Required. The type of the reschedule.
Optional. Timestamp when the maintenance shall be rescheduled to if reschedule_type=SPECIFIC_TIME, in [RFC 3339](https://tools.ietf.org/html/rfc3339) format, for example `2012-11-15T16:19:00.094Z`.
Used in:
Reschedules maintenance to happen now (within 5 minutes).
Reschedules maintenance to occur within one week from the originally scheduled day and time.
Reschedules maintenance to a specific time and day.
Used in:
,Unknown external sync mode, will be defaulted to ONLINE mode
Online external sync will set up replication after initial data external sync
Offline external sync only dumps and loads a one-time snapshot of the primary instance's data
MigrationType determines whether the migration is a physical file-based migration or a logical dump file-based migration.
Used in:
,Default value is a logical dump file-based migration
Logical dump file-based migration
Physical file-based migration
Used in:
This is an unknown IP address type.
IP address the customer is supposed to connect to. Usually this is the load balancer's IP address
Source IP address of the connection a read replica establishes to its external primary instance. This IP address can be allowlisted by the customer in case it has a firewall that filters incoming connection to its on premises primary instance.
Private IP used when using private IPs and network peering.
V1 IP of a migrated instance. We want the user to decommission this IP as soon as the migration is complete. Note: V1 instances with V1 ip addresses will be counted as PRIMARY.
The pricing plan for this instance.
Used in:
This is an unknown pricing plan for this instance.
The instance is billed at a monthly flat rate.
The instance is billed per usage.
Used in:
This is an unknown replication type for a Cloud SQL instance.
The synchronous replication mode for First Generation instances. It is the default value.
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.
SQL Server specific audit configuration.
Used in:
This is always sql#sqlServerAuditConfig
The name of the destination bucket (e.g., gs://mybucket).
How long to keep generated audit files.
How often to upload generated audit files.
Represents a Sql Server database on the Cloud SQL instance.
Used in:
The version of SQL Server with which the database is to be made compatible
The recovery model of a SQL Server database
Represents a Sql Server user on the Cloud SQL instance.
Used in:
If the user has been disabled
The server roles for this user
The suspension reason of the database instance if the state is SUSPENDED.
Used in:
This is an unknown suspension reason.
The instance is suspended due to billing issues (for example:, GCP account issue)
The instance is suspended due to illegal content (for example:, child pornography, copyrighted material, etc.).
The instance is causing operational issues (for example:, causing the database to crash).
The KMS key used by the instance is either revoked or denied access to
Used in:
This is an unknown maintenance timing preference.
For an instance with a scheduled maintenance window, this maintenance timing indicates that the maintenance update is scheduled 7 to 14 days after the notification is sent out. Also referred to as `Week 1` (Console) and `preview` (gcloud CLI).
For an instance with a scheduled maintenance window, this maintenance timing indicates that the maintenance update is scheduled 15 to 21 days after the notification is sent out. Also referred to as `Week 2` (Console) and `production` (gcloud CLI).
For instance with a scheduled maintenance window, this maintenance timing indicates that the maintenance update is scheduled 35 to 42 days after the notification is sent out.
SslCerts Resource
Used as response type in: SqlInstancesService.CreateEphemeral, SqlSslCertsService.Get
Used as field type in:
, , , , , ,This is always `sql#sslCert`.
Serial number, as extracted from the certificate.
PEM representation.
The time when the certificate was created in [RFC 3339](https://tools.ietf.org/html/rfc3339) format, for example `2012-11-15T16:19:00.094Z`
User supplied name. Constrained to [a-zA-Z.-_ ]+.
The time when the certificate expires in [RFC 3339](https://tools.ietf.org/html/rfc3339) format, for example `2012-11-15T16:19:00.094Z`.
Sha1 Fingerprint.
Name of the database instance.
The URI of this resource.
SslCertDetail.
Used in:
The public information about the cert.
The private key for the client cert, in pem format. Keep private in order to protect your security.
SslCerts create ephemeral certificate request.
Used in:
PEM encoded public key to include in the signed certificate.
Access token to include in the signed certificate.
SslCerts insert request.
Used in:
User supplied name. Must be a distinct name from the other certificates for this instance.
Initial sync flags for certain Cloud SQL APIs. Currently used for the MySQL external server initial dump.
Used in:
The name of the flag.
The value of the flag. This field must be omitted if the flag doesn't take a value.
A Google Cloud SQL service tier resource.
Used in:
An identifier for the machine type, for example, `db-custom-1-3840`. For related information, see [Pricing](/sql/pricing).
The maximum RAM usage of this tier in bytes.
This is always `sql#tier`.
The maximum disk size of this tier in bytes.
The applicable regions for this tier.
Database Instance truncate log context.
Used in:
This is always `sql#truncateLogContext`.
The type of log to truncate. Valid values are `MYSQL_GENERAL_TABLE` and `MYSQL_SLOW_TABLE`.
A Cloud SQL user resource.
Used as response type in: SqlUsersService.Get
Used as field type in:
, ,This is always `sql#user`.
The password for the user.
This field is deprecated and will be removed from a future version of the API.
The name of the user in the Cloud SQL instance. Can be omitted for `update` because it is already specified in the URL.
Optional. The host from which the user can connect. For `insert` operations, host defaults to an empty string. For `update` operations, host is specified as part of the request URL. The host name cannot be updated after insertion. For a MySQL instance, it's required; for a PostgreSQL or SQL Server instance, it's optional.
The name of the Cloud SQL instance. This does not include the project ID. Can be omitted for `update` because it is already specified on the URL.
The project ID of the project containing the Cloud SQL database. The Google apps domain is prefixed if applicable. Can be omitted for `update` because it is already specified on the URL.
The user type. It determines the method to authenticate the user during login. The default is the database's built-in user type.
User details for specific database type
User level password validation policy.
Dual password status for the user.
The type of retained password.
Used in:
The default value.
Do not update the user's dual password status.
No dual password usable for connecting using this user.
Dual password usable for connecting using this user.
The user type.
Used in:
The database's built-in user type.
Cloud IAM user.
Cloud IAM service account.
Cloud IAM group non-login user.
Cloud IAM group login user.
Cloud IAM group login service account.
User level password validation policy.
Used in:
Number of failed login attempts allowed before user get locked.
Expiration duration after password is updated.
If true, failed login attempts check will be enabled.
Output only. Read-only password status.
If true, the user must specify the current password before changing the password. This flag is supported only for MySQL.