All Products
Search
Document Center

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

Last Updated:Jun 16, 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 using OSS SDK for Java

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.

Configure bucket tagging using OSS SDK for Java

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

Enable pay-by-requester using OSS SDK for Java

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.