Object Storage Swift - Getting started
Find out how to create and manage your Swift Object Storage containers using the OVHcloud Console, the OVHcloud CLI, Swift S3 API, or python-swiftclient
Objective
The Object Storage Swift solution for Public Cloud offers unlimited storage with simple billing tailored to your needs. Containers can be configured for different use cases:
- Static hosting (static website)
- Private hosting (e.g. personal data storage)
- Public hosting (publicly accessible content)
- Cold storage (archiving)
This guide explains how to create and manage your Swift Object Storage containers.
Requirements
- A Public Cloud project in your OVHcloud account
Depending on the tool you plan to use:
- OVHcloud CLI: The OVHcloud CLI installed and configured
- Swift S31 API: An environment prepared for the OpenStack API with
python-openstackclientandawscliinstalled - Swift client: An environment prepared for the OpenStack API with
python-swiftclientinstalled
OVHcloud Console Access
- Direct link:
- Navigation path:
Public Cloud> Select your project >Storage>Object Storage
Instructions
Preparation
In the left-hand menu of your Public Cloud project, click Object Storage under Storage.
Create a container
When using the Swift S3 API, bucket names must follow these rules:
- Between 3 and 63 characters long
- Lowercase letters, numbers, periods, and dashes only
- Must start with a lowercase letter or number
- No underscores, no consecutive periods, no dashes adjacent to periods
- Not formatted as an IP address (e.g.
198.51.100.24)
In the Containers tab, click Create an object container.
Fill in the creation form:
- Container type: Select Swift API.
- Container name: Enter a name for your container.
- Region: Select the region where your container will be created.
- Container type: Choose the access type Private, Public, or Static hosting.
If you want to link your container to a domain name, the container name must not contain . or _, and must not use capital letters. See: Linking a container to a domain name.
Review the summary panel, then click Create.
List your containers
Click Object Storage under Storage in the left-hand menu of your Public Cloud project. Your containers are listed in the Containers tab; Swift containers show Swift in the Offer column.
Upload objects
In the Containers tab, click the name of your container, open its Objects tab, then click Add an object.
You can enter a Prefix, then drag and drop your files or click Browse files, and click Upload.
List objects in a container
Click the name of your container, then open its Objects tab to view its objects.
Download objects
In the Objects tab of your container, click the Download icon on the object row.
Delete objects and containers
Delete an object: In the Objects tab, click the Delete icon on the object row, then click Delete to confirm.
Delete a container: In the Containers tab, click the ... button on the container row, then select Delete. Type TERMINATE (EMPTY AND TERMINATE if the container still contains objects), then click Delete.
Go further
For training or technical assistance implementing our solutions, contact your sales representative or visit our Professional Services page to request a quote and have your project analysed by our experts.
Join our community of users.
1: S3 is a trademark of Amazon Technologies, Inc. OVHcloud's service is not sponsored by, endorsed by, or otherwise affiliated with Amazon Technologies, Inc.