Basic Object Operations
What you'll learn: How to work with objects in cloud storage by uploading, downloading, listing, and deleting them using fundamental HTTP operations.
The Four Core Operations
Now that you understand buckets and object keys, it's time to interact with objects themselves. Think of these operations like basic file management on your computer, but happening over the internet using HTTP requests.
PUT: Upload Objects
The PUT operation uploads data to create or replace an object in a bucket. You specify the bucket name and object key, then send the file content. This is like copying a file into a folder—the object gets stored at the path you define.
GET: Download Objects
The GET operation retrieves an object's content from storage. Provide the bucket and key, and you receive the data back. It's equivalent to opening or downloading a file—you're reading what's stored.
LIST: View Objects
The LIST operation shows what objects exist in a bucket, often with a prefix filter to narrow results (remember: folders are simulated). This lets you browse contents, like viewing files in a directory, and returns object keys along with metadata like size and modification time.
DELETE: Remove Objects
The DELETE operation removes an object from a bucket permanently. Specify the bucket and key, and the object disappears. Unlike deleting files on your computer, there's typically no "recycle bin"—deletion is immediate.
HTTP in Action
These operations map directly to HTTP methods (PUT, GET, DELETE) and bucket/key URLs. Cloud providers offer tools, SDKs, and web consoles that wrap these simple HTTP calls into user-friendly interfaces, but the underlying operations remain consistent.
Key Takeaway: The four basic object operations—PUT (upload), GET (download), LIST (view contents), and DELETE (remove)—are the foundation for all object storage interactions, executed as straightforward HTTP requests to buckets and keys.