Hello and welcome to this video on Oracle Private Cloud Appliance.
In this video, you will learn to manage buckets with the Object Storage service
on Oracle Private Cloud Appliance. The Object Storage service is a storage
platform that offers reliable and cost-efficient data durability.
The Object Storage service stores unstructured data of any content type,
including analytic data and rich content, like images and videos.
The data is stored as an object in a bucket.
Buckets are associated with a compartment within a tenancy.
A typical use case is the creation of a bucket and then the uploading of a file to
store in the bucket. So let's begin!
Let's first list the existing buckets by running the command:
oci os bucket list --namespace-name followed
by the name of the namespace --compartment-id followed
by the compartment id. After running the command,
the results show that there two buckets named lr-bucket and test-01 exists.
Let's now create a new bucket named my-bucket-01
Use the command: oci os bucket create
--namespace-name the name of the namespace for the bucket
--compartment-id followed by the compartment id --name and the name of the bucket.
Let's list the buckets again to see if our bucket was created successfully.
As we can see, our bucket my-bucket-01 was created successfully.
You can store objects that are up to 10 TiB.
Objects are processed as a single entity. You can't edit or append data to an object,
but you can replace the entire object. Let's view or list the objects
that exist in my-bucket-01 oci os object list
--namespace-name the namespace name --bucket-name followed by the bucket
name in this case my-bucket-01. As you can see,
there are no objects in the bucket yet. Let's upload simple text file to our bucket.
oci os object put --namespace-name
--bucket-name --file
--no-multipart which will upload the file as a single
object with the same name as the source file After the uploading the object, let's list the
contents of the bucket again by running the command:
oci oc object list --namespace-name followed by the namespace
--bucket-name my-bucket-01 As you can see, the text file was
successfully uploaded to the bucket. You can permanently delete an
object from a bucket or folder. You cannot, however, recover a deleted object
unless you have object versioning enabled.
You cannot delete an object that has an active retention rule.
We'll look at retention rules in a future video.
Let's turn to the Web GUI now to view our bucket, my-bucket-01.
From the navigation menu, click on Object Storage then Object Storage.
Let's look at the details by clicking the bucket's name.
As you can see, there is one object in our bucket, myfile.txt, meaning that the object
upload was a success. For more information, please check
our additional information on Oracle Private Cloud Appliance documentation or in the Oracle
Private Cloud Appliance Learning Library.
This concludes the video. Thank you for watching.