REST Resource: flags Stay organized with collections Save and categorize content based on your preferences.
Resource: Flag
A flag resource.
| JSON representation |
|---|
{"name":string,"type":enum ( |
| Fields | |
|---|---|
name |
This is the name of the flag. Flag names always use underscores, not hyphens, for example: |
type |
The type of the flag. Flags are typed to being |
appliesTo[] |
The database version this flag applies to. Can be MySQL instances: |
allowedStringValues[] |
For |
minValue |
For |
maxValue |
For |
requiresRestart |
Indicates whether changing this flag will trigger a database restart. Only applicable to Second Generation instances. |
kind |
This is always |
inBeta |
Whether or not the flag is considered in beta. |
allowedIntValues[] |
Use this field if only certain integers are accepted. Can be combined with minValue and maxValue to add additional values. |
flagScope |
Scope of flag. |
Union fieldrecommended_value. Recommended flag value for UI display.recommended_value can be only one of the following: | |
recommendedStringValue |
Recommended flag value in string format for UI display. |
recommendedIntValue |
Recommended flag value in integer format for UI display. |
SqlFlagType
| Enums | |
|---|---|
SQL_FLAG_TYPE_UNSPECIFIED | This is an unknown flag type. |
BOOLEAN | Boolean type flag. |
STRING | String type flag. |
INTEGER | Integer type flag. |
NONE | Flag type used for a server startup option. |
MYSQL_TIMEZONE_OFFSET | Type introduced specially for MySQL TimeZone offset. Accept a string value with the format [-12:59, 13:00]. |
FLOAT | Float type flag. |
REPEATED_STRING | Comma-separated list of the strings in a SqlFlagType enum. |
SqlFlagScope
Scopes of a flag describe where the flag is used.
| Enums | |
|---|---|
SQL_FLAG_SCOPE_UNSPECIFIED | Assume database flags if unspecified |
SQL_FLAG_SCOPE_DATABASE | database flags |
SQL_FLAG_SCOPE_CONNECTION_POOL | connection pool configuration flags |
Methods | |
|---|---|
| Lists all available database flags for Cloud SQL instances. |
Except as otherwise noted, the content of this page is licensed under theCreative Commons Attribution 4.0 License, and code samples are licensed under theApache 2.0 License. For details, see theGoogle Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-10-24 UTC.