Deplo

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.

  • restartDatabase restarts the container without changing its image or configuration.
  • redeployDatabase re-applies its current configuration, the database equivalent of an app redeploy.
  • rebuildDatabase rebuilds the container from scratch, use it when a configuration change needs a fresh container rather than a restart.
  • updateDatabaseResources changes its CPU, memory and disk limits.
  • updateDatabaseImage moves it to a different image or version.
  • rotateDatabasePassword issues 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?

On this page