On the Buckets list page, select the Object Storage bucket that you want to work with. If you need help finding the list page or the Object Storage bucket, see Listing Buckets.
On the details page, select Objects.
From the Actions menu for the object you want, select
Rename.
Enter the new name for the object in the Object Name box. You can include an optional delimited directory structure prefix. For example, p_94.jpg or /marathon/participants/p_94.jpg. Avoid entering confidential information.
Caution
Buckets can't store two objects that use identical names (case-sensitive). If you rename an object using the name of another object in the same bucket, the object that originally used the name is overwritten.
Select Save Changes.
Use the oci os object rename command and required parameters to rename an object in a bucket:
Command
oci os object rename --bucket-name bucket_name--nameobject_original_name --new-name object_new_name [OPTIONS]
For rename operations where you intend to overwrite one object in a bucket with another, you can make the renaming dependent on having a specific entity tag. To do so, use the --new-obj-if-match-e-tag option.
When renaming an object, you can prevent the system from overwriting another object in the same bucket by using the --new-obj-if-none-match-e-tag * option. This option prevents the renaming operation from completing if an object exists with the --new-name value specified and the same entity tag of the source object.