SQLAdmin
import { SQLAdmin } from "https://googleapis.deno.dev/v1/sqladmin:v1.ts";
API for Cloud SQL database instance management
§Methods
Deletes the backup taken by a backup run.
The ID of the backup run to delete. To find a backup run ID, use the 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.
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.
Lists all backup runs associated with the project or a given instance and configuration in the reverse chronological order of the backup initiation time.
Cloud SQL instance ID, or "-" for all instances. 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.
Cloud SQL instance ID. This does not include the project ID.
Project ID of the project that contains the instance.
Retrieves connect settings about a Cloud SQL instance.
Cloud SQL instance ID. This does not include the project ID.
Project ID of the project that contains the instance.
Deletes a database from a Cloud SQL instance.
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.
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 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.
Cloud SQL instance ID. This does not include the project ID.
Project ID of the project that contains the instance.
Partially updates a resource containing information about a database inside a Cloud SQL instance. This method supports patch semantics.
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.
Updates a resource containing information about a database inside a Cloud SQL instance.
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.
Lists all available database flags for Cloud SQL instances.
Acquire a lease for the setup of SQL Server Reporting Services (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).
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.
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.
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.
Demotes an existing standalone instance to be a Cloud SQL read replica for an external database server.
Required. Cloud SQL instance name.
Required. ID of the project that contains the instance.
Demotes the stand-alone instance to be a Cloud SQL read replica for an external database server.
Cloud SQL instance name.
ID of the project that contains the instance.
Exports data from a Cloud SQL instance to a Cloud Storage bucket as a SQL dump or CSV file.
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 page in the Cloud SQL documentation. If using Legacy HA (MySQL only), this causes the instance to failover to its failover replica instance.
Cloud SQL instance ID. This does not include the project ID.
ID of the project that contains the read replica.
Retrieves a resource containing information about a Cloud SQL instance.
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.
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.
Project ID of the project to which the newly created Cloud SQL instances should belong.
Lists instances under a given project.
Project ID of the project for which to list Cloud SQL instances.
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.
Cloud SQL instance ID. This does not include the project ID.
Project ID of the project that contains the instance.
Partially updates settings of a Cloud SQL instance by merging the request with the current configuration. This method supports patch semantics.
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.
Cloud SQL read replica instance name.
ID of the project that contains the read replica.
Reencrypt CMEK instance with latest key version.
Cloud SQL instance ID. This does not include the project ID.
ID of the project that contains the instance.
Release a lease for the setup of SQL Server Reporting Services (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.
Deletes all client certificates and generates a new server SSL certificate for the instance.
Cloud SQL instance ID. This does not include the project ID.
Project ID of the project that contains the instance.
Restores a backup of a Cloud SQL instance. Using this operation might cause your instance to restart.
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.
Cloud SQL instance ID. This does not include the project ID.
Project ID of the project that contains the instance.
Switches over from the primary instance to the designated DR replica instance.
Cloud SQL read replica instance name.
ID of the project that contains the replica.
Truncate MySQL general and slow query log tables MySQL only.
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.
Cloud SQL instance ID. This does not include the project 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.
Project ID of the project that contains the instance.
Get Disk Shrink Config for a given instance.
Cloud SQL instance ID. This does not include the project ID.
Project ID of the project that contains the instance.
Get Latest Recovery Time for a given instance.
Cloud SQL instance ID. This does not include the project ID.
Project ID of the project that contains the instance.
Perform Disk Shrink on primary instance.
Cloud SQL instance ID. This does not include the project ID.
Project ID of the project that contains the instance.
Reschedules the maintenance on the given instance.
Cloud SQL instance ID. This does not include the project ID.
ID of the project that contains the instance.
Reset Replica Size to primary instance disk size.
Cloud SQL read replica instance name.
ID of the project that contains the read replica.
Start External primary instance migration.
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.
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.
Cloud SQL instance ID. This does not include the project ID.
Project ID of the Cloud SQL project.
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.
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.
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.
Project ID of the project for which to list tiers.
Deletes a user from a Cloud SQL 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 user.
Database instance ID. This does not include the project ID.
User of the instance.
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.
Updates an existing 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.