History
Introduction
API Category
Making API Requests
Region APIs
Instance APIs
Cloud Hosting Cluster APIs
Image APIs
Instance Launch Template APIs
Placement Group APIs
Key APIs
Security Group APIs
Network APIs
Data Types
Error Codes
GET /?replication HTTP/1.1Host: <BucketName-APPID>.cos.<Region>.myqcloud.comDate: GMT DateAuthorization: Auth String
Host: <BucketName-APPID>.cos.<Region>.myqcloud.com, <BucketName-APPID> is the bucket name followed by the APPID, such as examplebucket-1250000000 (see Bucket Overview > Basic Information and Bucket Overview > Bucket Naming Conventions), and <Region> is a COS region (see Regions and Access Endpoints).<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>
Node Name (Keyword) | Parent Node | Description | Type |
ReplicationConfiguration | None | All replication configurations | Container |
Role | ReplicationConfiguration | Request initiator identifier, formatted as qcs::cam::uin/<OwnerUin>:uin/<SubUin>,Where <OwnerUin> is the main account UIN, and <SubUin> can be either the main account UIN or an authorized sub-account UIN | String |
Rule | ReplicationConfiguration | Specific configuration. You can set a maximum of 1,000 rules, which should apply to the same destination bucket | Container |
ID | ReplicationConfiguration.Rule | Name of a specific rule | String |
Status | ReplicationConfiguration.Rule | Rule status identifier. Enumerated values: Enabled, Disabled | String |
Prefix | ReplicationConfiguration.Rule | Prefix matching policy. Policies cannot overlap; otherwise, an error will be returned. To match the root directory, leave this parameter empty. | String |
Destination | ReplicationConfiguration.Rule | Destination bucket information | Container |
Bucket | ReplicationConfiguration.Rule.Destination | Resource identifier, formatted as qcs::cos:[region]::[BucketName-APPID],For details, please refer to the Resource Description Method | String |
StorageClass | ReplicationConfiguration.Rule.Destination | Storage class. Enumerated values: STANDARD, INTELLIGENT_TIERING, STANDARD_IA, ARCHIVE, DEEP_ARCHIVE. Defaults to the storage class of the source bucket. | String |
DeleteMarkerReplication | ReplicationConfiguration.Rule | Whether to sync the delete marker | Container |
Status | ReplicationConfiguration.Rule. DeleteMarkerReplication | Whether to sync the delete marker. Valid values: Disabled, Enabled. Default value: Enabled. | String |
originbucket-1250000000 bucket: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
ReplicationConfiguration indicates that all objects prefixed with testPrefix in the originbucket-1250000000 bucket are to be replicated. Storage classes of the replicated objects are subject to those of the source bucket.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>
피드백