Chapter 4. Creating and managing buckets using MCG object browser Multicloud Object Gateway (MCG) object browser within the OpenShift console enables you to create and manage buckets to keep your data organized and accessible. You can navigate to your S3 and OpenShift managed buckets and perform the following activities: Add new objects View objects Download objects Share objects 4.1. Creating new buckets using MCG object browser Prerequisites Administrator access to OpenShift Data Foundation. Make sure MCG cluster is deployed and noobaa-endpoint-* pod is running in the MCG namespace. Procedure In the OpenShift Web Console, click Storage Object Storage . Click the Buckets tab. Select one of the following options to create the buckets: Create via Object Bucket Claim Select a namespace. Enter the ObjectBucketClaim name. Select the storage class. Select the bucket class Select the Enable replication to obtain higher resiliency of the objects stored in the buckets. Click Create using ObjectBucketClaim . Create via S3 API Enter a name for the bucket. Add tags with different key and value criteria to tag your bucket. Click Create . 4.2. Listing bucket details using MCG object browser Prerequisites Administrator access to OpenShift Data Foundation. Make sure MCG cluster is deployed and noobaa-endpoint-* pod is running in the MCG namespace. Procedure In the OpenShift Web Console, click Storage Object Storage . Click the Buckets tab. All the MCG buckets that are created are listed in the page. Select the required bucket. Click the Details tab. 4.3. Listing objects and object details using MCG object browser Prerequisites Administrator access to OpenShift Data Foundation. Make sure MCG cluster is deployed and noobaa-endpoint-* pod is running in the MCG namespace. Procedure In the OpenShift Web Console, click Storage Object Storage . Click the Buckets tab and select the required bucket. Click the Objects tab. Select the required object. A sidebar pops-up with the object details. 4.4. Downloading or previewing objects using MCG object browser Prerequisites Administrator access to OpenShift Data Foundation. Make sure MCG cluster is deployed and noobaa-endpoint-* pod is running in the MCG namespace. Procedure In the OpenShift Web Console, click Storage Object Storage . Click the Buckets tab and select the required bucket. Select the Objects tab. In the options menu corresponding to the required object, select either Download or Preview based on your requirement. Note Preview is a browser dependent feature, which means that if a browser does not recognize the file or the object's type or extension, such as .zip , .rar , and so on, and unable to display it in a separate tab, then the file or the object is downloaded by default. 4.5. Generating the presigned URL to share the object Prerequisites Administrator access to OpenShift Data Foundation. Make sure MCG cluster is deployed and noobaa-endpoint-* pod is running in the MCG namespace. Procedure In the OpenShift Web Console, click Storage Object Storage . Click the Buckets tab and select the required bucket. Select the Objects tab. In the options menu corresponding to the required object, select Share with presigned URL . Select the expiration time to set the validity period of the presigned URL Click Create . Copy the generated URL. 4.6. Uploading objects using MCG object browser Prerequisites Administrator access to OpenShift Data Foundation. Make sure MCG cluster is deployed and noobaa-endpoint-* pod is running in the MCG namespace. Procedure In the OpenShift Web Console, click Storage Object Storage . Click the Buckets tab and select the required bucket. Select the Objects tab. In the Add objects section, do one of the following: To upload a folder, click Upload and select the folder that you want to upload. To upload files, drag and drop the files. 4.7. Creating folder using MCG object browser Prerequisites Administrator access to OpenShift Data Foundation. Make sure MCG cluster is deployed and noobaa-endpoint-* pod is running in the MCG namespace. Procedure In the OpenShift Web Console, click Storage Object Storage . Click the Buckets tab and select the required bucket. Select the Objects tab. Click Create folder . Enter a name for the folder that satisfies the requirements. Click Create. You are redirected inside the new folder. Note The new folder persists only if you upload objects to it. If you navigate away without uploading the objects, the folder disappears. 4.8. Deleting objects using MCG object browser Prerequisites Administrator access to OpenShift Data Foundation. Make sure MCG cluster is deployed and noobaa-endpoint-* pod is running in the MCG namespace. Procedure In the OpenShift Web Console, click Storage Object Storage . Click the Buckets tab and select the required bucket. Select the Objects tab. To delete the object, do one of the following: To delete multiple objects together, select multiple objects using the checkbox and then from the Actions menu select Delete . To delete a single object, select the Action menu corresponding to the object and select Delete . Note You cannot delete a folder directly. 4.9. Deleting or emptying bucket using MCG object browser Prerequisites Administrator access to OpenShift Data Foundation. Make sure MCG cluster is deployed and noobaa-endpoint-* pod is running in the MCG namespace. Procedure In the OpenShift Web Console, click Storage Object Storage . Click the Buckets tab. In the options menu corresponding to the required bucket, select Empty bucket . Enter the bucket name for confirmation and click Empty bucket . After the bucket is empty, in the options menu corresponding to the bucket, select Delete bucket . Enter the bucket name for confirmation and click Delete bucket .

Commands: