Prerequisites
To manage buckets, you need to install and configure AWS CLI. It provides simple commands for object management, likeaws s3 cp to move objects between a bucket and a local computer and aws s3 rm to delete them.
For more details on installing and configuring, see How to get started with Object Storage: Create your first bucket and the guide on the AWS CLI.
Object naming requirements
Each Object Storage object has a key — object ID in astring format. This key can contain prefixes — they act similar to directories, organizing objects into groups.
To avoid issues with your objects, follow these requirements:
- Object keys can be up to 1024 bytes long, case sensitive.
- Use UTF-8 alphanumeric characters, slashes (
/) and certain special characters.
How to list objects
- First-level objects and prefixes
- Objects with prefix
- All objects
This command will show you the list of all the prefixes and all the first-level objects on your Object Storage bucket:
ls command in the AWS CLI reference.
How to rename an object
You can rename an object in your Object Storage bucket using the following manual sequence:-
Copy the object in question with a new name. You can also update an object’s prefix:
-
Remove the old copy of the renamed object:
How to delete an object
You can delete one or more objects as follows:- Single object
- All objects with a specified prefix
This command will remove the object with a specified key:
rm command in the AWS CLI reference.
When an object is deleted from a bucket in Object Storage, it becomes immediately inaccessible and cannot be restored. The actual object data is then physically deleted from Nebius AI Cloud servers within 4 days.