Vultr Managed Databases for PostgreSQL is a highly available and scalable relational database that supports modern features like vectors, JSON, and geometric data types. PostgreSQL integrates well with modern programming languages like Python and Go, making it an ideal choice for developing web applications and application programming interfaces (APIs). PostgreSQL databases are available in major global Vultr locations and you can choose from CPU-optimized, memory-optimized, and general-purpose server types.
Follow this guide to provision Vultr Managed Databases for PostgreSQL using the Vultr Customer Portal, API, and CLI.
Navigate to Products and select Databases.
Click Add Managed Database.
Choose PostgreSQL as the database engine and select a version.
Select the Server Type, Plan, and Number of Replica Nodes.
Choose a server location.
Select a VPC Network.
Enter a database label, review the monthly and hourly cost estimates, and click Deploy Now.
Send a GET
request to the List Managed Database Plans endpoint to view all available plans.
$ curl "https://api.vultr.com/v2/databases/plans" \
-X GET \
-H "Authorization: Bearer ${VULTR_API_KEY}"
Send a POST
request to the Create Database endpoint to create a new database instance.
$ curl "https://api.vultr.com/v2/databases" \
-X POST \
-H "Authorization: Bearer ${VULTR_API_KEY}" \
-H "Content-Type: application/json" \
--data '{
"database_engine" : "pg",
"database_engine_version" : "16",
"plan" : "vultr-dbaas-startup-cc-1-55-2",
"region" : "jnb",
"label" : "Remote-PostgreSQL-Db"
}'
Visit the Create Database endpoint to view additional attributes to add to your request.
Send a GET
request to the List Managed Databases endpoint to list all database instances.
$ curl "https://api.vultr.com/v2/databases" \
-X GET \
-H "Authorization: Bearer ${VULTR_API_KEY}" \
-H "Content-Type: application/json"
List the available database plans.
$ vultr-cli database plan list
Create a new PostgreSQL database instance.
$ vultr-cli database create \
--database-engine pg \
--database-engine-version 15 \
--plan vultr-dbaas-startup-cc-1-55-2 \
--region jnb \
--vpc-id 24ab6b57-845b-4354-a243-9bcafb4bd505 \
--label Remote-PostgreSQL-Db
List all database instances.
$ vultr-cli database list
Run vultr-cli database create --help
to view all options.