QCloudGetBucketReplicationRequest Class Reference
Inherits from | QCloudBizHTTPRequest |
---|---|
Declared in | QCloudGetBucketReplicationRequest.h QCloudGetBucketReplicationRequest.m |
Overview
获取跨区域复制配置信息的方法.
功能说明
跨区域复制是支持不同区域 Bucket 自动复制对象, 请查阅putBucketReplication(PutBucketReplicationRequest).
关于获取跨区域复制配置信息的方法接口的具体描述,请查看https://cloud.tencent.com/document/product/436/19222.
示例
@code
QCloudGetBucketReplicationRequest* request = [[QCloudGetBucketReplicationRequest alloc] init];
// 存储桶名称,格式为 BucketName-APPID
request.bucket = @"examplebucket-1250000000";
[request setFinishBlock:^(QCloudBucketReplicationConfiguation* result,
NSError* error) {
// 具体配置信息,最多支持 1000 个,所有策略只能指向一个目标存储桶
NSArray *rules = result.rule;
}];
[[QCloudCOSXMLService defaultCOSXML] GetBucketReplication:request];
bucket
存储桶信息
@property (strong, nonatomic) NSString *bucket
Declared In
QCloudGetBucketReplicationRequest.h