For Agents
Provision and operate managed MySQL, PostgreSQL, and SQL Server instances on Google Cloud. Run backups, manage databases and users, and orchestrate import/export through the legacy /sql/v1beta4 path.
Install Jentic One Beta
Jentic One is a self-hosted execution layer for AI agents. It lets your agent call the Cloud SQL Admin API, or any other public or private API you need. You set the rules, the agent never sees your credentials, and every call is logged.
Two steps, two machines. Install the instance in a safe environment, then register your agent from wherever it runs.
Step 1: Jentic One Host machine
# On the machine that will host your Jentic One instance:
curl -fsSL https://raw.githubusercontent.com/jentic/jentic-one/main/tools/install.sh | shStep 2: Agent machine
# On the machine where your agent runs (keep this separate from the instance):
curl -fsSL https://raw.githubusercontent.com/jentic/jentic-one/main/tools/install.sh | sh
jentic register # connects your agent to your Jentic One instanceJentic One is in public beta. The setup above keeps your agent separate from the instance, which is what you want before using real credentials: an agent running as the same OS user as Jentic One can read its stored keys directly. Just evaluating? A single local install is fine to start. See the secure deployment guide for the tiers.
What an agent can do with Cloud SQL Admin API.
Create, list, update, and delete managed Cloud SQL instances across MySQL, PostgreSQL, and SQL Server
Take on-demand backups and list scheduled backup runs for an instance
Manage databases, users, and SSL certificates on each instance
GET STARTED
Use for: I want to create a Cloud SQL instance, List all Cloud SQL instances in a project, Take an on-demand backup of a Cloud SQL instance, Restore a Cloud SQL instance from a backup
Not supported: Does not run application SQL queries, manage schemas inside the database, or handle in-database backups — use for Cloud SQL instance, user, and backup administration only.
The Cloud SQL Admin API (v1beta4) administers managed MySQL, PostgreSQL, and SQL Server instances on Google Cloud. It covers instance lifecycle (create, clone, restart, restore from backup, failover, switchover), database and user management, scheduled and on-demand backups, server certificates, IP configuration, and import/export jobs to and from Cloud Storage. The v1beta4 surface is the longstanding stable beta path; new automation should generally prefer the v1 path, but v1beta4 remains supported for existing tooling.
Run import and export jobs that move data between Cloud SQL and Cloud Storage
Trigger failover or switchover to the read replica for HA recovery testing
Rotate server CA certificates and manage TLS connection settings
Patterns agents use Cloud SQL Admin API for, with concrete tasks.
★ Managed MySQL Provisioning
Provision a new MySQL instance with a chosen tier, region, and backup window for a service team. The Cloud SQL Admin API exposes instance creation and update as long-running operations under /sql/v1beta4/projects/{project}/instances. Combined with calls to create the initial database and a service user, the full setup takes a few minutes.
POST /sql/v1beta4/projects/myproj/instances with databaseVersion=MYSQL_8_0, settings.tier=db-custom-2-7680, settings.backupConfiguration.enabled=true.
Scheduled Logical Backups to Cloud Storage
Run nightly logical exports of a production Cloud SQL database to a Cloud Storage bucket for offsite retention. The export endpoint accepts the bucket URI, database list, and SQL or CSV format. Each export is a long-running operation that can be polled until done.
POST /sql/v1beta4/projects/myproj/instances/prod/export with exportContext.uri=gs://backups/prod-2026-06-10.sql.gz and databases=['app_db'].
Disaster Recovery Drill
Exercise the recovery runbook by restoring a recent backup into a fresh instance and verifying application connectivity. The Cloud SQL Admin API supports restoreBackup against an existing instance and clone for creating a separate instance from a point-in-time. Both are long-running operations.
POST /sql/v1beta4/projects/myproj/instances/prod/restoreBackup with backupRunId of last night's run, then verify the operation completes.
AI Agent Database Onboarding
An AI agent setting up a new microservice creates a Cloud SQL instance, then a database and an application-scoped user. Through Jentic, the agent searches for the create operations, loads each schema, and executes them in order — the entire onboarding fits inside a single agent reasoning loop.
Search Jentic for 'create a Cloud SQL instance', execute the create call, then chain databases.insert and users.insert against the new instance.
68 endpoints — the cloud sql admin api (v1beta4) administers managed mysql, postgresql, and sql server instances on google cloud.
METHOD
PATH
DESCRIPTION
/sql/v1beta4/projects/{project}/instances
List Cloud SQL instances in a project
/sql/v1beta4/projects/{project}/instances/{instance}
Get a single Cloud SQL instance
/sql/v1beta4/projects/{project}/instances/{instance}/backupRuns
Take an on-demand backup
/sql/v1beta4/projects/{project}/instances/{instance}/clone
Clone an instance, optionally to a point in time
/sql/v1beta4/projects/{project}/instances/{instance}/databases
List databases on an instance
/sql/v1beta4/projects/{project}/instances/{instance}/connectSettings
Read connection settings for an instance
/sql/v1beta4/projects/{project}/instances
List Cloud SQL instances in a project
/sql/v1beta4/projects/{project}/instances/{instance}
Get a single Cloud SQL instance
/sql/v1beta4/projects/{project}/instances/{instance}/backupRuns
Take an on-demand backup
/sql/v1beta4/projects/{project}/instances/{instance}/clone
Clone an instance, optionally to a point in time
/sql/v1beta4/projects/{project}/instances/{instance}/databases
List databases on an instance
Three things that make agents converge on Jentic-routed access.
Credential isolation
Cloud SQL Admin OAuth credentials are stored in the Jentic vault (MAXsystem) and exchanged for scoped, short-lived access tokens. Service-account JSON keys never enter the agent context.
Intent-based discovery
Agents search Jentic with intents like 'create a Cloud SQL instance' or 'export a Cloud SQL database', and Jentic returns the matching instances.insert or instances.export operation along with its v1beta4 request schema.
Time to first call
Direct Cloud SQL Admin integration: 1-2 days to wire OAuth, long-running operation polling, and the instance settings schema. Through Jentic: under 1 hour for discover, schema-load, and execute.
Alternatives and complements available in the Jentic catalogue.
Specific to using Cloud SQL Admin API through Jentic.
What authentication does the Cloud SQL Admin API use?
The Cloud SQL Admin API uses OAuth 2.0 with the cloud-platform or sqlservice.admin scope. Through Jentic, OAuth credentials are stored in the Jentic vault (MAXsystem) and exchanged for short-lived access tokens, so service-account JSON keys never enter the agent context.
Can I take a Cloud SQL backup with this API?
Yes. POST /sql/v1beta4/projects/{project}/instances/{instance}/backupRuns triggers an on-demand backup, and GET on the same path lists existing backup runs. Both calls return the long-running operation handle that tracks the backup until completion.
What is the difference between the v1beta4 and v1 Cloud SQL Admin API surfaces?
v1beta4 was the original stable beta path under /sql/v1beta4 and remains supported for backward compatibility. The v1 path under /v1 (sqladmin) is now generally available with the same resource model. New automation should typically target v1; v1beta4 is exposed here for tooling that already calls /sql/v1beta4.
What are the rate limits for the Cloud SQL Admin API?
Admin API quotas default to a few hundred requests per minute per project, with stricter limits on instance creation and import/export operations. Quotas can be inspected and raised in the Google Cloud Console under IAM and admin > Quotas.
How do I export a database to Cloud Storage through Jentic?
Search Jentic for 'export a Cloud SQL database', load the instances.export schema, and execute POST /sql/v1beta4/projects/{project}/instances/{instance}/export with the destination gs:// URI and target databases. Jentic returns the long-running operation handle for polling.
Is the Cloud SQL Admin API free?
The Admin API itself has no per-call charge. Cloud SQL costs come from the underlying instance compute, storage, and backup retention, billed per hour and per GB.
/sql/v1beta4/projects/{project}/instances/{instance}/connectSettings
Read connection settings for an instance