Database operations
Restart, redeploy, rebuild, resize and rotate credentials on an existing database.
Mutations on a database that already exists, gated by the Databases
capabilities (configure_databases, control_databases), see
Authorization.
restartDatabaserestarts the container without changing its image or configuration.redeployDatabasere-applies its current configuration, the database equivalent of an app redeploy.rebuildDatabaserebuilds the container from scratch, use it when a configuration change needs a fresh container rather than a restart.updateDatabaseResourceschanges its CPU, memory and disk limits.updateDatabaseImagemoves it to a different image or version.rotateDatabasePasswordissues new credentials.
rotateDatabasePassword returns the connection string, not the entity
Unlike the other mutations here, which return the updated Database, this
one returns a String: the new connection string, shown once. Anything
still using the old credentials loses its connection the moment this
call succeeds.
See also
Did this page help you?