Replicate a snapshot across regions
Updated at:2025-10-20
This API replicates a disk snapshot from one region to another.
Request structure
Plain Text
1PUT /v{version}/snapshot/remote_copy/{snapshotId}?clientToken={clientToken} HTTP/1.1
2Host bcc.bj.baidubce.com
3Authorization: authorization string
4{
5 "destRegionInfos": [
6 {
7 "name": "test",
8 "destRegion": "hkg"
9 }
10 ]
11}
Request headers
There are no special headers required beyond the common headers.
Request parameters
| Parameter name | Types | Required or not | Parameter location | Description |
|---|---|---|---|---|
| version | String | Yes | URL parameter | API version number (supported in v2, not supported in v3 yet) |
| clientToken | String | Yes | Query | Idempotence Token, which is an ASCII string with a length not exceeding 64 bits, see details in ClientToken Idempotence . |
| snapshotId | String | Yes | URL parameter | ID of the snapshot to be replicated |
| destRegionInfos | List<[RemoteCopyRequest](BCC/API Reference/Appendix.md#RemoteCopyRequest)> | Yes | requestBody | List of target regions to which the snapshot will be replicated |
Response headers
No special headers beyond common headers.
Response parameters
| Parameter name | Types | Description |
|---|---|---|
| result | List<[RemoteCopySnapshot](BCC/API Reference/Appendix.md#RemoteCopySnapshot)> | Snapshot information in the target region |
Error codes
| Error code | Error description | HTTP status code | Chinese explanation |
|---|---|---|---|
| OperationDenied | Operation not available | 409 | Invalid operation, including abnormal parameters |
| NoSuchObject | The specified object is not found or resource do not exist. | 404 | Source snapshot does not exist. |
| snapshot.CannotCopy | napshot not support copy | 403 | Source snapshot does not support cross-region replication |
Request example
Plain Text
1POST /v2/snapshot/remote_copy/s-AJcboed5?clientToken=be31b98c-5e41-4838-9830-9be700de5a20 HTTP/1.1
2Host: bcc.bj.baidubce.com
3Authorization: bce-auth-v1/f81d3b34e48048fbb2634dc7882d7e21/2021-12-03T06:42:19Z/3600/host/74c506f68c65e26c633bfa104c863fffac5190fdec1ec24b7c03eb5d67d2e1de
4{
5 "destRegionInfos": [
6 {
7 "name": "test",
8 "destRegion": "hkg"
9 }
10 ]
11}
Response example
Plain Text
1HTTP/1.1 200 OK
2x-bce-request-id: 1214cca7-4ad5-451d-9215-71cb844c0a50
3Date: Wed, 03 Dec 2021 06:42:19 GMT
4Content-Type: application/json;charset=UTF-8
5Server: BWS
6{
7 "result": [
8 {
9 "region": "hkg",
10 "snapshotId": "s-qwZ8QD1R"
11 }
12 ]
13}
