Represents a MySQL flag that can be configured for a Cloud SQL instance. The list method lists all possible MySQL flags you can use. To see flags set for a particular Cloud SQL instance, uses the Instances resource get method. For more information about MySQL flags see, Configuring MySQL Flags.

For a list of methods for this resource, see the end of this page.

Resource representations

A Flag resource.

  "kind": "sql#flag",
  "name": string,
  "type": string,
  "appliesTo": [
  "allowedStringValues": [
  "minValue": long,
  "maxValue": long,
  "requiresRestart": boolean
Property name Value Description Notes
allowedStringValues[] list For STRING flags, a list of strings that the value can be set to.
appliesTo[] list The database versions this flag is supported for.
kind string This is always sql#flag.
maxValue long For INTEGER flags, the maximum allowed value.
minValue long For INTEGER flags, the minimum allowed value.
name string This is the name of the flag. Flag names always use underscores, not hyphens, e.g. max_allowed_packet
requiresRestart boolean Indicates whether changing this flag will trigger a database restart. Only applicable to Second Generation instances.
type string The type of the flag. Flags are typed to being BOOLEAN, STRING, INTEGER or NONE. NONE is used for flags which do not take a value, such as skip_grant_tables.


List all available database flags for Google Cloud SQL instances.

Send feedback about...

Cloud SQL Documentation