Exports a snapshot to a specified Object Storage Service (OSS) bucket.
This API has been deprecated with no replacement. While temporary access is maintained, no further updates or bug fixes will be provided. To ensure continued functionality, plan your migration and contact your account manager for support.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
ecs:ExportSnapshot |
create |
*Snapshot
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| SnapshotId |
string |
Yes |
|
|
| RegionId |
string |
Yes |
DescribeRegions operation to query the latest region list. |
|
| OssBucket |
string |
Yes |
|
|
| RoleName |
string |
No |
|
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|
||
| TaskId |
string |
DescribeTasks operation to check the task status. |
|
| RequestId |
string |
|
Examples
Success response
JSON format
{
"TaskId": "",
"RequestId": ""
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 403 | ExportSnapshotFailed | Exporting snapshot is failed, Please contact the administrator. | |
| 403 | SNAPSHOT_IS_EXPORTING | The specified snapshot is already exporting. | |
| 403 | InvalidSnapshotId.NotFound | The specified snapshot is not exists. | The specified source snapshot does not exist. |
| 403 | SNAPSHOT_CREATE_NOT_FINISHED | The specified snapshot is not finished yet. | |
| 403 | OSS_AUTHORIZED_FAILED | ECS service account Have no right to access your OSS. please attach a role of access your oss to ECS service account. | |
| 403 | InvalidOSSBucket.NotFound | The specified OSS bucket does not exist in this region. | |
| 403 | InvalidUser.NotInWhiteList | The user is not in the white list of exporting snapshot. | |
| 403 | InvalidOSSBucket.InOtherRegion | The specified OSS bucket is in another region. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.