tencent cloud

Cloud Object Storage

Query Object and Historical Versions

PDF
Modo Foco
Tamanho da Fonte
Última atualização: 2026-02-02 11:32:00

Introduction

This document provides an overview of APIs related to object deletion operations, as well as SDK sample code.
API
Operation Name
Operation Description
List objects and historical version information.
This function is used to list all objects and their historical versions in the bucket. You can filter specific objects and their historical versions by specifying parameters.

Query Object and Historical Versions

Feature Overview

List objects and historical version information (GET Bucket Object versions).

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 GetBucketObjectVersionsRequest(bucket);
try {
let result = await CosXmlBaseService.default().getBucketObjectVersions(request)
// result includes http headers, etc.
} catch (e) {
// Exception handling
}


Ajuda e Suporte

Esta página foi útil?

comentários