All Products
Search
Document Center

Object Storage Service:Buckets (OSS SDK for Java 1.0)

Last Updated:Sep 21, 2026

OSS SDK for Java provides the following methods for managing buckets.

Method

Description

Create a bucket (Java SDK V1)

Creates a bucket.

List buckets (OSS SDK for Java 1.0)

Lists buckets under the current Alibaba Cloud account across all regions. Buckets are returned in alphabetical order and can be filtered by specific conditions.

Check if a bucket exists

Checks whether a bucket exists.

Obtain the region of a bucket

Queries the region of a bucket.

Obtain bucket information

Queries bucket information, such as the creation date.

Obtain the storage capacity of a bucket

Queries the storage capacity of a bucket, including the number and storage usage of objects in each storage class.

Resource group

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

Delete a bucket (OSS SDK for Java V1)

Deletes a bucket that meets the required conditions.

Bucket tagging (OSS SDK for Java 1.0)

Classifies and manages buckets by using tags. For example, you can list only buckets that have specific tags.

Pay-by-requester (OSS SDK for Java 1.0)

Enables pay-by-requester for a bucket so that requesters pay the request and traffic fees while the bucket owner pays only storage fees. This lets you share bucket data without incurring access costs.