tencent cloud

Cloud Object Storage

HEAD Bucket

PDF
Modo Foco
Tamanho da Fonte
Última atualização: 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
}

Ajuda e Suporte

Esta página foi útil?

comentários