PUT /<ObjectKey>?recursive HTTP/1.1Host: <BucketName-APPID>.cos.<Region>.myqcloud.comx-cos-move-source: <BucketName-APPID>.cos.<Region>.myqcloud.com/<SourceObjectKey>Authorization: Auth String
Term | Description | Type | Required |
recursive | Enables recursive directory move mode. No value assignment is required; it only needs to appear in the URL. | No value | Yes |
conflict_resolution_strategy | Conflict resolution policy. For recursive directory move, the optional values are ask and rename, with ask as the default. In case of a conflict, the system returns HTTP 409 Conflict and the SameNameDirectoryOrFileExists error code. rename: Automatically renames the last-level directory in case of a conflict. | string | No |
<MoveObjectResult><ETag>"etag-value"</ETag><LastModified>2025-01-15T10:30:00Z</LastModified><CRC64>xxx</CRC64></MoveObjectResult>
Node Name (Keyword) | Parent Node | Description | Type |
MoveObjectResult | None | Stores all information for the Move Object Recursive result. | Container |
Node Name (Keyword) | Parent Node | Description | Type |
ETag | MoveObjectResult | The ETag value of the target object (enclosed in double quotes). | string |
LastModified | MoveObjectResult | The last modification time of the target object, in RFC 3339 format. | date |
CRC64 | MoveObjectResult | The CRC64 value of the target object. | integer |
PUT /myspace/bbb?recursive HTTP/1.1Host: smhxxx-1250000000.cos.ap-chengdu.myqcloud.comx-cos-move-source: smhxxx-1250000000.cos.ap-chengdu.myqcloud.com/myspace/aaaAuthorization: q-sign-algorithm=sha1&q-ak=************************************&q-sign-time=1566302375;1566309575&q-key-time=1566302375;1566309575&q-header-list=content-length;content-md5;content-type;date;host&q-url-param-list=delete&q-signature=****************************************
HTTP/1.1 200 OKContent-Type: application/xmlTransfer-Encoding: chunkedConnection: keep-aliveDate: Tue, 20 Aug 2019 11:59:35 GMTx-cos-request-id: NWQ1YmUwYTdfM2FiMDJhMDlfYzczN18zMGM1****<MoveObjectResult><ETag>"d-1780579801973809791"</ETag><LastModified>2026-06-04T13:30:01Z</LastModified><CRC64>5404623458528365127</CRC64></MoveObjectResult>
PUT /myspace/bbb?recursive HTTP/1.1Host: smhxxx-1250000000.cos.ap-chengdu.myqcloud.comx-cos-move-source: smhxxx-1250000000.cos.ap-chengdu.myqcloud.com/myspace/cccAuthorization: q-sign-algorithm=sha1&q-ak=************************************&q-sign-time=1566302375;1566309575&q-key-time=1566302375;1566309575&q-header-list=content-length;content-md5;content-type;date;host&q-url-param-list=delete&q-signature=****************************************
HTTP/1.1 200 OKContent-Type: application/xmlTransfer-Encoding: chunkedConnection: keep-aliveDate: Tue, 20 Aug 2019 11:59:35 GMTx-cos-request-id: NWQ1YmUwYTdfM2FiMDJhMDlfYzczN18zMGM1****<Error><Code>FileAlreadyExists</Code><Message>Recursive move operation failed: File already exists.</Message><Resource>/smhxxx-1250000000/myspace/bbb</Resource></Error>
Apakah halaman ini membantu?
Anda juga dapat Menghubungi Penjualan atau Mengirimkan Tiket untuk meminta bantuan.
masukan