For AI agents: the complete documentation index is available at https://docs.ovhcloud.com/pt/llms.txt, the full documentation bundle is available at https://docs.ovhcloud.com/pt/llms-full.txt, and this page is available as Markdown at https://docs.ovhcloud.com/pt/guides/storage-and-backup/object-storage/pcs-create-container.md.
Ir para o conteúdo

Object Storage Swift - Getting started

Ver como Markdown

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

Depending on the tool you plan to use:


OVHcloud Console Access

  • Direct link:
  • Navigation path: Public Cloud > Select your project > Storage > Object Storage

Instructions

Preparation

OVHcloud Console
OVHcloud CLI
Swift S3 API
Swift client

In the left-hand menu of your Public Cloud project, click Object Storage under Storage.

Create a container

Info

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)
OVHcloud Console
OVHcloud CLI
Swift S3 API
Swift client

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.
Warning

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

OVHcloud Console
OVHcloud CLI
Swift S3 API
Swift client

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

OVHcloud Console
OVHcloud CLI
Swift S3 API
Swift client

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

OVHcloud Console
OVHcloud CLI
Swift S3 API
Swift client

Click the name of your container, then open its Objects tab to view its objects.

Download objects

OVHcloud Console
OVHcloud CLI
Swift S3 API
Swift client

In the Objects tab of your container, click the Download icon on the object row.

Delete objects and containers

OVHcloud Console
OVHcloud CLI
Swift S3 API
Swift client

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.

Esta página foi útil?