Memodifikasi nama, deskripsi, atau periode retensi snapshot.
Coba sekarang
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
ecs:ModifySnapshotAttribute |
update |
*Snapshot
|
None | None |
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| SnapshotId |
string |
Yes |
ID snapshot. |
s-bp199lyny9bb47pa**** |
| SnapshotName |
string |
No |
Nama tampilan snapshot. Panjang nama harus 2 hingga 128 karakter. Nama harus diawali dengan huruf atau karakter Cina dan tidak boleh diawali dengan http:// atau https://. Nama dapat berisi angka, titik dua (:), garis bawah (_), dan tanda hubung (-). Untuk mencegah konflik nama dengan snapshot otomatis, nama tidak boleh diawali dengan auto. |
testSnapshotName |
| Description |
string |
No |
Deskripsi snapshot. Deskripsi dapat kosong atau memiliki panjang 256 karakter. Deskripsi tidak boleh diawali dengan http:// atau https://. |
testDescription |
| DisableInstantAccess |
boolean |
No |
Menentukan apakah akan menonaktifkan fitur akses instan untuk snapshot. Nilai yang valid:
Nilai default: false. Catatan
Parameter ini sudah tidak digunakan lagi. Snapshot standar ESSD telah ditingkatkan menjadi akses instan secara default. Anda tidak perlu melakukan konfigurasi tambahan dan tidak dikenakan biaya tambahan. |
false |
| RetentionDays |
integer |
No |
Periode retensi snapshot. Saat Anda mengatur parameter ini, periode retensi snapshot dihitung dari waktu pembuatan snapshot (dalam format standar ISO 8601 dengan waktu UTC+0, diformat sebagai yyyy-MM-ddTHH:mm:ssZ). Nilai yang valid: 1 hingga 65536. Catatan
Periode retensi snapshot hanya dapat diperpanjang dan tidak dapat dipersingkat. |
10 |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
|||
| RequestId |
string |
ID permintaan. |
473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E |
Contoh
Respons sukses
JSONformat
{
"RequestId": "473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E"
}
Kode kesalahan
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | InvalidSnapshotName.Malformed | The specified SnapshotName is wrongly formed. | |
| 400 | NoAttributeToModify | No attribute to be modified in this request. | |
| 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 | IncorrectDiskStatus.CreatingSnapshot | A previous snapshot creation is in process. | |
| 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.DefaultFreeSnapshotNotSupport | The specified snapshot is a default free snapshot and does not support this operation. | |
| 404 | InvalidDescription.Malformed | The specified description is wrongly formed. | |
| 404 | InvalidSnapshotId.NotFound | The specified SnapshotId does not exist. | |
| 404 | InvalidSnapshotDisableInstantAccess.Malformed | The specified DisableInstantAccess is not valid! |
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.