QCloudGetBucketVersioningRequest Class Reference

Inherits from QCloudBizHTTPRequest
Declared in QCloudGetBucketVersioningRequest.h
QCloudGetBucketVersioningRequest.m

Overview

获取存储桶(Bucket)版本控制信息的方法.

功能说明

通过查询版本控制信息,可以得知该 Bucket 的版本控制功能是处于禁用状态还是启用状态(Enabled 或者 Suspended), 开启版本控制功能,可参考putBucketVersioning(PutBucketVersioningRequest).

关于获取存储桶(Bucket)版本控制信息接口的具体描述,请查看 https://cloud.tencent.com/document/product/436/19888.

示例

@code

QCloudGetBucketVersioningRequest* request =
                            [[QCloudGetBucketVersioningRequest alloc] init];

// 存储桶名称,格式为 BucketName-APPID
request.bucket = @"examplebucket-1250000000";

[request setFinishBlock:^(QCloudBucketVersioningConfiguration* result,
                          NSError* error) {

    // result 包含多版本的状态
    result.status;
}];

[[QCloudCOSXMLService defaultCOSXML] GetBucketVersioning:request];

  bucket

存储桶名称

@property (strong, nonatomic) NSString *bucket

Declared In

QCloudGetBucketVersioningRequest.h