REST Resource: flags

Resource: Flag

A flag resource.

JSON representation
{
  "name": string,
  "type": enum (SqlFlagType),
  "appliesTo": [
    enum (SqlDatabaseVersion)
  ],
  "allowedStringValues": [
    string
  ],
  "minValue": string,
  "maxValue": string,
  "requiresRestart": boolean,
  "kind": string,
  "inBeta": boolean
}
Fields
name

string

This is the name of the flag. Flag names always use underscores, not hyphens, e.g.

max_allowed_packet

type

enum (SqlFlagType)

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

.

appliesTo[]

enum (SqlDatabaseVersion)

The database version this flag applies to. Can be

MYSQL_5_5

,

MYSQL_5_6

, or

MYSQL_5_7

.

MYSQL_5_7

is applicable only to Second Generation instances.

allowedStringValues[]

string

For

STRING

flags, a list of strings that the value can be set to.

minValue

string (Int64Value format)

For

INTEGER

flags, the minimum allowed value.

maxValue

string (Int64Value format)

For

INTEGER

flags, the maximum allowed value.

requiresRestart

boolean

Indicates whether changing this flag will trigger a database restart. Only applicable to Second Generation instances.

kind

string

This is always

sql#flag

.

inBeta

boolean

Whether or not the flag is considered in beta.

SqlFlagType

Types here should match types in FlagValidationProto. LINT.IfChange(sql_flag_type)

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 specically 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

list

List all available database flags for Cloud SQL instances.
Esta página foi útil? Conte sua opinião sobre:

Enviar comentários sobre…

Cloud SQL for PostgreSQL
Precisa de ajuda? Acesse nossa página de suporte.