Managed Service for MySQL API, REST: Cluster.Backup
Creates a backup for a cluster.
To get information about a backup, make a BackupService.Get request.
HTTP request
POST https://mdb.api.cloud.yandex.net/managed-mysql/v1/clusters/{clusterId}:backup
Path parameters
Field |
Description |
clusterId |
string Required field. ID of the cluster to back up. To get this ID, make a ClusterService.List request. |
Response
HTTP Code: 200 - OK
{
"id": "string",
"description": "string",
"createdAt": "string",
"createdBy": "string",
"modifiedAt": "string",
"done": "boolean",
"metadata": {
"clusterId": "string",
"backupId": "string"
},
// Includes only one of the fields `error`, `response`
"error": {
"code": "integer",
"message": "string",
"details": [
"object"
]
},
"response": {
"id": "string",
"folderId": "string",
"createdAt": "string",
"name": "string",
"description": "string",
"labels": "object",
"environment": "string",
"monitoring": [
{
"name": "string",
"description": "string",
"link": "string"
}
],
"config": {
"version": "string",
// Includes only one of the fields `mysqlConfig_5_7`, `mysqlConfig_8_0`
"mysqlConfig_5_7": {
"effectiveConfig": {
"innodbBufferPoolSize": "string",
"maxConnections": "string",
"longQueryTime": "number",
"generalLog": "boolean",
"auditLog": "boolean",
"sqlMode": [
"string"
],
"maxAllowedPacket": "string",
"defaultAuthenticationPlugin": "string",
"innodbFlushLogAtTrxCommit": "string",
"innodbLockWaitTimeout": "string",
"transactionIsolation": "string",
"innodbPrintAllDeadlocks": "boolean",
"netReadTimeout": "string",
"netWriteTimeout": "string",
"groupConcatMaxLen": "string",
"tmpTableSize": "string",
"maxHeapTableSize": "string",
"defaultTimeZone": "string",
"characterSetServer": "string",
"collationServer": "string",
"innodbAdaptiveHashIndex": "boolean",
"innodbNumaInterleave": "boolean",
"innodbLogBufferSize": "string",
"innodbLogFileSize": "string",
"innodbIoCapacity": "string",
"innodbIoCapacityMax": "string",
"innodbReadIoThreads": "string",
"innodbWriteIoThreads": "string",
"innodbPurgeThreads": "string",
"innodbThreadConcurrency": "string",
"innodbTempDataFileMaxSize": "string",
"threadCacheSize": "string",
"threadStack": "string",
"joinBufferSize": "string",
"sortBufferSize": "string",
"tableDefinitionCache": "string",
"tableOpenCache": "string",
"tableOpenCacheInstances": "string",
"explicitDefaultsForTimestamp": "boolean",
"autoIncrementIncrement": "string",
"autoIncrementOffset": "string",
"syncBinlog": "string",
"binlogCacheSize": "string",
"binlogGroupCommitSyncDelay": "string",
"binlogRowImage": "string",
"binlogRowsQueryLogEvents": "boolean",
"rplSemiSyncMasterWaitForSlaveCount": "string",
"slaveParallelType": "string",
"slaveParallelWorkers": "string",
"mdbPreserveBinlogBytes": "string",
"interactiveTimeout": "string",
"waitTimeout": "string",
"mdbOfflineModeEnableLag": "string",
"mdbOfflineModeDisableLag": "string",
"rangeOptimizerMaxMemSize": "string",
"slowQueryLog": "boolean",
"slowQueryLogAlwaysWriteTime": "number",
"logSlowRateType": "string",
"logSlowRateLimit": "string",
"logSlowSpStatements": "boolean",
"logSlowFilter": [
"string"
],
"mdbPriorityChoiceMaxLag": "string",
"innodbPageSize": "string",
"innodbOnlineAlterLogMaxSize": "string",
"innodbFtMinTokenSize": "string",
"innodbFtMaxTokenSize": "string",
"lowerCaseTableNames": "string",
"showCompatibility_56": "boolean",
"maxSpRecursionDepth": "string",
"innodbCompressionLevel": "string",
"binlogTransactionDependencyTracking": "string",
"autocommit": "boolean",
"innodbStatusOutput": "boolean",
"innodbStrictMode": "boolean",
"innodbPrintLockWaitTimeoutInfo": "boolean",
"logErrorVerbosity": "string",
"maxDigestLength": "string",
"queryCacheLimit": "string",
"queryCacheSize": "string",
"queryCacheType": "string",
"lockWaitTimeout": "string",
"maxPreparedStmtCount": "string",
"optimizerSwitch": "string",
"optimizerSearchDepth": "string",
"queryResponseTimeStats": "boolean",
"userstat": "boolean",
"maxExecutionTime": "string"
},
"userConfig": {
"innodbBufferPoolSize": "string",
"maxConnections": "string",
"longQueryTime": "number",
"generalLog": "boolean",
"auditLog": "boolean",
"sqlMode": [
"string"
],
"maxAllowedPacket": "string",
"defaultAuthenticationPlugin": "string",
"innodbFlushLogAtTrxCommit": "string",
"innodbLockWaitTimeout": "string",
"transactionIsolation": "string",
"innodbPrintAllDeadlocks": "boolean",
"netReadTimeout": "string",
"netWriteTimeout": "string",
"groupConcatMaxLen": "string",
"tmpTableSize": "string",
"maxHeapTableSize": "string",
"defaultTimeZone": "string",
"characterSetServer": "string",
"collationServer": "string",
"innodbAdaptiveHashIndex": "boolean",
"innodbNumaInterleave": "boolean",
"innodbLogBufferSize": "string",
"innodbLogFileSize": "string",
"innodbIoCapacity": "string",
"innodbIoCapacityMax": "string",
"innodbReadIoThreads": "string",
"innodbWriteIoThreads": "string",
"innodbPurgeThreads": "string",
"innodbThreadConcurrency": "string",
"innodbTempDataFileMaxSize": "string",
"threadCacheSize": "string",
"threadStack": "string",
"joinBufferSize": "string",
"sortBufferSize": "string",
"tableDefinitionCache": "string",
"tableOpenCache": "string",
"tableOpenCacheInstances": "string",
"explicitDefaultsForTimestamp": "boolean",
"autoIncrementIncrement": "string",
"autoIncrementOffset": "string",
"syncBinlog": "string",
"binlogCacheSize": "string",
"binlogGroupCommitSyncDelay": "string",
"binlogRowImage": "string",
"binlogRowsQueryLogEvents": "boolean",
"rplSemiSyncMasterWaitForSlaveCount": "string",
"slaveParallelType": "string",
"slaveParallelWorkers": "string",
"mdbPreserveBinlogBytes": "string",
"interactiveTimeout": "string",
"waitTimeout": "string",
"mdbOfflineModeEnableLag": "string",
"mdbOfflineModeDisableLag": "string",
"rangeOptimizerMaxMemSize": "string",
"slowQueryLog": "boolean",
"slowQueryLogAlwaysWriteTime": "number",
"logSlowRateType": "string",
"logSlowRateLimit": "string",
"logSlowSpStatements": "boolean",
"logSlowFilter": [
"string"
],
"mdbPriorityChoiceMaxLag": "string",
"innodbPageSize": "string",
"innodbOnlineAlterLogMaxSize": "string",
"innodbFtMinTokenSize": "string",
"innodbFtMaxTokenSize": "string",
"lowerCaseTableNames": "string",
"showCompatibility_56": "boolean",
"maxSpRecursionDepth": "string",
"innodbCompressionLevel": "string",
"binlogTransactionDependencyTracking": "string",
"autocommit": "boolean",
"innodbStatusOutput": "boolean",
"innodbStrictMode": "boolean",
"innodbPrintLockWaitTimeoutInfo": "boolean",
"logErrorVerbosity": "string",
"maxDigestLength": "string",
"queryCacheLimit": "string",
"queryCacheSize": "string",
"queryCacheType": "string",
"lockWaitTimeout": "string",
"maxPreparedStmtCount": "string",
"optimizerSwitch": "string",
"optimizerSearchDepth": "string",
"queryResponseTimeStats": "boolean",
"userstat": "boolean",
"maxExecutionTime": "string"
},
"defaultConfig": {
"innodbBufferPoolSize": "string",
"maxConnections": "string",
"longQueryTime": "number",
"generalLog": "boolean",
"auditLog": "boolean",
"sqlMode": [
"string"
],
"maxAllowedPacket": "string",
"defaultAuthenticationPlugin": "string",
"innodbFlushLogAtTrxCommit": "string",
"innodbLockWaitTimeout": "string",
"transactionIsolation": "string",
"innodbPrintAllDeadlocks": "boolean",
"netReadTimeout": "string",
"netWriteTimeout": "string",
"groupConcatMaxLen": "string",
"tmpTableSize": "string",
"maxHeapTableSize": "string",
"defaultTimeZone": "string",
"characterSetServer": "string",
"collationServer": "string",
"innodbAdaptiveHashIndex": "boolean",
"innodbNumaInterleave": "boolean",
"innodbLogBufferSize": "string",
"innodbLogFileSize": "string",
"innodbIoCapacity": "string",
"innodbIoCapacityMax": "string",
"innodbReadIoThreads": "string",
"innodbWriteIoThreads": "string",
"innodbPurgeThreads": "string",
"innodbThreadConcurrency": "string",
"innodbTempDataFileMaxSize": "string",
"threadCacheSize": "string",
"threadStack": "string",
"joinBufferSize": "string",
"sortBufferSize": "string",
"tableDefinitionCache": "string",
"tableOpenCache": "string",
"tableOpenCacheInstances": "string",
"explicitDefaultsForTimestamp": "boolean",
"autoIncrementIncrement": "string",
"autoIncrementOffset": "string",
"syncBinlog": "string",
"binlogCacheSize": "string",
"binlogGroupCommitSyncDelay": "string",
"binlogRowImage": "string",
"binlogRowsQueryLogEvents": "boolean",
"rplSemiSyncMasterWaitForSlaveCount": "string",
"slaveParallelType": "string",
"slaveParallelWorkers": "string",
"mdbPreserveBinlogBytes": "string",
"interactiveTimeout": "string",
"waitTimeout": "string",
"mdbOfflineModeEnableLag": "string",
"mdbOfflineModeDisableLag": "string",
"rangeOptimizerMaxMemSize": "string",
"slowQueryLog": "boolean",
"slowQueryLogAlwaysWriteTime": "number",
"logSlowRateType": "string",
"logSlowRateLimit": "string",
"logSlowSpStatements": "boolean",
"logSlowFilter": [
"string"
],
"mdbPriorityChoiceMaxLag": "string",
"innodbPageSize": "string",
"innodbOnlineAlterLogMaxSize": "string",
"innodbFtMinTokenSize": "string",
"innodbFtMaxTokenSize": "string",
"lowerCaseTableNames": "string",
"showCompatibility_56": "boolean",
"maxSpRecursionDepth": "string",
"innodbCompressionLevel": "string",
"binlogTransactionDependencyTracking": "string",
"autocommit": "boolean",
"innodbStatusOutput": "boolean",
"innodbStrictMode": "boolean",
"innodbPrintLockWaitTimeoutInfo": "boolean",
"logErrorVerbosity": "string",
"maxDigestLength": "string",
"queryCacheLimit": "string",
"queryCacheSize": "string",
"queryCacheType": "string",
"lockWaitTimeout": "string",
"maxPreparedStmtCount": "string",
"optimizerSwitch": "string",
"optimizerSearchDepth": "string",
"queryResponseTimeStats": "boolean",
"userstat": "boolean",
"maxExecutionTime": "string"
}
},
"mysqlConfig_8_0": {
"effectiveConfig": {
"innodbBufferPoolSize": "string",
"maxConnections": "string",
"longQueryTime": "number",
"generalLog": "boolean",
"auditLog": "boolean",
"sqlMode": [
"string"
],
"maxAllowedPacket": "string",
"defaultAuthenticationPlugin": "string",
"innodbFlushLogAtTrxCommit": "string",
"innodbLockWaitTimeout": "string",
"transactionIsolation": "string",
"innodbPrintAllDeadlocks": "boolean",
"netReadTimeout": "string",
"netWriteTimeout": "string",
"groupConcatMaxLen": "string",
"tmpTableSize": "string",
"maxHeapTableSize": "string",
"defaultTimeZone": "string",
"characterSetServer": "string",
"collationServer": "string",
"innodbAdaptiveHashIndex": "boolean",
"innodbNumaInterleave": "boolean",
"innodbLogBufferSize": "string",
"innodbLogFileSize": "string",
"innodbIoCapacity": "string",
"innodbIoCapacityMax": "string",
"innodbReadIoThreads": "string",
"innodbWriteIoThreads": "string",
"innodbPurgeThreads": "string",
"innodbThreadConcurrency": "string",
"innodbTempDataFileMaxSize": "string",
"threadCacheSize": "string",
"threadStack": "string",
"joinBufferSize": "string",
"sortBufferSize": "string",
"tableDefinitionCache": "string",
"tableOpenCache": "string",
"tableOpenCacheInstances": "string",
"explicitDefaultsForTimestamp": "boolean",
"autoIncrementIncrement": "string",
"autoIncrementOffset": "string",
"syncBinlog": "string",
"binlogCacheSize": "string",
"binlogGroupCommitSyncDelay": "string",
"binlogRowImage": "string",
"binlogRowsQueryLogEvents": "boolean",
"rplSemiSyncMasterWaitForSlaveCount": "string",
"slaveParallelType": "string",
"slaveParallelWorkers": "string",
"regexpTimeLimit": "string",
"mdbPreserveBinlogBytes": "string",
"interactiveTimeout": "string",
"waitTimeout": "string",
"mdbOfflineModeEnableLag": "string",
"mdbOfflineModeDisableLag": "string",
"rangeOptimizerMaxMemSize": "string",
"slowQueryLog": "boolean",
"slowQueryLogAlwaysWriteTime": "number",
"logSlowRateType": "string",
"logSlowRateLimit": "string",
"logSlowSpStatements": "boolean",
"logSlowFilter": [
"string"
],
"mdbPriorityChoiceMaxLag": "string",
"innodbPageSize": "string",
"innodbOnlineAlterLogMaxSize": "string",
"innodbFtMinTokenSize": "string",
"innodbFtMaxTokenSize": "string",
"lowerCaseTableNames": "string",
"maxSpRecursionDepth": "string",
"innodbCompressionLevel": "string",
"binlogTransactionDependencyTracking": "string",
"autocommit": "boolean",
"innodbStatusOutput": "boolean",
"innodbStrictMode": "boolean",
"innodbPrintLockWaitTimeoutInfo": "boolean",
"logErrorVerbosity": "string",
"maxDigestLength": "string",
"lockWaitTimeout": "string",
"maxPreparedStmtCount": "string",
"optimizerSwitch": "string",
"optimizerSearchDepth": "string",
"userstat": "boolean",
"maxExecutionTime": "string"
},
"userConfig": {
"innodbBufferPoolSize": "string",
"maxConnections": "string",
"longQueryTime": "number",
"generalLog": "boolean",
"auditLog": "boolean",
"sqlMode": [
"string"
],
"maxAllowedPacket": "string",
"defaultAuthenticationPlugin": "string",
"innodbFlushLogAtTrxCommit": "string",
"innodbLockWaitTimeout": "string",
"transactionIsolation": "string",
"innodbPrintAllDeadlocks": "boolean",
"netReadTimeout": "string",
"netWriteTimeout": "string",
"groupConcatMaxLen": "string",
"tmpTableSize": "string",
"maxHeapTableSize": "string",
"defaultTimeZone": "string",
"characterSetServer": "string",
"collationServer": "string",
"innodbAdaptiveHashIndex": "boolean",
"innodbNumaInterleave": "boolean",
"innodbLogBufferSize": "string",
"innodbLogFileSize": "string",
"innodbIoCapacity": "string",
"innodbIoCapacityMax": "string",
"innodbReadIoThreads": "string",
"innodbWriteIoThreads": "string",
"innodbPurgeThreads": "string",
"innodbThreadConcurrency": "string",
"innodbTempDataFileMaxSize": "string",
"threadCacheSize": "string",
"threadStack": "string",
"joinBufferSize": "string",
"sortBufferSize": "string",
"tableDefinitionCache": "string",
"tableOpenCache": "string",
"tableOpenCacheInstances": "string",
"explicitDefaultsForTimestamp": "boolean",
"autoIncrementIncrement": "string",
"autoIncrementOffset": "string",
"syncBinlog": "string",
"binlogCacheSize": "string",
"binlogGroupCommitSyncDelay": "string",
"binlogRowImage": "string",
"binlogRowsQueryLogEvents": "boolean",
"rplSemiSyncMasterWaitForSlaveCount": "string",
"slaveParallelType": "string",
"slaveParallelWorkers": "string",
"regexpTimeLimit": "string",
"mdbPreserveBinlogBytes": "string",
"interactiveTimeout": "string",
"waitTimeout": "string",
"mdbOfflineModeEnableLag": "string",
"mdbOfflineModeDisableLag": "string",
"rangeOptimizerMaxMemSize": "string",
"slowQueryLog": "boolean",
"slowQueryLogAlwaysWriteTime": "number",
"logSlowRateType": "string",
"logSlowRateLimit": "string",
"logSlowSpStatements": "boolean",
"logSlowFilter": [
"string"
],
"mdbPriorityChoiceMaxLag": "string",
"innodbPageSize": "string",
"innodbOnlineAlterLogMaxSize": "string",
"innodbFtMinTokenSize": "string",
"innodbFtMaxTokenSize": "string",
"lowerCaseTableNames": "string",
"maxSpRecursionDepth": "string",
"innodbCompressionLevel": "string",
"binlogTransactionDependencyTracking": "string",
"autocommit": "boolean",
"innodbStatusOutput": "boolean",
"innodbStrictMode": "boolean",
"innodbPrintLockWaitTimeoutInfo": "boolean",
"logErrorVerbosity": "string",
"maxDigestLength": "string",
"lockWaitTimeout": "string",
"maxPreparedStmtCount": "string",
"optimizerSwitch": "string",
"optimizerSearchDepth": "string",
"userstat": "boolean",
"maxExecutionTime": "string"
},
"defaultConfig": {
"innodbBufferPoolSize": "string",
"maxConnections": "string",
"longQueryTime": "number",
"generalLog": "boolean",
"auditLog": "boolean",
"sqlMode": [
"string"
],
"maxAllowedPacket": "string",
"defaultAuthenticationPlugin": "string",
"innodbFlushLogAtTrxCommit": "string",
"innodbLockWaitTimeout": "string",
"transactionIsolation": "string",
"innodbPrintAllDeadlocks": "boolean",
"netReadTimeout": "string",
"netWriteTimeout": "string",
"groupConcatMaxLen": "string",
"tmpTableSize": "string",
"maxHeapTableSize": "string",
"defaultTimeZone": "string",
"characterSetServer": "string",
"collationServer": "string",
"innodbAdaptiveHashIndex": "boolean",
"innodbNumaInterleave": "boolean",
"innodbLogBufferSize": "string",
"innodbLogFileSize": "string",
"innodbIoCapacity": "string",
"innodbIoCapacityMax": "string",
"innodbReadIoThreads": "string",
"innodbWriteIoThreads": "string",
"innodbPurgeThreads": "string",
"innodbThreadConcurrency": "string",
"innodbTempDataFileMaxSize": "string",
"threadCacheSize": "string",
"threadStack": "string",
"joinBufferSize": "string",
"sortBufferSize": "string",
"tableDefinitionCache": "string",
"tableOpenCache": "string",
"tableOpenCacheInstances": "string",
"explicitDefaultsForTimestamp": "boolean",
"autoIncrementIncrement": "string",
"autoIncrementOffset": "string",
"syncBinlog": "string",
"binlogCacheSize": "string",
"binlogGroupCommitSyncDelay": "string",
"binlogRowImage": "string",
"binlogRowsQueryLogEvents": "boolean",
"rplSemiSyncMasterWaitForSlaveCount": "string",
"slaveParallelType": "string",
"slaveParallelWorkers": "string",
"regexpTimeLimit": "string",
"mdbPreserveBinlogBytes": "string",
"interactiveTimeout": "string",
"waitTimeout": "string",
"mdbOfflineModeEnableLag": "string",
"mdbOfflineModeDisableLag": "string",
"rangeOptimizerMaxMemSize": "string",
"slowQueryLog": "boolean",
"slowQueryLogAlwaysWriteTime": "number",
"logSlowRateType": "string",
"logSlowRateLimit": "string",
"logSlowSpStatements": "boolean",
"logSlowFilter": [
"string"
],
"mdbPriorityChoiceMaxLag": "string",
"innodbPageSize": "string",
"innodbOnlineAlterLogMaxSize": "string",
"innodbFtMinTokenSize": "string",
"innodbFtMaxTokenSize": "string",
"lowerCaseTableNames": "string",
"maxSpRecursionDepth": "string",
"innodbCompressionLevel": "string",
"binlogTransactionDependencyTracking": "string",
"autocommit": "boolean",
"innodbStatusOutput": "boolean",
"innodbStrictMode": "boolean",
"innodbPrintLockWaitTimeoutInfo": "boolean",
"logErrorVerbosity": "string",
"maxDigestLength": "string",
"lockWaitTimeout": "string",
"maxPreparedStmtCount": "string",
"optimizerSwitch": "string",
"optimizerSearchDepth": "string",
"userstat": "boolean",
"maxExecutionTime": "string"
}
},
// end of the list of possible fields
"resources": {
"resourcePresetId": "string",
"diskSize": "string",
"diskTypeId": "string"
},
"backupWindowStart": {
"hours": "integer",
"minutes": "integer",
"seconds": "integer",
"nanos": "integer"
},
"access": {
"dataLens": "boolean",
"webSql": "boolean",
"dataTransfer": "boolean"
},
"performanceDiagnostics": {
"enabled": "boolean",
"sessionsSamplingInterval": "string",
"statementsSamplingInterval": "string"
},
"backupRetainPeriodDays": "string"
},
"networkId": "string",
"health": "string",
"status": "string",
"maintenanceWindow": {
// Includes only one of the fields `anytime`, `weeklyMaintenanceWindow`
"anytime": "object",
"weeklyMaintenanceWindow": {
"day": "string",
"hour": "string"
}
// end of the list of possible fields
},
"plannedOperation": {
"info": "string",
"delayedUntil": "string"
},
"securityGroupIds": [
"string"
],
"deletionProtection": "boolean",
"hostGroupIds": [
"string"
]
}
// end of the list of possible fields
}
An Operation resource. For more information, see Operation.
Field |
Description |
id |
string ID of the operation. |
description |
string Description of the operation. 0-256 characters long. |
createdAt |
string (date-time) Creation timestamp. String in RFC3339 To work with values in this field, use the APIs described in the |
createdBy |
string ID of the user or service account who initiated the operation. |
modifiedAt |
string (date-time) The time when the Operation resource was last modified. String in RFC3339 To work with values in this field, use the APIs described in the |
done |
boolean If the value is |
metadata |
Service-specific metadata associated with the operation. |
error |
The error result of the operation in case of failure or cancellation. Includes only one of the fields The operation result. |
response |
The normal response of the operation in case of success. Includes only one of the fields The operation result. |
BackupClusterMetadata
Field |
Description |
clusterId |
string ID of the cluster that is being backed up. |
backupId |
string ID of the MySQL backup that is created. |
Status
The error result of the operation in case of failure or cancellation.
Field |
Description |
code |
integer (int32) Error code. An enum value of google.rpc.Code |
message |
string An error message. |
details[] |
object A list of messages that carry the error details. |
Cluster
An object that represents MySQL cluster.
See the documentation for details.
Field |
Description |
id |
string ID of the cluster. This ID is assigned by the platform at the time of creation. |
folderId |
string ID of the folder that the cluster belongs to. |
createdAt |
string (date-time) Creation timestamp of the cluster. String in RFC3339 To work with values in this field, use the APIs described in the |
name |
string Name of the cluster. |
description |
string Description of the cluster. |
labels |
object (map<string, string>) Custom labels for the cluster as |
environment |
enum (Environment) Deployment environment of the MySQL cluster.
|
monitoring[] |
Monitoring systems data that is relevant to the cluster. |
config |
Configuration of the cluster. |
networkId |
string ID of the network that the cluster belongs to. |
health |
enum (Health) Aggregated health of the cluster.
|
status |
enum (Status) Current state of the cluster.
|
maintenanceWindow |
Maintenance window settings for the cluster. |
plannedOperation |
Planned maintenance operation to be started for the cluster within the nearest |
securityGroupIds[] |
string Effective list of security group IDs applied to the cluster. |
deletionProtection |
boolean This option prevents unintended deletion of the cluster. |
hostGroupIds[] |
string Host groups hosting VMs of the cluster. |
Monitoring
Cluster-related monitoring system data.
Field |
Description |
name |
string Name of the monitoring system. |
description |
string Description of the monitoring system. |
link |
string Link to the monitoring system charts for the cluster. |
ClusterConfig
Field |
Description |
version |
string Version of MySQL used in the cluster. |
mysqlConfig_5_7 |
Configuration of a MySQL 5.7 server. Includes only one of the fields Cluster-wide MySQL configuration. |
mysqlConfig_8_0 |
Configuration of a MySQL 8.0 server. Includes only one of the fields Cluster-wide MySQL configuration. |
resources |
Resource preset for the cluster hosts. |
backupWindowStart |
Time to start the daily backup, in the UTC timezone. |
access |
Access policy for external services. |
performanceDiagnostics |
Configuration of the performance diagnostics service. |
backupRetainPeriodDays |
string (int64) Retention policy of automated backups. |
MysqlConfigSet5_7
Field |
Description |
effectiveConfig |
Effective settings for a MySQL 5.7 cluster (a combination of settings defined |
userConfig |
User-defined settings for a MySQL 5.7 cluster. |
defaultConfig |
Default configuration for a MySQL 5.7 cluster. |
MysqlConfig5_7
Options and structure of MysqlConfig5_7
reflects MySQL 5.7 configuration file.
Field |
Description |
innodbBufferPoolSize |
string (int64) Size of the InnoDB buffer pool used for caching table and index data. See MySQL documentation |
maxConnections |
string (int64) The maximum permitted number of simultaneous client connections. See MySQL documentation |
longQueryTime |
number (double) Time that it takes to process a query before it is considered slow. See MySQL documentation |
generalLog |
boolean Enable writing of general query log of MySQL. See MySQL documentation |
auditLog |
boolean Enable writing of audit log of MySQL. See MySQL documentation |
sqlMode[] |
enum (SQLMode) Server SQL mode of MySQL. See MySQL documentation
|
maxAllowedPacket |
string (int64) The maximum size in bytes of one packet. See MySQL documentation |
defaultAuthenticationPlugin |
enum (AuthPlugin) Authentication plugin used in the managed MySQL cluster. See MySQL documentation
|
innodbFlushLogAtTrxCommit |
string (int64) Transaction log flush behaviour. See MySQL documentation |
innodbLockWaitTimeout |
string (int64) Max time in seconds for a transaction to wait for a row lock. See MySQL documentation |
transactionIsolation |
enum (TransactionIsolation) Default transaction isolation level. See MySQL documentation
|
innodbPrintAllDeadlocks |
boolean Print information about deadlocks in error log. See MySQL documentation |
netReadTimeout |
string (int64) The number of seconds to wait for more data from a connection before aborting the read. See MySQL documentation |
netWriteTimeout |
string (int64) The number of seconds to wait for a block to be written to a connection before aborting the write. See MySQL documentation |
groupConcatMaxLen |
string (int64) The maximum permitted result length in bytes for the GROUP_CONCAT() function. See MySQL documentation |
tmpTableSize |
string (int64) The maximum size of internal in-memory temporary tables. See MySQL documentation |
maxHeapTableSize |
string (int64) This variable sets the maximum size to which user-created MEMORY tables are permitted to grow. See MySQL documentation |
defaultTimeZone |
string The servers default time zone. See MySQL documentation |
characterSetServer |
string The servers default character set. See MySQL documentation |
collationServer |
string The server default collation. See MySQL documentation |
innodbAdaptiveHashIndex |
boolean Enables InnoDB adaptive hash index. See MySQL documentation |
innodbNumaInterleave |
boolean Enables the NUMA interleave memory policy for allocation of the InnoDB buffer pool. See MySQL documentation |
innodbLogBufferSize |
string (int64) The size in bytes of the buffer that InnoDB uses to write to the log files on disk. See MySQL documentation |
innodbLogFileSize |
string (int64) The size in bytes of the single InnoDB Redo log file. See MySQL documentation |
innodbIoCapacity |
string (int64) Limits IO available for InnoDB background tasks. See MySQL documentation |
innodbIoCapacityMax |
string (int64) Limits IO available for InnoDB background tasks. See MySQL documentation |
innodbReadIoThreads |
string (int64) The number of I/O threads for read operations in InnoDB. See MySQL documentation |
innodbWriteIoThreads |
string (int64) The number of I/O threads for write operations in InnoDB. See MySQL documentation |
innodbPurgeThreads |
string (int64) The number of background threads devoted to the InnoDB purge operation. See MySQL documentation |
innodbThreadConcurrency |
string (int64) Defines the maximum number of threads permitted inside of InnoDB. See MySQL documentation |
innodbTempDataFileMaxSize |
string (int64) Limits the max size of InnoDB temp tablespace. See MySQL documentation |
threadCacheSize |
string (int64) A number of threads the server should cache for reuse. See MySQL documentation |
threadStack |
string (int64) The stack size for each thread. The default is large enough for normal operation. See MySQL documentation |
joinBufferSize |
string (int64) The minimum size of the buffer that is used for plain index scans, range index scans, and joins that do not use indexes and thus perform full table scans. See MySQL documentation |
sortBufferSize |
string (int64) Each session that must perform a sort allocates a buffer of this size. See MySQL documentation |
tableDefinitionCache |
string (int64) The number of table definitions that can be stored in the definition cache. See MySQL documentation |
tableOpenCache |
string (int64) The number of open tables for all threads. See MySQL documentation |
tableOpenCacheInstances |
string (int64) The number of open tables cache instances. See MySQL documentation |
explicitDefaultsForTimestamp |
boolean Determines whether the server enables certain nonstandard behaviors for default values and NULL-value handling in TIMESTAMP columns. See MySQL documentation |
autoIncrementIncrement |
string (int64) Can be used to control the operation of AUTO_INCREMENT columns. See MySQL documentation |
autoIncrementOffset |
string (int64) Can be used to control the operation of AUTO_INCREMENT columns. See MySQL documentation |
syncBinlog |
string (int64) Controls how often the MySQL server synchronizes the binary log to disk. See MySQL documentation |
binlogCacheSize |
string (int64) The size of the cache to hold changes to the binary log during a transaction. See MySQL documentation |
binlogGroupCommitSyncDelay |
string (int64) Controls how many microseconds the binary log commit waits before synchronizing the binary log file to disk. See MySQL documentation for the variable |
binlogRowImage |
enum (BinlogRowImage) For MySQL row-based replication, this variable determines how row images are written to the binary log. See MySQL documentation
|
binlogRowsQueryLogEvents |
boolean When enabled, it causes the server to write informational log events such as row query log events into its binary log. See MySQL documentation |
rplSemiSyncMasterWaitForSlaveCount |
string (int64) The number of replica acknowledgments the source must receive per transaction before proceeding. See MySQL documentation |
slaveParallelType |
enum (SlaveParallelType) When using a multi-threaded replica, this variable specifies the policy used to decide which transactions are allowed to execute in parallel on the replica. See MySQL documentation
|
slaveParallelWorkers |
string (int64) Sets the number of applier threads for executing replication transactions in parallel. See MySQL documentation |
mdbPreserveBinlogBytes |
string (int64) The size of the binary log to hold. |
interactiveTimeout |
string (int64) The number of seconds the server waits for activity on an interactive connection before closing it. See MySQL documentation |
waitTimeout |
string (int64) The number of seconds the server waits for activity on a noninteractive connection before closing it. See MySQL documentation |
mdbOfflineModeEnableLag |
string (int64) Replication lag threshold (seconds) which will switch MySQL to 'offline_mode = ON' to prevent users from reading stale data. |
mdbOfflineModeDisableLag |
string (int64) Replication lag threshold (seconds) which will switch MySQL to 'offline_mode = OFF'. |
rangeOptimizerMaxMemSize |
string (int64) The limit on memory consumption for the range optimizer. See MySQL documentation |
slowQueryLog |
boolean Manages slow query log. See MySQL documentation |
slowQueryLogAlwaysWriteTime |
number (double) Query execution time, after which query to be logged unconditionally, that is, `log_slow_rate_limit`` will not apply to it. See Percona documentation |
logSlowRateType |
enum (LogSlowRateType) Specifies slow log granularity for See Percona documentation
|
logSlowRateLimit |
string (int64) Specifies what fraction of session/query should be logged. Logging is enabled for every nth session/query. See Percona documentation |
logSlowSpStatements |
boolean When TRUE, statements executed by stored procedures are logged to the slow log. See Percona documentation |
logSlowFilter[] |
enum (LogSlowFilterType) Filters the slow log by the query's execution plan. See Percona documentation
|
mdbPriorityChoiceMaxLag |
string (int64) Replication lag threshold (seconds) which allows replica to be promoted to master while executing "switchover from". |
innodbPageSize |
string (int64) Specifies the page size for InnoDB tablespaces. For details, see MySQL documentation for the variable |
innodbOnlineAlterLogMaxSize |
string (int64) The limit in bytes on the size of the temporary log files used during online DDL operations For details, see MySQL documentation for the variable |
innodbFtMinTokenSize |
string (int64) Minimum length of words that are stored in an InnoDB FULLTEXT index For details, see MySQL documentation for the variable |
innodbFtMaxTokenSize |
string (int64) Maximum length of words that are stored in an InnoDB FULLTEXT index For details, see MySQL documentation for the variable |
lowerCaseTableNames |
string (int64) Table names storage and comparison strategy For details, see MySQL documentation for the variable |
showCompatibility_56 |
boolean Manages MySQL 5.6 compatibility For details, see MySQL documentation for the variable |
maxSpRecursionDepth |
string (int64) The number of times that any given stored procedure may be called recursively. For details, see MySQL documentation for the variable |
innodbCompressionLevel |
string (int64) The level of zlib compression to use for InnoDB compressed tables and indexes. For details, see MySQL documentation for the variable |
binlogTransactionDependencyTracking |
enum (BinlogTransactionDependencyTracking) Specifies how the source mysqld generates the dependency information that it writes in the binary log to help replicas determine which transactions can be executed in parallel. For details, see MySQL documentation for the variable
|
autocommit |
boolean Config specific will be all changes to a table take effect immediately or you must use COMMIT to accept a transaction or ROLLBACK to cancel it. For details, see MySQL documentation for the variable |
innodbStatusOutput |
boolean Enables or disables periodic output for the standard InnoDB Monitor. For details, see MySQL documentation for the variable |
innodbStrictMode |
boolean When innodb_strict_mode is enabled, InnoDB returns errors rather than warnings when checking for invalid or incompatible table options. For details, see MySQL documentation for the variable |
innodbPrintLockWaitTimeoutInfo |
boolean Makes InnoDB to write information about all lock wait timeout errors into the log file. For details, see Percona documentation for the variable |
logErrorVerbosity |
string (int64) System variable specifies the verbosity for handling events intended for the error log For details, see MySQL documentation for the variable |
maxDigestLength |
string (int64) The maximum number of bytes of memory reserved per session for computation of normalized statement digests. For details, see MySQL documentation for the variable |
queryCacheLimit |
string (int64) Do not cache results that are larger than this number of bytes. For details, see MySQL documentation for the variable |
queryCacheSize |
string (int64) The amount of memory allocated for caching query results. For details, see MySQL documentation for the variable |
queryCacheType |
string (int64) Set the query cache type. For details, see MySQL documentation for the variable |
lockWaitTimeout |
string (int64) This variable specifies the timeout in seconds for attempts to acquire metadata locks For details, see MySQL documentation for the variable |
maxPreparedStmtCount |
string (int64) This variable limits the total number of prepared statements in the server. For details, see MySQL documentation for the variable |
optimizerSwitch |
string The system variable enables control over optimizer behavior. For details, see MySQL documentation for the variable |
optimizerSearchDepth |
string (int64) The maximum depth of search performed by the query optimizer For details, see MySQL documentation for the variable |
queryResponseTimeStats |
boolean Enables and disables collection of query times For details, see Percona documentation for the variable |
userstat |
boolean Enables or disables collection of statistics For details, see Percona documentation for the variable |
maxExecutionTime |
string (int64) The execution timeout for SELECT statements, in milliseconds. If the value is 0, timeouts are not enabled. For details, see MySQL documentation for the variable |
MysqlConfigSet8_0
Field |
Description |
effectiveConfig |
Effective settings for a MySQL 8.0 cluster (a combination of settings defined |
userConfig |
User-defined settings for a MySQL 8.0 cluster. |
defaultConfig |
Default configuration for a MySQL 8.0 cluster. |
MysqlConfig8_0
Options and structure of MysqlConfig8_0
reflects MySQL 8.0 configuration file.
Field |
Description |
innodbBufferPoolSize |
string (int64) Size of the InnoDB buffer pool used for caching table and index data. See MySQL documentation |
maxConnections |
string (int64) The maximum permitted number of simultaneous client connections. See MySQL documentation |
longQueryTime |
number (double) Time that it takes to process a query before it is considered slow. See MySQL documentation |
generalLog |
boolean Enable writing of general query log of MySQL. See MySQL documentation |
auditLog |
boolean Enable writing of audit log of MySQL. See MySQL documentation |
sqlMode[] |
enum (SQLMode) Server SQL mode of MySQL. See MySQL documentation
|
maxAllowedPacket |
string (int64) The maximum size in bytes of one packet. See MySQL documentation |
defaultAuthenticationPlugin |
enum (AuthPlugin) Authentication plugin used in the managed MySQL cluster. See MySQL documentation
|
innodbFlushLogAtTrxCommit |
string (int64) Transaction log flush behaviour. See MySQL documentation |
innodbLockWaitTimeout |
string (int64) Max time in seconds for a transaction to wait for a row lock. See MySQL documentation |
transactionIsolation |
enum (TransactionIsolation) Default transaction isolation level. See MySQL documentation
|
innodbPrintAllDeadlocks |
boolean Print information about deadlocks in error log. See MySQL documentation |
netReadTimeout |
string (int64) The number of seconds to wait for more data from a connection before aborting the read. See MySQL documentation |
netWriteTimeout |
string (int64) The number of seconds to wait for a block to be written to a connection before aborting the write. See MySQL documentation |
groupConcatMaxLen |
string (int64) The maximum permitted result length in bytes for the GROUP_CONCAT() function. See MySQL documentation |
tmpTableSize |
string (int64) The maximum size of internal in-memory temporary tables. See MySQL documentation |
maxHeapTableSize |
string (int64) This variable sets the maximum size to which user-created MEMORY tables are permitted to grow. See MySQL documentation |
defaultTimeZone |
string The servers default time zone. See MySQL documentation |
characterSetServer |
string The servers default character set. See MySQL documentation |
collationServer |
string The server default collation. See MySQL documentation |
innodbAdaptiveHashIndex |
boolean Enables InnoDB adaptive hash index. See MySQL documentation |
innodbNumaInterleave |
boolean Enables the NUMA interleave memory policy for allocation of the InnoDB buffer pool. See MySQL documentation |
innodbLogBufferSize |
string (int64) The size in bytes of the buffer that InnoDB uses to write to the log files on disk. See MySQL documentation |
innodbLogFileSize |
string (int64) The size in bytes of the single InnoDB Redo log file. See MySQL documentation |
innodbIoCapacity |
string (int64) Limits IO available for InnoDB background tasks. See MySQL documentation |
innodbIoCapacityMax |
string (int64) Limits IO available for InnoDB background tasks. See MySQL documentation |
innodbReadIoThreads |
string (int64) The number of I/O threads for read operations in InnoDB. See MySQL documentation |
innodbWriteIoThreads |
string (int64) The number of I/O threads for write operations in InnoDB. See MySQL documentation |
innodbPurgeThreads |
string (int64) The number of background threads devoted to the InnoDB purge operation. See MySQL documentation |
innodbThreadConcurrency |
string (int64) Defines the maximum number of threads permitted inside of InnoDB. See MySQL documentation |
innodbTempDataFileMaxSize |
string (int64) Limits the max size of InnoDB temp tablespace. See MySQL documentation |
threadCacheSize |
string (int64) How many threads the server should cache for reuse. See MySQL documentation |
threadStack |
string (int64) The stack size for each thread. The default is large enough for normal operation. See MySQL documentation |
joinBufferSize |
string (int64) The minimum size of the buffer that is used for plain index scans, range index scans, and joins that do not use indexes and thus perform full table scans. See MySQL documentation |
sortBufferSize |
string (int64) Each session that must perform a sort allocates a buffer of this size. See MySQL documentation |
tableDefinitionCache |
string (int64) The number of table definitions that can be stored in the definition cache. See MySQL documentation |
tableOpenCache |
string (int64) The number of open tables for all threads. See MySQL documentation |
tableOpenCacheInstances |
string (int64) The number of open tables cache instances. See MySQL documentation |
explicitDefaultsForTimestamp |
boolean Determines whether the server enables certain nonstandard behaviors for default values and NULL-value handling in TIMESTAMP columns. See MySQL documentation |
autoIncrementIncrement |
string (int64) Can be used to control the operation of AUTO_INCREMENT columns. See MySQL documentation |
autoIncrementOffset |
string (int64) Can be used to control the operation of AUTO_INCREMENT columns. See MySQL documentation |
syncBinlog |
string (int64) Controls how often the MySQL server synchronizes the binary log to disk. See MySQL documentation |
binlogCacheSize |
string (int64) The size of the cache to hold changes to the binary log during a transaction. See MySQL documentation |
binlogGroupCommitSyncDelay |
string (int64) Controls how many microseconds the binary log commit waits before synchronizing the binary log file to disk. See MySQL documentation |
binlogRowImage |
enum (BinlogRowImage) For MySQL row-based replication, this variable determines how row images are written to the binary log. See MySQL documentation
|
binlogRowsQueryLogEvents |
boolean When enabled, it causes the server to write informational log events such as row query log events into its binary log. See MySQL documentation |
rplSemiSyncMasterWaitForSlaveCount |
string (int64) The number of replica acknowledgments the source must receive per transaction before proceeding. See MySQL documentation |
slaveParallelType |
enum (SlaveParallelType) When using a multi-threaded replica, this variable specifies the policy used to decide which transactions are allowed to execute in parallel on the replica. See MySQL documentation
|
slaveParallelWorkers |
string (int64) Sets the number of applier threads for executing replication transactions in parallel. See MySQL documentation |
regexpTimeLimit |
string (int64) The time limit for regular expression matching operations performed by REGEXP_LIKE and similar functions. See MySQL documentation |
mdbPreserveBinlogBytes |
string (int64) The size of the binary log to hold. |
interactiveTimeout |
string (int64) The number of seconds the server waits for activity on an interactive connection before closing it. See MySQL documentation |
waitTimeout |
string (int64) The number of seconds the server waits for activity on a noninteractive connection before closing it. See MySQL documentation |
mdbOfflineModeEnableLag |
string (int64) Replication lag threshold (seconds) which will switch MySQL to 'offline_mode = ON' to prevent users from reading stale data. |
mdbOfflineModeDisableLag |
string (int64) Replication lag threshold (seconds) which will switch MySQL to 'offline_mode = OFF'. |
rangeOptimizerMaxMemSize |
string (int64) The limit on memory consumption for the range optimizer. See MySQL documentation |
slowQueryLog |
boolean Manages slow query log. See MySQL documentation |
slowQueryLogAlwaysWriteTime |
number (double) Query execution time, after which query to be logged unconditionally, that is, See Percona documentation |
logSlowRateType |
enum (LogSlowRateType) Specifies slow log granularity for See Percona documentation
|
logSlowRateLimit |
string (int64) Specifies what fraction of session/query should be logged. Logging is enabled for every nth session/query. See Percona documentation |
logSlowSpStatements |
boolean When TRUE, statements executed by stored procedures are logged to the slow log. See Percona documentation |
logSlowFilter[] |
enum (LogSlowFilterType) Filters the slow log by the query's execution plan. See Percona documentation
|
mdbPriorityChoiceMaxLag |
string (int64) Replication lag threshold (seconds) which allows replica to be promoted to master while executing "switchover from". |
innodbPageSize |
string (int64) Specifies the page size for InnoDB tablespaces. For details, see MySQL documentation for the variable |
innodbOnlineAlterLogMaxSize |
string (int64) The limit in bytes on the size of the temporary log files used during online DDL operations See MySQL documentation for the variable |
innodbFtMinTokenSize |
string (int64) Minimum length of words that are stored in an InnoDB FULLTEXT index See MySQL documentation for the variable |
innodbFtMaxTokenSize |
string (int64) Maximum length of words that are stored in an InnoDB FULLTEXT index See MySQL documentation for the variable |
lowerCaseTableNames |
string (int64) Table names storage and comparison strategy See MySQL documentation for the variable |
maxSpRecursionDepth |
string (int64) The number of times that any given stored procedure may be called recursively. For details, see MySQL documentation for the variable |
innodbCompressionLevel |
string (int64) The level of zlib compression to use for InnoDB compressed tables and indexes. For details, see MySQL documentation for the variable |
binlogTransactionDependencyTracking |
enum (BinlogTransactionDependencyTracking) Specifies how the source mysqld generates the dependency information that it writes in the binary log to help replicas determine which transactions can be executed in parallel. For details, see MySQL documentation for the variable
|
autocommit |
boolean Config specific will be all changes to a table take effect immediately or you must use COMMIT to accept a transaction or ROLLBACK to cancel it. For details, see MySQL documentation for the variable |
innodbStatusOutput |
boolean Enables or disables periodic output for the standard InnoDB Monitor. For details, see MySQL documentation for the variable |
innodbStrictMode |
boolean When innodb_strict_mode is enabled, InnoDB returns errors rather than warnings when checking for invalid or incompatible table options. For details, see MySQL documentation for the variable |
innodbPrintLockWaitTimeoutInfo |
boolean Makes InnoDB to write information about all lock wait timeout errors into the log file. For details, see Percona documentation for the variable |
logErrorVerbosity |
string (int64) System variable specifies the verbosity for handling events intended for the error log For details, see MySQL documentation for the variable |
maxDigestLength |
string (int64) The maximum number of bytes of memory reserved per session for computation of normalized statement digests. For details, see MySQL documentation for the variable |
lockWaitTimeout |
string (int64) This variable specifies the timeout in seconds for attempts to acquire metadata locks For details, see MySQL documentation for the variable |
maxPreparedStmtCount |
string (int64) This variable limits the total number of prepared statements in the server. For details, see MySQL documentation for the variable |
optimizerSwitch |
string The system variable enables control over optimizer behavior. For details, see MySQL documentation for the variable |
optimizerSearchDepth |
string (int64) The maximum depth of search performed by the query optimizer For details, see MySQL documentation for the variable |
userstat |
boolean Enables or disables collection of statistics For details, see Percona documentation for the variable |
maxExecutionTime |
string (int64) The execution timeout for SELECT statements, in milliseconds. If the value is 0, timeouts are not enabled. For details, see MySQL documentation for the variable |
Resources
Cluster resource preset.
Field |
Description |
resourcePresetId |
string ID of the resource preset that defines available computational resources (vCPU, RAM, etc.) for a cluster host. All available presets are listed in the documentation. |
diskSize |
string (int64) Volume of the storage (for each cluster host, in bytes). |
diskTypeId |
string Type of the storage. Possible values:
See the documentation for details. |
TimeOfDay
Represents a time of day. The date and time zone are either not significant
or are specified elsewhere. An API may choose to allow leap seconds. Related
types are google.type.Date
Field |
Description |
hours |
integer (int32) Hours of day in 24 hour format. Should be from 0 to 23. An API may choose |
minutes |
integer (int32) Minutes of hour of day. Must be from 0 to 59. |
seconds |
integer (int32) Seconds of minutes of the time. Must normally be from 0 to 59. An API may |
nanos |
integer (int32) Fractions of seconds in nanoseconds. Must be from 0 to 999,999,999. |
Access
Field |
Description |
dataLens |
boolean Allows access from DataLens. See the documentation for details. |
webSql |
boolean Allows SQL queries to the cluster databases from management console. See the documentation for details. |
dataTransfer |
boolean Allow access for DataTransfer. |
PerformanceDiagnostics
Field |
Description |
enabled |
boolean Flag that shows if performance statistics gathering is enabled for the cluster. |
sessionsSamplingInterval |
string (int64) Interval (in seconds) for |
statementsSamplingInterval |
string (int64) Interval (in seconds) for |
MaintenanceWindow
Configuration of a maintenance window in a MySQL cluster.
Field |
Description |
anytime |
object Maintenance operation can be scheduled anytime. Includes only one of the fields The maintenance policy in effect. |
weeklyMaintenanceWindow |
Maintenance operation can be scheduled on a weekly basis. Includes only one of the fields The maintenance policy in effect. |
WeeklyMaintenanceWindow
Weelky maintenance window settings.
Field |
Description |
day |
enum (WeekDay) Day of the week (in
|
hour |
string (int64) Hour of the day in UTC (in |
MaintenanceOperation
A planned maintenance operation.
Field |
Description |
info |
string Information about this maintenance operation. |
delayedUntil |
string (date-time) Time until which this maintenance operation is delayed. String in RFC3339 To work with values in this field, use the APIs described in the |