tencent cloud

Cloud Object Storage

ドキュメントCloud Object Storage

HEAD Bucket

フォーカスモード
フォントサイズ
最終更新日: 2026-02-02 11:20:31

Introduction

This document provides an overview of APIs related to bucket retrieval operations, as well as SDK sample code.
API
Operation Name
Operation Description
Search the bucket
Retrieving Buckets and Their Permissions

Retrieving Buckets and Their Permissions

Feature Overview

Retrieving bucket and its permissions (HEAD Bucket).

Example Code

// Bucket name, which consists of bucketname-appid (appid must be included), can be viewed in the COS console. https://console.tencentcloud.com/cos5/bucket
let bucket = "examplebucket-1250000000";

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

ヘルプとサポート

この記事はお役に立ちましたか?

フィードバック