Represents a flag that can be configured for a Cloud SQL instance. The list method lists all possible flags you can use. To see flags set for a particular Cloud SQL instance, uses the Instances resource get method. For more information about Cloud SQL flags see, Configuring Cloud SQL 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
  "in_beta": 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.
in_beta boolean Whether or not the flag is considered in beta.
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 Cloud SQL instances.
Was this page helpful? Let us know how we did:

Send feedback about...

Cloud SQL for MySQL