Flags

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": [
    string
  ],
  "allowedStringValues": [
    string
  ],
  "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.

Methods

list
List all available database flags for Google Cloud SQL instances.

Monitor your resources on the go

Get the Google Cloud Console app to help you manage your projects.

Send feedback about...

Cloud SQL for MySQL