> ## Documentation Index
> Fetch the complete documentation index at: https://docs.megaport.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Configuring a Megaport Object Storage Bucket

> This help topic describes how to configure a Megaport Object Storage bucket, including access keys, versioning, and resource tags.

This topic describes how to configure a Megaport Object Storage bucket after it has been provisioned.\
Before you begin, create a bucket as described in [Creating a Megaport Object Storage Bucket](https://docs.megaport.com/storage/object/creating-object-storage.md).

## Viewing the bucket connection details

Your apps connect to the bucket through the S3 endpoint, using the bucket name and an access key. The **Overview** tab of the bucket shows the bucket name and S3 endpoint.

**To view the bucket connection details**

1. In the [Megaport Portal](https://portal.megaport.com), go to the **Services** page and locate the bucket.
2. In the **Actions** section for the bucket, click **Details**.\
   The **Overview** tab opens.
3. In the **Connect to your bucket** section, find the bucket name and S3 endpoint.\
   To copy a value, click the copy icon next to it.

   ![Object Storage details page with the Connect to your bucket section highlighted on the Overview tab, showing the bucket name and S3 endpoint](https://docs.megaport.com/images/storage/object/configure-object-storage-overview-tab.png)

The **Overview** tab also shows how much storage the bucket uses for a selected time range. To see more details, click **View all telemetry**.

## Creating an access key

An access key is an S3 credential consisting of an access key ID and a secret access key. It allows an application to read or write data in the bucket through the S3 endpoint. An S3 access key is separate from a Megaport API key.\
Create a separate access key for each application and grant only the permissions it requires. You cannot create an access key while the bucket is locked.

**To create an access key**

1. In the [Megaport Portal](https://portal.megaport.com), go to the **Services** page and locate the bucket.

2. In the **Actions** section for the bucket, click **Details**.

3. Select the **Configuration** tab.

   ![Object Storage details page with the Configuration tab highlighted, showing the General, Access Keys, Versioning, and Resource Tags sections](https://docs.megaport.com/images/storage/object/configure-object-storage-configuration-tab.png)

4. In the **Access Keys** section, click **Create Access Key**.

5. Specify these values:

   * **Key name** -- Enter a name for the key or use the suggested name. The name must be unique within your company, contain no more than 25 characters, and consist only of lowercase letters, digits, underscores, and hyphens.
   * **Access** -- Select Read only (the default) or Read and write.

6. Click **Create Key**.\
   The Access Key Created dialog shows the access key ID and secret access key.

   ![Access Key Created dialog showing the key name, access key ID, and secret access key, with the confirmation check box and Done button](https://docs.megaport.com/images/storage/object/configure-object-storage-access-key-created.png)

7. Copy the access key ID and secret access key, and store them securely.\
   To copy a value, click the copy icon next to it.

   > [!WARNING]
   >
   > The secret access key is displayed only once. Megaport does not store a copy, and you cannot retrieve it later. If you lose the secret access key, you must create a new access key.

8. Select the **I've stored this secret somewhere secure** check box.

9. Click **Done**.\
   The new key appears in the **Access Keys** section, with its name, access key ID, access level, and status.

## Deleting an access key

Delete an access key when an app no longer needs access to the bucket or if you suspect the secret access key has been compromised. Apps using the key immediately lose access to the bucket. Deleting an access key cannot be undone.

**To delete an access key**

1. In the [Megaport Portal](https://portal.megaport.com), go to the **Services** page and locate the bucket.
2. In the **Actions** section for the bucket, click **Details**.
3. Select the **Configuration** tab.
4. In the **Access Keys** section, click  (Delete) next to the key.
5. Click **Delete Key**.

## Turning on versioning

Versioning retains every version of an object, allowing you to recover objects that have been overwritten or deleted. If you did not enable versioning when you created the bucket, you can enable it later. Once enabled, versioning cannot be disabled.

**To turn on versioning**

1. In the [Megaport Portal](https://portal.megaport.com), go to the **Services** page and locate the bucket.
2. In the **Actions** section for the bucket, click **Details**.
3. Select the **Configuration** tab.
4. In the **Versioning** section, click **Turn On Versioning**.
5. Click **Turn On Versioning** to confirm.

## Adding resource tags

A resource tag is custom metadata that you apply to a Megaport service. Tags can help you identify and manage your resources.

**To add a resource tag**

1. In the [Megaport Portal](https://portal.megaport.com), go to the **Services** page and locate the bucket.
2. In the **Actions** section for the bucket, click **Details**.
3. Select the **Configuration** tab.
4. In the **Resource Tags** section, click **Add New Tag**, then specify a key and value.
5. Click **Save**.\
   You can add up to 50 tags.

   > [!WARNING]
   >
   > Never include sensitive information in a resource tag. Sensitive information includes commands that return existing tag definitions and information that identifies a person or company.

## Changing billing details

To change the service level reference or the contract term, select the **Billing** tab on the bucket details page. For more information, see [Megaport Object Storage Pricing and Contract Terms](https://docs.megaport.com/finance/storage-pricing.md).

## Locking a bucket

If you are a Company Admin, you can lock a bucket to prevent it from being changed or deleted.\
For more information, see [Locking Megaport Services](https://docs.megaport.com/portal-admin/locking.md).

## Helpful references

* [Creating a Megaport Object Storage Bucket](https://docs.megaport.com/storage/object/creating-object-storage.md)
* [Locking Megaport Services](https://docs.megaport.com/portal-admin/locking.md)
* [Megaport Object Storage Billing](https://docs.megaport.com/finance/storage-billing.md)
* [Megaport Object Storage Overview](https://docs.megaport.com/storage/object.md)
* [Megaport Object Storage Pricing and Contract Terms](https://docs.megaport.com/finance/storage-pricing.md)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.