types
Backup
A MySQL backup. For more information, see the documentation.
id : string
ID of the backup.
folderId : string
ID of the folder that the backup belongs to.
createdAt : google.protobuf.Timestamp
sourceClusterId : string
ID of the MySQL cluster that the backup was created for.
startedAt : google.protobuf.Timestamp
Time when the backup operation was started.
Cluster
A MySQL cluster. For more information, see the documentation.
Environment
ENVIRONMENT_UNSPECIFIEDPRODUCTIONStable environment with a conservative update policy: only hotfixes are applied during regular maintenance.
PRESTABLEEnvironment with more aggressive update policy: new versions are rolled out irrespective of backward compatibility.
Health
HEALTH_UNKNOWNState of the cluster is unknown ([Host.health][1] for every host in the cluster is UNKNOWN).
ALIVECluster is alive and well ([Host.health][2] for every host in the cluster is ALIVE).
DEADCluster is inoperable ([Host.health][3] for every host in the cluster is DEAD).
DEGRADEDCluster is working below capacity ([Host.health][4] for at least one host in the cluster is not ALIVE).
Status
STATUS_UNKNOWNCluster state is unknown.
CREATINGCluster is being created.
RUNNINGCluster is running normally.
ERRORCluster encountered a problem and cannot operate.
UPDATINGCluster is being updated.
STOPPINGCluster is stopping.
STOPPEDCluster stopped.
STARTINGCluster is starting.
id : string
ID of the MySQL cluster. This ID is assigned by Managed Service for MySQL at creation time.
folderId : string
ID of the folder that the MySQL cluster belongs to.
createdAt : google.protobuf.Timestamp
name : string
Name of the MySQL cluster. The name must be unique within the folder, comply with RFC 1035 and be 1-63 characters long.
description : string
Description of the MySQL cluster. 0-256 characters long.
labels : string
Custom labels for the MySQL cluster as key:value pairs.
Maximum 64 per resource.
environment : Environment
Deployment environment of the MySQL cluster.
monitoring : Monitoring
Description of monitoring systems relevant to the MySQL cluster.
config : ClusterConfig
Configuration of the MySQL cluster.
networkId : string
ID of the network that the cluster belongs to.
health : Health
Aggregated cluster health.
status : Status
Current state of the cluster.
ClusterConfig
version : string
Version of MySQL server software.
One of mysqlConfig
Configuration for MySQL servers in the cluster.
mysqlConfig_5_7: config.MysqlConfigSet5_7Configuration of a MySQL 5.7 server.
resources : Resources
Resources allocated to MySQL hosts.
backupWindowStart : google.type.TimeOfDay
Time to start the daily backup, in the UTC timezone.
Database
A MySQL database. For more information, see the documentation.
name : string
Name of the database.
clusterId : string
ID of the MySQL cluster that the database belongs to.
DatabaseSpec
name : string
Name of the MySQL database.
Host
Role
ROLE_UNKNOWNRole of the host in the cluster is unknown.
MASTERHost is the master MySQL server in the cluster.
REPLICAHost is a replica MySQL server in the cluster.
Health
HEALTH_UNKNOWNHealth of the host is unknown.
ALIVEThe host is performing all its functions normally.
DEADThe host is inoperable, and cannot perform any of its essential functions.
DEGRADEDThe host is degraded, and can perform only some of its essential functions.
name : string
Name of the MySQL host. The host name is assigned by Managed Service for MySQL at creation time, and cannot be changed. 1-63 characters long.
The name is unique across all database hosts that exist on the platform, as it defines the FQDN of the host.
clusterId : string
ID of the MySQL host. The ID is assigned by Managed Service for MySQL at creation time.
zoneId : string
ID of the availability zone where the MySQL host resides.
resources : Resources
Resources allocated to the host.
role : Role
Role of the host in the cluster.
health : Health
Status code of the aggregated health of the host.
services : Service
Services provided by the host.
subnetId : string
ID of the subnet that the host belongs to.
assignPublicIp : bool
Flag showing public IP assignment status to this host.
Monitoring
name : string
Name of the monitoring system.
description : string
Description of the monitoring system.
link : string
Link to the monitoring system charts for the MySQL cluster.
Permission
Privilege
PRIVILEGE_UNSPECIFIEDALL_PRIVILEGESAll privileges that can be made available to the user.
ALTERAltering tables.
ALTER_ROUTINEAltering stored routines (stored procedures and functions).
CREATECreating tables or indexes.
CREATE_ROUTINECreating stored routines.
CREATE_TEMPORARY_TABLESCreating temporary tables.
CREATE_VIEWCreating views.
DELETEDeleting tables.
DROPRemoving tables or views.
EVENTCreating, altering, dropping, or displaying events for the Event Scheduler.
EXECUTEExecuting stored routines.
INDEXCreating and removing indexes.
INSERTInserting rows into the database.
LOCK_TABLESUsing LOCK TABLES statement for tables available with SELECT privilege.
SELECTSelecting rows from tables. Some SELECT statements can be allowed without the SELECT privilege. All statements that read column values require the SELECT privilege. See details in MySQL documentation.
SHOW_VIEWUsing the SHOW CREATE VIEW statement. Also needed for views used with EXPLAIN.
TRIGGERCreating, removing, executing, or displaying triggers for a table.
UPDATEUpdating rows in the database.
databaseName : string
Name of the database that the permission grants access to.
roles : Privilege
Roles granted to the user within the database.
ResourcePreset
A preset of resources for hardware configuration of MySQL hosts.
id : string
ID of the resource preset.
zoneIds : string
IDs of availability zones where the resource preset is available.
cores : int64
Number of CPU cores for a MySQL host created with the preset.
memory : int64
RAM volume for a MySQL host created with the preset, in bytes.
Resources
resourcePresetId : string
ID of the preset for computational resources available to a host (CPU, memory etc.). All available presets are listed in the documentation.
diskSize : int64
Volume of the storage available to a host.
diskTypeId : string
Type of the storage environment for the host. Possible values:
- network-ssd - network SSD drive,
- local-ssd - local SSD storage.
Service
Type
TYPE_UNSPECIFIEDMYSQL_ERRORHost provides the MySQL error log.
MYSQL_GENERALHost provides the MySQL general query log.
MYSQL_SLOW_QUERYHost provides the MySQL slow query log.
Health
HEALTH_UNKNOWNHealth of the server is unknown.
ALIVEThe server is working normally.
DEADThe server is dead or unresponsive.
type : Type
Type of the service provided by the host.
health : Health
Status code of server availability.
User
A MySQL user. For more information, see the documentation.
name : string
Name of the MySQL user.
clusterId : string
ID of the MySQL cluster the user belongs to.
permissions : Permission
Set of permissions granted to the user.
UserSpec
name : string
Name of the MySQL user.
password : string
Password of the MySQL user.
permissions : Permission
Set of permissions to grant to the user.