sqladmin/v1 library
Cloud SQL Admin API - v1
Cloud SQL Admin API
For more information, see cloud.google.com/sql/docs
Create an instance of SQLAdminApi to access these resources:
Classes
- AclEntry
- An entry for an Access Control list.
- AcquireSsrsLeaseContext
- Acquire SSRS lease context.
- AdvancedMachineFeatures
- Specifies options for controlling advanced machine features.
- ApiWarning
- An Admin API warning message.
- AvailableDatabaseVersion
- An available database version.
- Backup
- A backup resource.
- BackupConfiguration
- Database instance backup configuration.
- BackupContext
- Backup context.
- BackupReencryptionConfig
- Backup Reencryption Config
- BackupRetentionSettings
- We currently only support backup retention by specifying the number of backups we will retain.
- BackupRun
- A BackupRun resource.
- BackupRunsListResponse
- Backup run list results.
- BackupRunsResource
- BackupsResource
- BinLogCoordinates
- Binary log coordinates.
- BlueGreenDeployment
-
A
BlueGreenDeploymentresource represents a Cloud SQL blue-green deployment setup. - BlueGreenDeploymentInfo
- Blue-green deployment metadata for a database instance.
- BlueGreenDeploymentsResource
- CloneContext
- Database instance clone context.
- Column
- Contains the name and datatype of a column.
- ConfigDiff
- Represents a specific configuration difference between blue and green instances.
- ConnectionPoolConfig
- The managed connection pooling configuration.
- ConnectionPoolFlags
- Connection pool flags for Cloud SQL instances managed connection pool configuration.
- ConnectPoolNodeConfig
- Details of a single read pool node of a read pool.
- ConnectResource
- ConnectSettings
- Connect settings retrieval response.
- Database
- Represents a SQL database on the Cloud SQL instance.
- DatabaseFlags
- Database flags for Cloud SQL instances.
- DatabaseInstance
- A Cloud SQL instance resource.
- DatabaseInstanceFailoverReplica
- The name and status of the failover replica.
- DatabasesListResponse
- Database list response.
- DatabasesResource
- DataCacheConfig
- Data cache configurations.
- DemoteContext
- This context is used to demote an existing standalone instance to be a Cloud SQL read replica for an external database server.
- DemoteMasterConfiguration
- Read-replica configuration for connecting to the on-premises primary instance.
- DemoteMasterContext
- Database instance demote primary instance context.
- DemoteMasterMySqlReplicaConfiguration
- Read-replica configuration specific to MySQL databases.
- DenyMaintenancePeriod
- Deny maintenance Periods.
- DeploymentTask
- Represents a task executed as part of the deployment on a target instance.
- DeploymentTasks
- Combined list of tasks for all paired nodes in the deployment.
- DiskEncryptionConfiguration
- Disk encryption configuration for an instance.
- DiskEncryptionStatus
- Disk encryption status for an instance.
- DnsNameMapping
- DNS metadata.
- ExecuteSqlPayload
- The request payload used to execute SQL statements.
- ExportContext
- Database instance export context.
- ExportContextBakExportOptions
- Options for exporting BAK files (SQL Server-only)
- ExportContextCsvExportOptions
- Options for exporting data as CSV.
- ExportContextSqlExportOptions
- Options for exporting data as SQL statements.
- ExportContextSqlExportOptionsMysqlExportOptions
- Options for exporting from MySQL.
- ExportContextSqlExportOptionsPostgresExportOptions
- Options for exporting from a Cloud SQL for PostgreSQL instance.
- ExportContextTdeExportOptions
- Export parameters specific to SQL Server TDE certificates
- ExternalSyncSelectedObject
- The selected object that Cloud SQL migrates.
- FailoverContext
- Database instance failover context.
- FinalBackupConfig
- Config used to determine the final backup settings for the instance.
- Flag
- A flag resource.
- FlagsListResponse
- Flags list response.
- FlagsResource
- GeminiInstanceConfig
- Gemini instance configuration.
- GenerateEphemeralCertRequest
- Ephemeral certificate creation request.
- GenerateEphemeralCertResponse
- Ephemeral certificate creation request.
- ImportContext
- Database instance import context.
- ImportContextBakImportOptions
- Import parameters specific to SQL Server .BAK files
- ImportContextBakImportOptionsEncryptionOptions
- ImportContextCsvImportOptions
- Options for importing data as CSV.
- ImportContextSqlImportOptions
- Options for importing data from SQL statements.
- ImportContextSqlImportOptionsPostgresImportOptions
- Options for importing from a Cloud SQL for PostgreSQL instance.
- ImportContextTdeImportOptions
- Import parameters specific to SQL Server TDE certificates
- InsightsConfig
- Insights configuration.
- InstanceReference
- Reference to another Cloud SQL instance.
- InstancesAcquireSsrsLeaseRequest
- Request to acquire a lease for SSRS.
- InstancesCloneRequest
- Database instance clone request.
- InstancesDemoteMasterRequest
- Database demote primary instance request.
- InstancesDemoteRequest
- This request is used to demote an existing standalone instance to be a Cloud SQL read replica for an external database server.
- InstancesExportRequest
- Database instance export request.
- InstancesFailoverRequest
- Instance failover request.
- InstancesImportRequest
- Database instance import request.
- InstancesListEntraIdCertificatesResponse
- Instances ListEntraIdCertificates response.
- InstancesListResponse
- Database instances list response.
- InstancesListServerCasResponse
- Instances ListServerCas response.
- InstancesListServerCertificatesResponse
- Instances ListServerCertificates response.
- InstancesPreCheckMajorVersionUpgradeRequest
- Request for Pre-checks for MVU
- InstancesReencryptRequest
- Database Instance reencrypt request.
- InstancesResource
- InstancesRestoreBackupRequest
- Database instance restore backup request.
- InstancesRotateEntraIdCertificateRequest
- Rotate Entra ID certificate request.
- InstancesRotateServerCaRequest
- Rotate server CA request.
- InstancesRotateServerCertificateRequest
- Rotate server certificate request.
- InstancesTruncateLogRequest
- Instance truncate log request.
- IpConfiguration
- IP Management configuration.
- IpMapping
- Database instance IP mapping
- ListBackupsResponse
- The response payload containing a list of the backups.
- ListBlueGreenDeploymentsResponse
- The response message for listing blue-green deployment resources.
- LocationPreference
- Preferred location.
- MaintenanceWindow
- Maintenance window.
- Message
- Represents a notice or warning message from the database.
- Metadata
- The additional metadata information regarding the execution of the SQL statements.
- MySqlReplicaConfiguration
- Read-replica configuration specific to MySQL databases.
- MySqlSyncConfig
- MySQL-specific external server sync settings.
- NodeInfo
- Details about an instance within the deployment.
- OnPremisesConfiguration
- On-premises instance configuration.
- Operation
- An Operation resource.
- OperationError
- Database instance operation error.
- OperationErrors
- Database instance operation errors list wrapper.
- OperationsListResponse
- Operations list response.
- OperationsResource
- PasswordStatus
- Read-only password status.
- PasswordValidationPolicy
- Database instance local user password validation policy.
- PerformanceCaptureConfig
- Performance capture configuration.
- PerformDiskShrinkContext
- Perform disk shrink context.
- PointInTimeRestoreContext
- The context to perform a point-in-time recovery of an instance managed by Backup and Disaster Recovery (DR) Service.
- PoolNodeConfig
- Details of a single read pool node of a read pool.
- PreCheckMajorVersionUpgradeContext
- Pre-check major version upgrade context.
- PreCheckResponse
- Structured PreCheckResponse containing message, type, and required actions.
- ProjectsInstancesResource
- ProjectsResource
- PscAutoConnectionConfig
- Settings for an automatically-setup Private Service Connect consumer endpoint that is used to connect to a Cloud SQL instance.
- PscConfig
- PSC settings for a Cloud SQL instance.
- QueryResult
- QueryResult contains the result of executing a single SQL statement.
- ReadPoolAutoScaleConfig
- The read pool auto-scale configuration.
- ReplicaConfiguration
- Read-replica configuration for connecting to the primary instance.
- ReplicationCluster
- A primary instance and disaster recovery (DR) replica pair.
- RequestedConfig
- Configuration specified by the user at creation time for the target (green) instance.
- Reschedule
- RestoreBackupContext
- Database instance restore from backup context.
- RotateEntraIdCertificateContext
- Instance rotate Entra ID certificate context.
- RotateServerCaContext
- Instance rotate server CA context.
- RotateServerCertificateContext
- Instance rotate server certificate context.
- Row
- Contains the values for a row.
- SelectedObjects
- A list of objects that the user selects for replication from an external source instance.
- Settings
- Database instance settings.
- SourceRole
- The source instance for the Blue-Green deployment.
- SourceTargetPairedNode
- Represents a pairing of a source instance node and a target instance node.
- SqlActiveDirectoryConfig
- Active Directory configuration, relevant only for Cloud SQL for SQL Server.
- SQLAdminApi
- Cloud SQL Admin API
- SqlExternalSyncSettingError
- External primary instance migration setting error/warning.
- SqlInstancesExecuteSqlResponse
- SqlInstancesGetDiskShrinkConfigResponse
- Instance get disk shrink config response.
- SqlInstancesGetLatestRecoveryTimeResponse
- Instance get latest recovery time response.
- SqlInstancesRescheduleMaintenanceRequestBody
- Reschedule options for maintenance windows.
- SqlInstancesResetReplicaSizeRequest
- Instance reset replica size request.
- SqlInstancesStartExternalSyncRequest
- Instance start external sync request.
- SqlInstancesVerifyExternalSyncSettingsRequest
- Instance verify external sync settings request.
- SqlInstancesVerifyExternalSyncSettingsResponse
- Instance verify external sync settings response.
- SqlOutOfDiskReport
- This message wraps up the information written by out-of-disk detection job.
- SqlScheduledMaintenance
- Any scheduled maintenance for this instance.
- SqlServerAuditConfig
- SQL Server specific audit configuration.
- SqlServerDatabaseDetails
- Represents a Sql Server database on the Cloud SQL instance.
- SqlServerEntraIdConfig
- SQL Server Entra ID configuration.
- SqlServerUserDetails
- Represents a Sql Server user on the Cloud SQL instance.
- SqlSubOperationType
- The sub operation type based on the operation type.
- SslCert
- SslCerts Resource
- SslCertDetail
- SslCertDetail.
- SslCertsCreateEphemeralRequest
- SslCerts create ephemeral certificate request.
- SslCertsInsertRequest
- SslCerts insert request.
- SslCertsInsertResponse
- SslCert insert response.
- SslCertsListResponse
- SslCerts list response.
- SslCertsResource
- StartWorkloadCaptureContext
-
The context for the
StartWorkloadCaptureoperation, which contains details to start recording the workload (SQL queries) on a Cloud SQL instance. - StartWorkloadReplayContext
-
The context for the
StartWorkloadReplayoperation, which contains details about starting the execution of a captured workload (recorded read and write SQL queries) on a replay instance (the Cloud SQL instance where the recorded SQL queries are executed). - StopWorkloadCaptureContext
-
The context for the
StopWorkloadCaptureoperation, which contains details to stop recording the workload (SQL queries) on a Cloud SQL instance. - SyncFlags
- Initial sync flags for certain Cloud SQL APIs.
- TargetMetric
- Target metric for read pool auto scaling.
- TargetRole
- The target instance for the Blue-Green deployment.
- Tier
- A Google Cloud SQL service tier resource.
- TiersListResponse
- Tiers list response.
- TiersResource
- TruncateLogContext
- Database Instance truncate log context.
- User
- A Cloud SQL user resource.
- UserPasswordValidationPolicy
- User level password validation policy.
- UsersListResponse
- User list response.
- UsersResource
- Value
- The cell value of the table.
- WorkloadCapture
- Captured workload for an instance.
- WorkloadCapturesListResponse
- Instance list captured workloads response.
- WorkloadCapturesResource
- WorkloadCapturesStartReplayRequest
- Request to start executing a captured workload on a replay instance (the Cloud SQL instance where the recorded SQL queries are executed).
- WorkloadCapturesStartRequest
- Request to start recording traffic from the primary instance (captured workload).
- WorkloadCapturesStopReplayRequest
- Request to stop an active workload replay on a target Cloud SQL replay instance.
- WorkloadCapturesStopRequest
- Request to stop recording traffic from the primary instance.
Typedefs
- Empty = $Empty
- A generic empty message that you can re-use to avoid defining duplicated empty messages in your APIs.
- Interval = $Interval
- Represents a time interval, encoded as a Timestamp start (inclusive) and a Timestamp end (exclusive).
- SqlInstancesAcquireSsrsLeaseResponse = $SsrsLeaseResponse
- Response for the acquire SSRS lease request.
- SqlInstancesReleaseSsrsLeaseResponse = $SsrsLeaseResponse
- Response for the release SSRS lease request.
- Status = $Status00
-
The
Statustype defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. - StopWorkloadReplayContext = $Empty
-
The context for the
StopWorkloadReplayoperation, which represents an operation that stops an active workload replay on a target Cloud SQL replay instance. - SwitchoverBlueGreenDeploymentRequest = $Empty
-
Request message for switching over a
BlueGreenDeploymentresource.
Exceptions / Errors
- ApiRequestError
- Represents a general error reported by the API endpoint.
- DetailedApiRequestError
- Represents a specific error reported by the API endpoint.