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. |
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. |
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-05-30 UTC.