At OVHcloud, we know how important data is to our customers. By utilizing our object storage powered by OpenStack Swift, you will have triple replication of your data, making it safe and secure. Having the flexibility to store your data statically, privately, publicly, or offline will assist you in meeting any of your professional or personal needs. In this article, we will be going over how to add these options to your account.
Topics
Adding Object Storage from the OVHcloud Control Panel
Let's begin by logging into the OVHcloud Control Panel. From here, click Public Cloud on the top of the page. Click the > on the top-left sidebar to select your project. Then, select Object Storage on the left-hand sidebar. If you have no Object Storage containers, it will look like this:
From this screen, click the Create an object container button. This will take you to a new funnel. Select the region in which you wish to provision the container. Select the box labeled Standard Object Storage - Swift API.
Next, select the region in which you would like to deploy the container.
Then select the type of container you wish to create.
The different types of containers are:
- Static hosting - used to share images and video with visitors to a website
- Private - store confidential information such as billing, legal information, and more
- Public - store files that are publicly accessible to users
Finally, give your container a name.
Click Create the container when you have confirmed the options you have selected are correct. This will create your new object container.
In the next section, we will be going over how to add object storage via the OVHcloud API.
Adding Object Storage from the OVHcloud API
To begin, click the Explore the OVHcloud API button and log in on the top-right of the next page. To add a container, we will have to get our project ID. From the API, select the Cloud section.
Under the "Cloud" section, to get our project ID, select the List available services button and then click the Execute button.
NOTE: If you have multiple projects, use the "Get this objects properties" call to interact with the correct project ID.
Now that we have our project ID, we will be able to create a storage container. To create the storage container, fill in the required information, click the Create container button, and then click the Execute button.
By default, this will create a private storage container. Clicking the archive checkbox will create a Public Cloud Archive also known as cold storage. In order to make the storage container public or static, we will have to perform an additional step.
Using our serviceName and the containerId that we got from our previous POST
command, we are able to update our container to be either public or static. To do so, we need to use the following PUT
command: /cloud/project/(serviceName)/storage/{containerId}. After selecting this command, change the containerType to your desired storage type and click the Execute button.
You have successfully created a new container through the OVHcloud API.
Conclusion
Having the ability to store your data in a flexible capacity is a must-have in today's agile business world. By having it be accessible statically, privately, publicly, or offline, OVHcloud gives you the flexibility to meet any of your clients' or business' needs. Having read this guide, you should be able to confidently add containers to your public cloud projects.