| Constructor and Description |
|---|
Instances() |
| Modifier and Type | Method and Description |
|---|---|
SQLAdmin.Instances.AcquireSsrsLease |
acquireSsrsLease(String project,
String instance,
InstancesAcquireSsrsLeaseRequest content)
Acquire a lease for the setup of SQL Server Reporting Services (SSRS).
|
SQLAdmin.Instances.AddServerCa |
addServerCa(String project,
String instance)
Adds a new trusted Certificate Authority (CA) version for the specified instance.
|
SQLAdmin.Instances.AddServerCertificate |
addServerCertificate(String project,
String instance)
Add a new trusted server certificate version for the specified instance using Certificate
Authority Service (CAS) server CA.
|
SQLAdmin.Instances.Clone |
clone(String project,
String instance,
InstancesCloneRequest content)
Creates a Cloud SQL instance as a clone of the source instance.
|
SQLAdmin.Instances.Delete |
delete(String project,
String instance)
Deletes a Cloud SQL instance.
|
SQLAdmin.Instances.Demote |
demote(String project,
String instance,
InstancesDemoteRequest content)
Demotes an existing standalone instance to be a Cloud SQL read replica for an external database
server.
|
SQLAdmin.Instances.DemoteMaster |
demoteMaster(String project,
String instance,
InstancesDemoteMasterRequest content)
Demotes the stand-alone instance to be a Cloud SQL read replica for an external database server.
|
SQLAdmin.Instances.Export |
export(String project,
String instance,
InstancesExportRequest content)
Exports data from a Cloud SQL instance to a Cloud Storage bucket as a SQL dump or CSV file.
|
SQLAdmin.Instances.Failover |
failover(String project,
String instance,
InstancesFailoverRequest content)
Initiates a manual failover of a high availability (HA) primary instance to a standby instance,
which becomes the primary instance.
|
SQLAdmin.Instances.Get |
get(String project,
String instance)
Retrieves a resource containing information about a Cloud SQL instance.
|
SQLAdmin.Instances.Insert |
insert(String project,
DatabaseInstance content)
Creates a new Cloud SQL instance.
|
SQLAdmin.Instances.List |
list(String project)
Lists instances under a given project.
|
SQLAdmin.Instances.ListServerCas |
listServerCas(String project,
String instance)
Lists all of the trusted Certificate Authorities (CAs) for the specified instance.
|
SQLAdmin.Instances.ListServerCertificates |
listServerCertificates(String project,
String instance)
Lists all versions of server certificates and certificate authorities (CAs) for the specified
instance.
|
SQLAdmin.Instances.Patch |
patch(String project,
String instance,
DatabaseInstance content)
Partially updates settings of a Cloud SQL instance by merging the request with the current
configuration.
|
SQLAdmin.Instances.PromoteReplica |
promoteReplica(String project,
String instance)
Promotes the read replica instance to be an independent Cloud SQL primary instance.
|
SQLAdmin.Instances.Reencrypt |
reencrypt(String project,
String instance,
InstancesReencryptRequest content)
Reencrypt CMEK instance with latest key version.
|
SQLAdmin.Instances.ReleaseSsrsLease |
releaseSsrsLease(String project,
String instance)
Release a lease for the setup of SQL Server Reporting Services (SSRS).
|
SQLAdmin.Instances.ResetSslConfig |
resetSslConfig(String project,
String instance)
Deletes all client certificates and generates a new server SSL certificate for the instance.
|
SQLAdmin.Instances.Restart |
restart(String project,
String instance)
Restarts a Cloud SQL instance.
|
SQLAdmin.Instances.RestoreBackup |
restoreBackup(String project,
String instance,
InstancesRestoreBackupRequest content)
Restores a backup of a Cloud SQL instance.
|
SQLAdmin.Instances.RotateServerCa |
rotateServerCa(String project,
String instance,
InstancesRotateServerCaRequest content)
Rotates the server certificate to one signed by the Certificate Authority (CA) version previously
added with the addServerCA method.
|
SQLAdmin.Instances.RotateServerCertificate |
rotateServerCertificate(String project,
String instance,
InstancesRotateServerCertificateRequest content)
Rotates the server certificate version to one previously added with the addServerCertificate
method.
|
SQLAdmin.Instances.SQLAdminImport |
sqladminImport(String project,
String instance,
InstancesImportRequest content)
Imports data into a Cloud SQL instance from a SQL dump or CSV file in Cloud Storage.
|
SQLAdmin.Instances.StartReplica |
startReplica(String project,
String instance)
Starts the replication in the read replica instance.
|
SQLAdmin.Instances.StopReplica |
stopReplica(String project,
String instance)
Stops the replication in the read replica instance.
|
SQLAdmin.Instances.Switchover |
switchover(String project,
String instance)
Switches over from the primary instance to the designated DR replica instance.
|
SQLAdmin.Instances.TruncateLog |
truncateLog(String project,
String instance,
InstancesTruncateLogRequest content)
Truncate MySQL general and slow query log tables MySQL only.
|
SQLAdmin.Instances.Update |
update(String project,
String instance,
DatabaseInstance content)
Updates settings of a Cloud SQL instance.
|
public SQLAdmin.Instances.ListServerCertificates listServerCertificates(String project, String instance) throws IOException
AbstractGoogleClientRequest.execute() method to invoke the remote
operation.project - Required. Project ID of the project that contains the instance.instance - Required. Cloud SQL instance ID. This does not include the project ID.IOExceptionpublic SQLAdmin.Instances.RotateServerCertificate rotateServerCertificate(String project, String instance, InstancesRotateServerCertificateRequest content) throws IOException
AbstractGoogleClientRequest.execute() method to invoke the remote
operation.project - Required. Project ID of the project that contains the instance.instance - Required. Cloud SQL instance ID. This does not include the project ID.content - the InstancesRotateServerCertificateRequestIOExceptionpublic SQLAdmin.Instances.AcquireSsrsLease acquireSsrsLease(String project, String instance, InstancesAcquireSsrsLeaseRequest content) throws IOException
AbstractGoogleClientRequest.execute() method to invoke the remote operation.project - Required. Project ID of the project that contains the instance (Example: project-id).instance - 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).content - the InstancesAcquireSsrsLeaseRequestIOExceptionpublic SQLAdmin.Instances.AddServerCa addServerCa(String project, String instance) throws IOException
AbstractGoogleClientRequest.execute() method to invoke the remote operation.project - Project ID of the project that contains the instance.instance - Cloud SQL instance ID. This does not include the project ID.IOExceptionpublic SQLAdmin.Instances.AddServerCertificate addServerCertificate(String project, String instance) throws IOException
AbstractGoogleClientRequest.execute() method to invoke the remote
operation.project - Project ID of the project that contains the instance.instance - Cloud SQL instance ID. This does not include the project ID.IOExceptionpublic SQLAdmin.Instances.Clone clone(String project, String instance, InstancesCloneRequest content) throws IOException
AbstractGoogleClientRequest.execute() method to invoke the remote operation.project - Project ID of the source as well as the clone Cloud SQL instance.instance - The ID of the Cloud SQL instance to be cloned (source). This does not include the project ID.content - the InstancesCloneRequestIOExceptionpublic SQLAdmin.Instances.Delete delete(String project, String instance) throws IOException
AbstractGoogleClientRequest.execute() method to invoke the remote operation.project - Project ID of the project that contains the instance to be deleted.instance - Cloud SQL instance ID. This does not include the project ID.IOExceptionpublic SQLAdmin.Instances.Demote demote(String project, String instance, InstancesDemoteRequest content) throws IOException
AbstractGoogleClientRequest.execute() method to invoke the remote operation.project - Required. ID of the project that contains the instance.instance - Required. Cloud SQL instance name.content - the InstancesDemoteRequestIOExceptionpublic SQLAdmin.Instances.DemoteMaster demoteMaster(String project, String instance, InstancesDemoteMasterRequest content) throws IOException
AbstractGoogleClientRequest.execute() method to invoke the remote operation.project - ID of the project that contains the instance.instance - Cloud SQL instance name.content - the InstancesDemoteMasterRequestIOExceptionpublic SQLAdmin.Instances.Export export(String project, String instance, InstancesExportRequest content) throws IOException
AbstractGoogleClientRequest.execute() method to invoke the remote operation.project - Project ID of the project that contains the instance to be exported.instance - Cloud SQL instance ID. This does not include the project ID.content - the InstancesExportRequestIOExceptionpublic SQLAdmin.Instances.Failover failover(String project, String instance, InstancesFailoverRequest content) throws IOException
AbstractGoogleClientRequest.execute() method to invoke the remote operation.project - ID of the project that contains the read replica.instance - Cloud SQL instance ID. This does not include the project ID.content - the InstancesFailoverRequestIOExceptionpublic SQLAdmin.Instances.Get get(String project, String instance) throws IOException
AbstractGoogleClientRequest.execute() method to invoke the remote operation.project - Project ID of the project that contains the instance.instance - Database instance ID. This does not include the project ID.IOExceptionpublic SQLAdmin.Instances.SQLAdminImport sqladminImport(String project, String instance, InstancesImportRequest content) throws IOException
AbstractGoogleClientRequest.execute() method to invoke the remote operation.project - Project ID of the project that contains the instance.instance - Cloud SQL instance ID. This does not include the project ID.content - the InstancesImportRequestIOExceptionpublic SQLAdmin.Instances.Insert insert(String project, DatabaseInstance content) throws IOException
AbstractGoogleClientRequest.execute() method to invoke the remote operation.project - Project ID of the project to which the newly created Cloud SQL instances should belong.content - the DatabaseInstanceIOExceptionpublic SQLAdmin.Instances.List list(String project) throws IOException
AbstractGoogleClientRequest.execute() method to invoke the remote operation.project - Project ID of the project for which to list Cloud SQL instances.IOExceptionpublic SQLAdmin.Instances.ListServerCas listServerCas(String project, String instance) throws IOException
AbstractGoogleClientRequest.execute() method to invoke the remote operation.project - Project ID of the project that contains the instance.instance - Cloud SQL instance ID. This does not include the project ID.IOExceptionpublic SQLAdmin.Instances.Patch patch(String project, String instance, DatabaseInstance content) throws IOException
AbstractGoogleClientRequest.execute() method to invoke the remote operation.project - Project ID of the project that contains the instance.instance - Cloud SQL instance ID. This does not include the project ID.content - the DatabaseInstanceIOExceptionpublic SQLAdmin.Instances.PromoteReplica promoteReplica(String project, String instance) throws IOException
AbstractGoogleClientRequest.execute() method to invoke the remote operation.project - ID of the project that contains the read replica.instance - Cloud SQL read replica instance name.IOExceptionpublic SQLAdmin.Instances.Reencrypt reencrypt(String project, String instance, InstancesReencryptRequest content) throws IOException
AbstractGoogleClientRequest.execute() method to invoke the remote operation.project - ID of the project that contains the instance.instance - Cloud SQL instance ID. This does not include the project ID.content - the InstancesReencryptRequestIOExceptionpublic SQLAdmin.Instances.ReleaseSsrsLease releaseSsrsLease(String project, String instance) throws IOException
AbstractGoogleClientRequest.execute() method to invoke the remote operation.project - Required. The project ID that contains the instance.instance - 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.IOExceptionpublic SQLAdmin.Instances.ResetSslConfig resetSslConfig(String project, String instance) throws IOException
AbstractGoogleClientRequest.execute() method to invoke the remote operation.project - Project ID of the project that contains the instance.instance - Cloud SQL instance ID. This does not include the project ID.IOExceptionpublic SQLAdmin.Instances.Restart restart(String project, String instance) throws IOException
AbstractGoogleClientRequest.execute() method to invoke the remote operation.project - Project ID of the project that contains the instance to be restarted.instance - Cloud SQL instance ID. This does not include the project ID.IOExceptionpublic SQLAdmin.Instances.RestoreBackup restoreBackup(String project, String instance, InstancesRestoreBackupRequest content) throws IOException
AbstractGoogleClientRequest.execute() method to invoke the remote operation.project - Project ID of the project that contains the instance.instance - Cloud SQL instance ID. This does not include the project ID.content - the InstancesRestoreBackupRequestIOExceptionpublic SQLAdmin.Instances.RotateServerCa rotateServerCa(String project, String instance, InstancesRotateServerCaRequest content) throws IOException
AbstractGoogleClientRequest.execute() method to invoke the remote operation.project - Project ID of the project that contains the instance.instance - Cloud SQL instance ID. This does not include the project ID.content - the InstancesRotateServerCaRequestIOExceptionpublic SQLAdmin.Instances.StartReplica startReplica(String project, String instance) throws IOException
AbstractGoogleClientRequest.execute() method to invoke the remote operation.project - ID of the project that contains the read replica.instance - Cloud SQL read replica instance name.IOExceptionpublic SQLAdmin.Instances.StopReplica stopReplica(String project, String instance) throws IOException
AbstractGoogleClientRequest.execute() method to invoke the remote operation.project - ID of the project that contains the read replica.instance - Cloud SQL read replica instance name.IOExceptionpublic SQLAdmin.Instances.Switchover switchover(String project, String instance) throws IOException
AbstractGoogleClientRequest.execute() method to invoke the remote operation.project - ID of the project that contains the replica.instance - Cloud SQL read replica instance name.IOExceptionpublic SQLAdmin.Instances.TruncateLog truncateLog(String project, String instance, InstancesTruncateLogRequest content) throws IOException
AbstractGoogleClientRequest.execute() method to invoke the remote operation.project - Project ID of the Cloud SQL project.instance - Cloud SQL instance ID. This does not include the project ID.content - the InstancesTruncateLogRequestIOExceptionpublic SQLAdmin.Instances.Update update(String project, String instance, DatabaseInstance content) throws IOException
AbstractGoogleClientRequest.execute() method to invoke the remote operation.project - Project ID of the project that contains the instance.instance - Cloud SQL instance ID. This does not include the project ID.content - the DatabaseInstanceIOExceptionCopyright © 2011–2024 Google. All rights reserved.