Path parameters
-
name string Required
Body Required
-
maintenance object
Automatic maintenance settings
-
plan string
Subscription plan
Minimum length is
1
, maximum length is128
. -
termination-protection boolean
Service is protected against termination and powering off
-
ip-filter array[string]
Allow incoming connections from CIDR address block, e.g. '10.20.0.0/16'
-
mysql-settings object
MySQL-specific settings
-
migration object
Migrate data from existing server
-
binlog-retention-period integer(int64)
The minimum amount of time in seconds to keep binlog entries before deletion. This may be extended for services that require binlog entries for longer than the default for example if using the MySQL Debezium Kafka connector.
Minimum value is
600
, maximum value is86400
. -
backup-schedule object
PUT /dbaas-mysql/{name}
curl \
-X PUT https://api-ch-gva-2.exoscale.com/v2/dbaas-mysql/{name} \
-H "Content-Type: application/json" \
-d '{"maintenance":{"dow":"saturday","time":"string"},"plan":"string","termination-protection":true,"ip-filter":["string"],"mysql-settings":{},"migration":{"host":"string","port":42,"password":"string","ssl":true,"username":"string","dbname":"string","ignore-dbs":"string","method":"dump"},"binlog-retention-period":42,"backup-schedule":{"backup-hour":42,"backup-minute":42}}'
Request example
{
"maintenance": {
"dow": "saturday",
"time": "string"
},
"plan": "string",
"termination-protection": true,
"ip-filter": [
"string"
],
"mysql-settings": {},
"migration": {
"host": "string",
"port": 42,
"password": "string",
"ssl": true,
"username": "string",
"dbname": "string",
"ignore-dbs": "string",
"method": "dump"
},
"binlog-retention-period": 42,
"backup-schedule": {
"backup-hour": 42,
"backup-minute": 42
}
}
Response example (200)
{
"id": "string",
"reason": "incorrect",
"reference": {
"id": "string",
"link": "string",
"command": "string"
},
"message": "string",
"state": "failure"
}