Overview
The MySQL API allows you to create, manage, deploy, and monitor MySQL database instances. MySQL databases run as Docker containers with support for automated backups, external port configuration, and resource management.Create MySQL Database
Request Body
Display name for the MySQL database
Unique application name used for Docker container naming (minimum 1 character)
Name of the MySQL database to create
Username for database authentication
Password for the database user. Must match pattern:
^[a-zA-Z0-9@#%^&*()_+\-=[\]{}|;:,.<>?~]*$`Root password for MySQL. Must match pattern:
^[a-zA-Z0-9@#%^&*()_+\-=[\]{}|;:,.<>?~]*$`ID of the environment where the database will be deployed
Docker image to use for MySQL (e.g., mysql:8, mysql:9)
Optional description for the database instance
ID of the server where the database should be deployed (required in cloud environments)
Get MySQL Database
Retrieve details about a specific MySQL database instance.Query Parameters
Unique identifier of the MySQL database
Deploy MySQL Database
Deploy or redeploy a MySQL database container.Request Body
ID of the MySQL database to deploy
Start MySQL Database
Start a stopped MySQL database container.Stop MySQL Database
Stop a running MySQL database container.Reload MySQL Database
Reload (restart) a MySQL database container.Request Body
ID of the MySQL database to reload
Application name of the MySQL database (minimum 1 character)
Update MySQL Database
Update MySQL database configuration, including credentials, resources, and Docker image.Request Body
ID of the MySQL database to update (minimum 1 character)
Updated display name (minimum 1 character)
Updated application name (minimum 1 character)
Updated database name (minimum 1 character)
Updated database username (minimum 1 character)
Updated database password
Updated root password
Updated Docker image version
Memory reservation (e.g., “512m”, “1g”)
Memory limit (e.g., “1g”, “2g”)
CPU reservation (e.g., “0.5”, “1.0”)
CPU limit (e.g., “1.0”, “2.0”)
Custom command to run in the container
Command line arguments for the MySQL server
External port to expose MySQL
Save Environment Variables
Update environment variables for the MySQL database container.Request Body
ID of the MySQL database
Environment variables in KEY=VALUE format, separated by newlines
Save External Port
Configure external port mapping for the MySQL database.Request Body
ID of the MySQL database
Port number to expose MySQL externally. Set to null to remove external port mapping.
Change Status
Manually update the application status of a MySQL database.Request Body
ID of the MySQL database
New status. Options:
idle, running, done, errorMove MySQL Database
Move a MySQL database to a different environment.Request Body
ID of the MySQL database to move
ID of the destination environment
Rebuild MySQL Database
Rebuild the MySQL database container from scratch.Request Body
ID of the MySQL database to rebuild
Remove MySQL Database
Delete a MySQL database and all associated resources, including backups and scheduled jobs.Request Body
ID of the MySQL database to remove
Backup Operations
For backup and restore operations, see the Backup API documentation.- Create automated backups:
backup.create - Manual backup:
backup.manualBackupMySql - Restore from backup:
backup.restoreBackupWithLogs