Skip to main content
Databases are managed services provided by Square Cloud that allow you to store and manage data for your applications. Supported databases include Redis, MongoDB, MySQL, and PostgreSQL.

Creating a database

client.create_database returns a Database object.

Retrieving database information

client.get_database_info returns a DatabaseInfo object.

Getting database status

client.get_database_status returns a StatusData object.

Listing all databases

client.all_databases_status returns a list of ResumedStatus objects.

Starting a database

client.start_database returns a Response object.

Stopping a database

client.stop_database returns a Response object.

Editing a database

client.edit_database returns a Response object. You can update the database name and/or memory allocation.

Deleting a database

client.delete_database returns a Response object.

Managing database credentials

Getting the database certificate

client.get_database_certificate returns a Certificate object.

Resetting database password

client.reset_database_password returns a new password string.

Resetting database certificate

client.reset_database_certificate returns a Response object.

Database data structures

Database

The Database object represents a newly created database with full details:

DatabaseInfo

The DatabaseInfo object contains information about an existing database:

StatusData

The StatusData object contains real-time status information about a database:

Supported database types

Square Cloud supports the following databases: