GET /?replication HTTP/1.1Host: <BucketName-APPID>.cos.<Region>.myqcloud.comDate: GMT DateAuthorization: Auth String
<ReplicationConfiguration><Role>qcs::cam::uin/<OwnerUin>:uin/<SubUin></Role><Rule><Status></Status><ID></ID><Prefix></Prefix><Destination><Bucket>qcs::cos:<Region>::<BucketName-APPID></Bucket><StorageClass></StorageClass></Destination><DeleteMarkerReplication><Status></Status></DeleteMarkerReplication></Rule></ReplicationConfiguration>
节点名称(关键字) | 父节点 | 描述 | 类型 |
ReplicationConfiguration | 无 | 说明所有复制配置信息 | Container |
Role | ReplicationConfiguration | 发起者身份标示: qcs::cam::uin/<OwnerUin>:uin/<SubUin> | String |
Rule | ReplicationConfiguration | 具体配置信息,最多支持1000个,所有策略只能指向一个目标存储桶 | Container |
ID | ReplicationConfiguration.Rule | 用来标注具体 Rule 的名称 | String |
Status | ReplicationConfiguration.Rule | 标识 Rule 是否生效,枚举值:Enabled,Disabled | String |
Prefix | ReplicationConfiguration.Rule | 前缀匹配策略,不可重叠,重叠返回错误,前缀匹配根目录为空 | String |
Destination | ReplicationConfiguration.Rule | 目标存储桶信息 | Container |
Bucket | ReplicationConfiguration.Rule.Destination | 资源标识符: qcs::cos:[region]::[BucketName-APPID] | String |
StorageClass | ReplicationConfiguration.Rule.Destination | 存储类型,枚举值:STANDARD,INTELLIGENT_TIERING,STANDARD_IA,ARCHIVE,DEEP_ARCHIVE,默认值:原存储类型 | String |
DeleteMarkerReplication | ReplicationConfiguration.Rule | 是否同步删除标记 | Container |
Status | ReplicationConfiguration.Rule. DeleteMarkerReplication | 是否同步删除标记,支持 Disabled 或 Enabled 。默认值为 Enabled ,即同步删除标记 | String |
originbucket-1250000000
中查询配置信息。GET /?replication HTTP/1.1Date: Fri, 14 Apr 2019 07:17:19 GMTAuthorization: q-sign-algorithm=sha1&q-ak=************************************&q-sign-time=1503895278;1503895638&q-key-time=1503895278;1503895638&q-header-list=host&q-url-param-list=replication&q-signature=****************************************Host: originbucket-1250000000.cos.ap-guangzhou.myqcloud.comContent-Length: 0
originbucket-1250000000
内包含 testPrefix
前缀的所有对象。对象副本的存储类型默认跟随源存储桶内对象的存储类型。Content-Type: application/xmlContent-Length: 309Connection: keep-aliveDate: Fri, 14 Apr 2019 07:17:19 GMTServer: tencent-cosx-cos-replication-rule-creation-time: Fri, 14 Apr 2019 07:06:19 GMTx-cos-request-id: NWQwMzQ5ZmZfMjBiNDU4NjRfNjAwOV84MzA2****<ReplicationConfiguration><Role>qcs::cam::uin/100000000001:uin/100000000001</Role><Rule><Status>Enabled</Status><ID>RuleId_01</ID><Prefix>testPrefix</Prefix><Destination><Bucket>qcs::cos:ap-guangzhou::destinationbucket-1250000000</Bucket></Destination></Rule></ReplicationConfiguration>
本页内容是否解决了您的问题?