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
PUT /?replication HTTP/1.1Host: <BucketName-APPID>.cos.<Region>.myqcloud.comDate: GMT DateContent-MD5: MD5Authorization: Auth Stringrequest body
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 | Required |
ReplicationConfiguration | None | All replication configurations | Container | Yes |
Role | ReplicationConfiguration | Request initiator identifier, formatted as qcs::cam::uin/<OwnerUin>:uin/<SubUin> | String | Yes |
Rule | ReplicationConfiguration | Specific configuration. You can set a maximum of 1,000 rules. | Container | Yes |
ID | ReplicationConfiguration.Rule | Name of a specific rule | String | No |
Status | ReplicationConfiguration.Rule | Rule status identifier. Enumerated values: Enabled, Disabled. | String | Yes |
Prefix | ReplicationConfiguration.Rule | Prefix of the object to be replicated | String | No |
Destination | ReplicationConfiguration.Rule | Destination bucket information | Container | Yes |
Bucket | ReplicationConfiguration.Rule.Destination | Resource identifier, formatted as qcs::cos:<Region>::<BucketName-APPID> | String | Yes |
DeleteMarkerReplication | ReplicationConfiguration.Rule | Whether to sync the delete marker | Container | No |
Status | ReplicationConfiguration.Rule. DeleteMarkerReplication | Whether to sync the delete marker. Valid values: Disabled, Enabled. Default value: Enabled. | String | No |
originbucket-1250000000 bucket. The ReplicationConfiguration specifies that all objects prefixed with testPrefix are to be replicated to the destinationbucket-1250000000 destination bucket in Guangzhou region.PUT /?replication HTTP/1.1Date: Mon, 28 Aug 2017 02:53:38 GMTAuthorization: q-sign-algorithm=sha1&q-ak=AKIDZfbOAo7cllgPvF9cXFrJD0a1ICvR****&q-sign-time=1503888878;1503889238&q-key-time=1503888878;1503889238&q-header-list=host&q-url-param-list=replication&q-signature=254bf9cd3d6615e89a36ab652437f9d45c5f****Content-MD5: AAq9nzrpsz5LJ4UEe1f6Q==Host: originbucket-1250000000.cos.ap-guangzhou.myqcloud.comContent-Length: 312<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>
HTTP/1.1 200 OKContent-Type: application/xmlContent-Length: 0Connection: keep-aliveDate: Fri, 14 Apr 2019 07:06:19 GMTServer: tencent-cosx-cos-bucket-region: ap-guangzhoux-cos-request-id: NWQwMzQ3NmJfMjRiMjU4NjRfOTM4NV82ZDU1****x-cos-trace-id: OGVmYzZiMmQzYjA2OWNhODk0NTRkMTBiOWVmMDAxODc0OWRkZjk0ZDM1NmI1M2E2MTRlY2MzZDhmNmI5MWI1OWE4OGMxZjNjY2JiNTBmMTVmMWY1MzAzYzkyZGQ2ZWM4MzUyZTg1NGRhNWY0NTJiOGUyNTViYzgyNzgxZTEwOTY=
Apakah halaman ini membantu?
Anda juga dapat Menghubungi Penjualan atau Mengirimkan Tiket untuk meminta bantuan.
masukan