Getting started with Public Cloud Databases via API
Find out how to order and manage your Public Cloud managed database service using the OVHcloud API
Find out how to order and manage your Public Cloud managed database service using the OVHcloud API
Last updated September 3rd, 2021
Public Cloud managed databases allow you to focus on building and deploying cloud applications while OVHcloud takes care of the database infrastructure and maintenance.
This guide explains how to order a MongoDB instance of a Public Cloud managed database service using the OVHcloud API.
In order to create a database service, you will need to specify at minimum:
The capabilities endpoint lists the allowed values for the engine, plan, and flavor the service knows about.
The call returns an object listing allowed values for:
The availability endpoint lists what combination of parameters the service allows. For example, a MongoDB Essential
plan currently allows clusters with a single node, whereas Business
services allow clusters of 3 to 8 nodes. You should decide what set of parameters among that list best fit your needs.
The call returns an array listing the available set of parameters. Each entry in this array lists (among other data): an engine, a version, a plan, a flavor, a region, if it supports public or private networking, a minimum number of nodes and a maximum number of nodes.
By creating a cluster, you will be billed accordingly.
Use this endpoint to create a new database cluster:
If you want to use public networking, you're all set. If you want to use private networking, you'll also want to specify:
The call returns an object describing the cluster you asked for. Initially, its status property will be CREATING
. Take note of the id property of the newly-created cluster for the next step.
The cluster will take a few minutes to become fully usable. You can check its status using:
The call returns an object describing the cluster. Its status property will transition to READY
when the cluster becomes available.
For security reasons the default network configuration doesn't allow any incoming connections. It is thus critical you authorize the suitable IP addresses in order to successfully access your database.
Declare the IP address blocks allowed to connect to your cluster with:
aaa.bbb.ccc.ddd/xy
-- If you want to specify a single IP address, use aaa.bbb.ccc.ddd/32
You can add multiple allowed IP blocks.
At this point you don't know your cluster primary user's password. List your cluster's users with:
Note the id of your admin user. Reset its password with:
Note the new password of the user to later be able to connect to the cluster.
That password won't ever be available later on: OVHcloud never stores users' passwords.
You’ll find the cluster connection information in your Control Panel; you can now start using the cluster!
Managing a MongoDB service from the OVHcloud Control Panel
Configuring vRack for Public Cloud
Visit our dedicated Discord channel: https://discord.gg/ovhcloud. Ask questions, provide feedback and interact directly with the team that builds our databases services.
Join our community of users on https://community.ovh.com/en/.
Please feel free to give any suggestions in order to improve this documentation.
Whether your feedback is about images, content, or structure, please share it, so that we can improve it together.
Your support requests will not be processed via this form. To do this, please use the "Create a ticket" form.
Thank you. Your feedback has been received.
Access your community space. Ask questions, search for information, post content, and interact with other OVHcloud Community members.
Discuss with the OVHcloud community