All Products
Search
Document Center

Object Storage Service:Buckets

Last Updated:Jan 20, 2025

Object Storage Service (OSS) SDK for Java provides a variety of bucket management methods tailored to your requirements.

Method

Description

Create a bucket

Creates a new bucket.

List buckets

Bucket names are listed in alphabetical order. You can list buckets that belong to the current Alibaba Cloud account in all regions and meet the specific conditions.

Check if a bucket exists

Determines whether a bucket exists.

Obtain the region of a bucket

Queries the region in which the bucket is located.

Obtain bucket information

Queries information about a bucket, such as its creation date.

Obtain the storage capacity of a bucket

Queries the storage capacity of a bucket, as well as the number and storage usage of objects of different storage classes stored within.

Resource group

Configures a resource group for a bucket and queries the ID of the resource group to which a bucket belongs.

Delete a bucket

Deletes buckets that meet specific requirements.

Bucket tagging

Classifies and manages buckets. For example, you can list only buckets with specific tags when you call the ListBucket operation.

Pay-by-requester

When pay-by-requester is enabled for a bucket in OSS, the requester is charged the requests and traffic fees instead of the bucket owner. The bucket owner is charged only the storage fees. You can enable pay-by-requester for a bucket to share data in the bucket without paying for the request and traffic fees incurred by the access to your bucket.