tencent cloud

Cloud Object Storage

GET Service

Download
Focus Mode
Font Size
Last updated: 2026-02-02 11:19:22

Introduction

This document provides an overview of the API operations for listing all buckets and sample SDK code.
API
Operation Name
Operation Description
List buckets
Query the list of all buckets under the requester's account or buckets in a specific region.

Querying the Bucket List

Feature Overview

List all buckets under the requester's account or buckets in a specific region (List Buckets).

Example Code

let request = new ListBucketsRequest();
try {
let result = await CosXmlBaseService.default().listBucket(request)
// result includes http headers, etc.
} catch (e) {
// Exception handling
}


Help and Support

Was this page helpful?

Help us improve! Rate your documentation experience in 5 mins.

Feedback