Mengubah kategori snapshot. Anda dapat memanggil operasi ini untuk mengonversi snapshot standar menjadi snapshot arsip.
Deskripsi operasi
-
Snapshot arsip tidak dapat dipulihkan menjadi snapshot standar.
-
Snapshot standar harus disimpan setidaknya selama 14 hari setelah pembuatan sebelum dapat diarsipkan.
-
Snapshot bersama, snapshot yang dikelola oleh produk cloud, dan snapshot di CloudBox tidak mendukung pengarsipan.
Coba sekarang
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
ecs:ModifySnapshotCategory |
update |
*Snapshot
|
|
None |
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| SnapshotId |
string |
Yes |
ID snapshot. |
s-123**sd |
| Category |
string |
No |
Jenis snapshot.
|
Archive |
| RetentionDays |
integer |
No |
Periode retensi snapshot. Waktu mulai adalah waktu pembuatan sumber daya snapshot CreationTime. Snapshot standar harus disimpan setidaknya selama 14 hari setelah pembuatan sebelum dapat diarsipkan. Snapshot arsip memiliki batas periode retensi dan harus disimpan sebagai jenis arsip setidaknya selama 60 hari. Saat menghitung periode retensi snapshot arsip, waktu selama snapshot standar telah disimpan harus dikurangi. Jika snapshot arsip dihapus sebelum 60 hari berlalu, Anda akan dikenakan biaya untuk 60 hari penyimpanan arsip. Untuk informasi lebih lanjut, lihat Penagihan snapshot. Nilai valid: [74, 65536] Catatan
Jika Anda tidak menentukan parameter ini, snapshot akan disimpan secara permanen. |
100 |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
|||
| RequestId |
string |
ID permintaan. |
B48A12CD-1295-4A38-A8F0-0E92C937**** |
| TaskId |
string |
ID tugas arsip. Anda dapat memanggil operasi DescribeTasks untuk menanyakan status dan kemajuan tugas. |
t-dxh34xds**d |
Contoh
Respons sukses
JSONformat
{
"RequestId": "B48A12CD-1295-4A38-A8F0-0E92C937****",
"TaskId": "t-dxh34xds**d"
}
Kode kesalahan
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | InvalidRetentionDays.Malformed | The specified RetentionDays is not valid. | |
| 400 | InvalidOperation.DecreaseRetentionDaysUnsupported | The requested operation to decrease retention days for the snapshot is not supported. | |
| 400 | InvalidSnapshotId.NotReady | The specified snapshot has not completed yet. | |
| 400 | InvalidOperation.ArchiveSharedSnapshotUnsupported | The specified shared snapshot is not support archive. | |
| 400 | InvalidOperation.ArchiveCloudBoxSnapshotUnsupported | The specified snapshot in CloudBox is not support archive. | |
| 400 | InvalidStatus.SnapshotUnfinished | The specified unfinished snapshot is not support archive. | |
| 400 | InvalidStatus.SnapshotAgeLimit | The specified snapshot created within 14 days is not support archive. | |
| 400 | InvalidStatus.SnapshotInArchive | The specified snapshot is currently being archived. | |
| 400 | InvalidParameter.SnapshotCategory | The specified parameter category is invalid. | |
| 400 | InvalidRetentionDays.LessThanLockExpiredTime | The specified parameter RetentionDays is invalid. The RetentionDays should be greater than the snapshot LockExpiredTime. | |
| 403 | InvalidOperation.ResourceManagedByCloudProduct | The current operation is not supported because the resource is managed by a cloud product. Please contact the relevant cloud product to confirm the reason. | |
| 403 | InvalidOperation.InstantAccessEnabledUnsupport | The specified snapshot with legacy Instant Access enabled does not support archive. | |
| 403 | InvalidOperation.EncryptedSnapshotUnsupport | Archiving encrypted snapshots is not currently supported. | |
| 403 | QuotaExceed.ConcurrentArchiveSnapshotQuota | The number of concurrent archiving tasks associated with the disk of the current snapshot has exceeded the quota limit. Please try again later. | |
| 403 | InvalidOperation.DefaultFreeSnapshotNotSupport | The specified snapshot is a default free snapshot and does not support this operation. | |
| 404 | InvalidSnapshotId.NotFound | The specified SnapshotId does not exist. |
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.