For AI agents: the complete documentation index is available at https://docs.ovhcloud.com/de/llms.txt, the full documentation bundle is available at https://docs.ovhcloud.com/de/llms-full.txt, and this page is available as Markdown at https://docs.ovhcloud.com/de/guides/hosted-private-cloud/opcp/object-storage-cloud-console.md.
Zum Inhalt springen

Using Object Storage on OPCP

Als Markdown ansehen

Find out how to get S3 access keys, create buckets and upload objects with the Object Storage service in the OPCP Cloud Console and with the S3 API

Warning

Alpha version — This guide documents the alpha version of Cloud Store. Features, interfaces and procedures will change until general availability (GA), and this guide will be updated along with them.

Objective

This guide shows Organization users how to get S31 access keys, create buckets and upload objects with the Object Storage service, in its web interface and with the S3 API.

Requirements

Instructions

What the service offers in the Alpha

ResourceWhat you can do
Access keysCreate S3 access keys and revoke them. The secret of a key is shown only once, when you create it.
BucketsCreate and delete buckets. Turn on versioning, set lifecycle rules that delete old objects, publish a bucket as a static website.
ObjectsUpload files and folders, create folders, download, copy, move, rename and delete objects. Set their content type and cache headers. Share an object with a temporary signed URL. Restore an older version of an object.

You manage these resources in the web interface of the service, or with any S3 client.

Opening the service

In the sidebar of the OPCP Cloud Console, open the service. It appears under the name your IT Admin gave it when enabling it for your Organization.

The Console link in the header of the service, also shown in its Overview tab, opens the web interface of Object Storage in a new browser tab. This guide describes this interface.

Object Storage service in the OPCP Cloud Console, with the Console link in its header

The web interface has three tabs:

TabContent
BucketsYour buckets and their objects.
ConnectThe S3 endpoint, and how to set up the Cyberduck and S3cmd clients.
Access KeysYour S3 access keys.
Buckets tab of the Object Storage web interface, with the S3 endpoint and bucket list

Getting S3 access keys

An access key is a pair of values, an access key and a secret key, that S3 clients use to authenticate.

  1. Open the Access Keys tab and click Request new Access Key.

  2. Optionally, give the key a name that tells where you use it.

  3. Click Request new Access Key.

  4. Copy the Access Key and the Secret Key, then click Copy Secret & Close.

    Warning

    The secret key is shown only once and cannot be retrieved afterwards. Store it in a safe place. If you lose it, revoke the key and create a new one.

To revoke a key, click its delete icon in the list of access keys. Applications that use it can no longer access your buckets.

Every access key gives full access to all buckets of your Organization.

Access Keys tab of the Object Storage web interface, with the list of access keys

Connection details

S3 clients need three values:

ValueWhere to find it or what to enter
EndpointThe Connect tab, or the top of the Buckets tab, for example https://s3.object-storage-<id>.<your domain>.
Regionopcp-s3.
Access key and secret keySee the "Getting S3 access keys" section.

Both URL styles work: https://s3.object-storage-<id>.<your domain>/<bucket> and https://<bucket>.s3.object-storage-<id>.<your domain>.

Creating a bucket and uploading objects in the web interface

  1. Open the Buckets tab and click Create bucket.

  2. Enter a Bucket name. Use only lowercase letters, numbers, full stops or dashes. Bucket names are unique across the whole platform, so your choice may already be taken.

  3. Click Create bucket.

  4. Open the bucket. Drag and drop files into it, or use Upload files or Upload folders. Use Create folder to organise your objects.

    Objects of a bucket in the Object Storage web interface, with the upload buttons

In the bucket, the menu of each object lets you download, copy, move, rename or delete it, change its settings, or create a Signed URL: a temporary link, valid from 5 minutes to 1 week, that gives access to the object without credentials.

Creating a bucket and uploading objects with the S3 API

The examples below use the AWS CLI. If your platform uses its own certificate authority, add --ca-bundle <file with the certificate of the authority> to each command. Your IT Admin can give you that certificate.

  1. Configure the AWS CLI with your access key:

    aws configure --profile opcp
    # AWS Access Key ID: <access key>
    # AWS Secret Access Key: <secret key>
    # Default region name: opcp-s3
    # Default output format: json
  2. Create a bucket and upload an object:

    ENDPOINT=https://s3.object-storage-<id>.<your domain>
    aws --profile opcp --endpoint-url "$ENDPOINT" s3 mb s3://my-bucket
    aws --profile opcp --endpoint-url "$ENDPOINT" s3 cp ./report.pdf s3://my-bucket/
    aws --profile opcp --endpoint-url "$ENDPOINT" s3 ls s3://my-bucket/

The Connect tab describes how to set up Cyberduck and S3cmd with the same values.

Bucket settings

Open a bucket and choose Settings to configure it:

SettingWhat it does
Bucket VersioningKeeps the older versions of each object when it is changed or deleted. You can restore an older version, or delete it.
Bucket Lifecycle configurationRules that delete objects after a number of days, optionally only those whose name starts with a prefix. They can also delete the older versions of objects and incomplete uploads. With versioning on, deleted objects first go to the Lifecycle Bin, where you can restore them or delete them for good.
Static Website HostingPublishes the bucket as a website, with an index document and an error document.
Settings of a bucket: static website hosting, versioning and lifecycle rules
Warning

Static Website Hosting makes all current and future objects of the bucket publicly accessible to anyone who can reach the platform, without credentials.

Which S3 features work in the Alpha

The service is built on Ceph RGW, which supports most of the S3 API. The web interface of the service relies on the following features:

  • Creating, listing and deleting buckets and objects, multipart uploads.
  • Bucket versioning and lifecycle rules.
  • Static website hosting.
  • Presigned URLs.

For the differences between Object Storage on OPCP and in OVHcloud regions, see Object Storage features and specifications on OPCP.

Known limitations

The Alpha has the following known limitations:

What you noticeWhat to do
Every access key gives full access to all buckets of the Organization. There are no per-user or per-bucket permissions.Treat each access key as a key to all your data. Revoke keys you no longer use.
A bucket name is refused as already taken.Bucket names are unique across the platform: choose another name.
The capacity of the service is limited, and its data can be lost when the service is upgraded.In the Alpha, do not store data you need to keep.

The following features are not available in the Alpha:

  • Encryption of objects with keys managed by the platform (SSE-S3, SSE-KMS).
  • Quotas and usage reporting per Organization.
  • Access policies per user.

Go further

OPCP Cloud Console

Deploying Object Storage on OPCP

Object Storage features and specifications on OPCP

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.

War diese Seite hilfreich?