Google Cloud SQL Cloud Sql Flags API

The Cloud Sql Flags API from Google Cloud SQL — 1 operation(s) for cloud sql flags.

GitHub OpenAPI

Operations 1

GET /v1/flags List flags #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/google-cloud-sql:google-cloud-sql-flags-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

google-cloud-sql-flags-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Cloud SQL Admin Flags API
  version: v1
  description: Generated from Google's published Discovery document for Cloud SQL Admin API (sqladmin v1, revision 20261107). 1 operation(s).
  contact:
    name: Google
    url: https://developers.google.com/
  termsOfService: https://developers.google.com/terms
servers:
- url: https://sqladmin.googleapis.com
tags:
- name: Flags
paths:
  /v1/flags:
    get:
      operationId: sql.flags.list
      summary: List flags
      description: Lists all available database flags for Cloud SQL instances.
      parameters:
      - name: databaseVersion
        in: query
        required: false
        description: Database type and version you want to retrieve flags for. By default, this method returns flags for all database types and versions.
        schema:
          type: string
      - name: flagScope
        in: query
        required: false
        description: Optional. Specify the scope of flags to be returned by SqlFlagsListService. Return list of database flags if unspecified.
        schema:
          type: string
          enum:
          - SQL_FLAG_SCOPE_UNSPECIFIED
          - SQL_FLAG_SCOPE_DATABASE
          - SQL_FLAG_SCOPE_CONNECTION_POOL
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/FlagsListResponse'
        4XX:
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GoogleRpcError'
          description: 'Client error (google.rpc.Status: INVALID_ARGUMENT, PERMISSION_DENIED, NOT_FOUND ...)'
        default:
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GoogleRpcError'
          description: Error response (google.rpc.Status)
      security:
      - oauth2:
        - https://www.googleapis.com/auth/cloud-platform
        - https://www.googleapis.com/auth/sqlservice.admin
      - apiKey: []
      tags:
      - Flags
components:
  schemas:
    FlagsListResponse:
      properties:
        kind:
          type: string
          description: This is always `sql#flagsList`.
        items:
          description: List of flags.
          type: array
          items:
            $ref: '#/components/schemas/Flag'
      description: Flags list response.
      type: object
    Flag:
      properties:
        allowedStringValues:
          description: For `STRING` flags, a list of strings that the value can be set to.
          type: array
          items:
            type: string
        recommendedIntValue:
          format: int64
          type: string
          description: Recommended int value in integer format for UI display.
        inBeta:
          description: Whether or not the flag is considered in beta.
          type: boolean
        name:
          description: 'This is the name of the flag. Flag names always use underscores, not hyphens, for example: `max_allowed_packet`'
          type: string
        appliesTo:
          description: '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).'
          type: array
          items:
            enum:
            - SQL_DATABASE_VERSION_UNSPECIFIED
            - MYSQL_5_1
            - MYSQL_5_5
            - MYSQL_5_6
            - MYSQL_5_7
            - MYSQL_8_0
            - MYSQL_8_0_18
            - MYSQL_8_0_26
            - MYSQL_8_0_27
            - MYSQL_8_0_28
            - MYSQL_8_0_29
            - MYSQL_8_0_30
            - MYSQL_8_0_31
            - MYSQL_8_0_32
            - MYSQL_8_0_33
            - MYSQL_8_0_34
            - MYSQL_8_0_35
            - MYSQL_8_0_36
            - MYSQL_8_0_37
            - MYSQL_8_0_39
            - MYSQL_8_0_40
            - MYSQL_8_0_41
            - MYSQL_8_0_42
            - MYSQL_8_0_43
            - MYSQL_8_0_44
            - MYSQL_8_0_45
            - MYSQL_8_0_46
            - MYSQL_8_4
            - MYSQL_9_7
            - SQLSERVER_2017_STANDARD
            - SQLSERVER_2017_ENTERPRISE
            - SQLSERVER_2017_EXPRESS
            - SQLSERVER_2017_WEB
            - POSTGRES_9_6
            - POSTGRES_10
            - POSTGRES_11
            - POSTGRES_12
            - POSTGRES_13
            - POSTGRES_14
            - POSTGRES_15
            - POSTGRES_16
            - POSTGRES_17
            - POSTGRES_18
            - POSTGRES_19
            - POSTGRES_20
            - SQLSERVER_2019_STANDARD
            - SQLSERVER_2019_ENTERPRISE
            - SQLSERVER_2019_EXPRESS
            - SQLSERVER_2019_WEB
            - SQLSERVER_2022_STANDARD
            - SQLSERVER_2022_ENTERPRISE
            - SQLSERVER_2022_EXPRESS
            - SQLSERVER_2022_WEB
            - SQLSERVER_2025_STANDARD
            - SQLSERVER_2025_ENTERPRISE
            - SQLSERVER_2025_EXPRESS
            type: string
        recommendedStringValue:
          type: string
          description: Recommended string value in string format for UI display.
        requiresRestart:
          type: boolean
          description: Indicates whether changing this flag will trigger a database restart. Only applicable to Second Generation instances.
        kind:
          description: This is always `sql#flag`.
          type: string
        allowedIntValues:
          items:
            type: string
            format: int64
          description: Use this field if only certain integers are accepted. Can be combined with min_value and max_value to add additional values.
          type: array
        type:
          description: 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`.
          type: string
          enum:
          - SQL_FLAG_TYPE_UNSPECIFIED
          - BOOLEAN
          - STRING
          - INTEGER
          - NONE
          - MYSQL_TIMEZONE_OFFSET
          - FLOAT
          - REPEATED_STRING
        maxValue:
          description: For `INTEGER` flags, the maximum allowed value.
          type: string
          format: int64
        minValue:
          format: int64
          description: For `INTEGER` flags, the minimum allowed value.
          type: string
        flagScope:
          type: string
          enum:
          - SQL_FLAG_SCOPE_UNSPECIFIED
          - SQL_FLAG_SCOPE_DATABASE
          - SQL_FLAG_SCOPE_CONNECTION_POOL
          description: Scope of flag.
      type: object
      description: A flag resource.
    GoogleRpcError:
      type: object
      description: The error envelope every Google API returns.
      properties:
        error:
          type: object
          properties:
            code:
              type: integer
            message:
              type: string
            status:
              type: string
            details:
              type: array
              items:
                type: object
  securitySchemes:
    apiKey:
      type: apiKey
      in: query
      name: key
      description: API key; accepted by methods that do not need user data.
    oauth2:
      type: oauth2
      flows:
        authorizationCode:
          authorizationUrl: https://accounts.google.com/o/oauth2/auth
          tokenUrl: https://oauth2.googleapis.com/token
          scopes:
            https://www.googleapis.com/auth/cloud-platform: See, edit, configure, and delete your Google Cloud data and see the email address for your Google Account.
            https://www.googleapis.com/auth/sqlservice.admin: Manage your Google SQL Service instances
externalDocs:
  url: https://cloud.google.com/sql/docs
x-provenance:
  method: harvested
  publisher: Google
  source: https://sqladmin.googleapis.com/$discovery/rest?version=v1
  note: converted by discovery-to-openapi.py from Google's Discovery document (revision 20261107)