Menyalin snapshot standar atau snapshot terenkripsi dari satu wilayah ke wilayah lain.
Deskripsi operasi
Saat memanggil operasi ini, perhatikan hal-hal berikut:
Snapshot baru tidak dapat digunakan untuk mengembalikan cloud disk yang terkait dengan snapshot sumber.
Snapshot lokal tidak dapat disalin.
Coba sekarang
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
ecs:CopySnapshot |
create |
*Snapshot
|
None | None |
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| ResourceGroupId |
string |
No |
Parameter ini tidak tersedia secara publik. |
rg-bp67acfmxazb4p**** |
| Tag |
array<object> |
No |
Informasi tag dari snapshot baru. |
|
|
object |
No |
Informasi tag dari snapshot baru. |
||
| Key |
string |
No |
Kunci tag dari snapshot baru. Setelah ditentukan, kunci tag tidak boleh berupa string kosong. Panjang kunci tag maksimal 128 karakter dan tidak boleh diawali dengan aliyun atau acs:. Kunci tag tidak boleh mengandung http:// atau https://. |
TestKey |
| Value |
string |
No |
Nilai tag dari snapshot baru. Setelah ditentukan, nilai tag dapat berupa string kosong. Panjang nilai tag maksimal 128 karakter dan tidak boleh diawali dengan aliyun atau acs:. Nilai tag tidak boleh mengandung http:// atau https://. |
TestValue |
| RegionId |
string |
Yes |
ID wilayah dari snapshot sumber. Anda dapat memanggil DescribeRegions untuk mengkueri daftar wilayah terbaru. |
cn-chengdu |
| DestinationRegionId |
string |
Yes |
ID wilayah tujuan tempat menyalin snapshot. |
us-east-1 |
| SnapshotId |
string |
Yes |
ID snapshot sumber. |
s-bp67acfmxazb4p**** |
| DestinationSnapshotName |
string |
Yes |
Nama snapshot baru. Panjang nama harus 2 hingga 128 karakter dan harus diawali dengan huruf atau karakter Tionghoa. Nama tidak boleh diawali dengan http:// atau https://. Nama dapat berisi huruf, angka, dan karakter Unicode yang termasuk dalam klasifikasi huruf. Nama juga dapat berisi titik dua (:), garis bawah (_), titik (.), atau tanda hubung (-). Nilai default: null. |
CopySnapshotDemo |
| DestinationSnapshotDescription |
string |
Yes |
Deskripsi snapshot baru. Panjang deskripsi harus 2 hingga 256 karakter dan tidak boleh diawali dengan http:// atau https://. Nilai default: null. |
CopySnapshotDemo |
| RetentionDays |
integer |
No |
Periode retensi snapshot baru, dalam hari. Snapshot akan mengalami pelepasan otomatis ketika periode retensi berakhir. Nilai valid: 1 hingga 65536. Nilai default: null, yang menunjukkan bahwa snapshot tidak mengalami pelepasan otomatis. |
60 |
| Encrypted |
boolean |
No |
Apakah akan mengenkripsi cloud disk. Nilai valid:
Nilai default: false. |
false |
| KMSKeyId |
string |
No |
Customer master key (CMK) di wilayah tujuan. |
0e478b7a-4262-4802-b8cb-00d3fb40**** |
| Arn |
array<object> |
No |
Catatan
Parameter ini berada dalam pratinjau undangan dan tidak tersedia secara publik. |
|
|
object |
No |
|||
| RoleType |
string |
No |
Catatan
Parameter ini tidak tersedia secara publik. |
null |
| Rolearn |
string |
No |
Catatan
Parameter ini tidak tersedia secara publik. |
null |
| AssumeRoleFor |
integer |
No |
Catatan
Parameter ini tidak tersedia secara publik. |
0 |
| DestinationStorageLocationArn |
string |
No |
Catatan
Parameter ini tidak tersedia secara publik. |
null |
| ClientToken |
string |
No |
Memastikan idempotensi permintaan. Nilai dihasilkan dari klien Anda dan harus unik di antara permintaan yang berbeda. Nilai ClientToken hanya boleh berisi karakter ASCII dan panjangnya tidak boleh melebihi 64 karakter. Untuk informasi lebih lanjut, lihat Cara memastikan idempotensi. |
123e4567-e89b-12d3-a456-426655440000 |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
|||
| SnapshotId |
string |
ID snapshot baru. |
s-bp17441ohwka0yui**** |
| RequestId |
string |
ID permintaan. |
C8B26B44-0189-443E-9816-D951F596**** |
Contoh
Respons sukses
JSONformat
{
"SnapshotId": "s-bp17441ohwka0yui****",
"RequestId": "C8B26B44-0189-443E-9816-D951F596****"
}
Kode kesalahan
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | Duplicate.TagKey | The Tag.N.Key contain duplicate key. | Terdapat kunci duplikat dalam tag. Pastikan kunci unik. |
| 400 | InvalidTagKey.Malformed | The specified Tag.n.Key is not valid. | Kunci tag yang ditentukan tidak valid. Kunci tag tidak boleh kosong atau null, dapat berisi hingga 128 karakter, dan tidak boleh dimulai dengan "aliyun" atau "acs:" atau mengandung "http://" atau "https://". |
| 400 | InvalidTagValue.Malformed | The specified Tag.n.Value is not valid. | Nilai tag yang ditentukan tidak valid. Nilai tag dapat berisi hingga 128 karakter dan tidak boleh mengandung "http://" atau "https://". |
| 400 | InvalidRegionId.MalFormed | The specified RegionId is not valid. | |
| 400 | InvalidParameter.Arns | The specified Arns is not valid. | Parameter Arns tidak valid. Periksa parameter dan coba lagi. |
| 500 | InternalError | The request processing has failed due to an internal error and you may retry later or contact support with the request ID. | |
| 403 | InvalidSnapshotId.EncryptedNotSupport | The specified snapshot with encrypted does not support copy. | |
| 403 | InvalidSnapshotId.NotFound | The specified snapshot is not exists. | Snapshot yang ditentukan tidak ada. |
| 403 | InvalidSnapshotCategory.NotSupportCopy | The specified snapshot's category does not support copy. | |
| 403 | InvalidUser.NotInWhiteList | The user is not in the white list of copying snapshot. | Anda tidak memiliki izin untuk melakukan operasi ini. |
| 403 | InvalidAccountStatus.NotEnoughBalance | Your account does not have enough balance. | |
| 403 | InvalidAccountStatus.SnapshotServiceUnavailable | Snapshot service has not been opened yet. | Layanan snapshot tidak diaktifkan. Operasi tidak dapat dilakukan. |
| 403 | InvalidSnapshotId.NotReady | The specified snapshot has not completed yet. | |
| 403 | InvalidOperation.Unauthorized | The specified operation is unauthorized. | |
| 403 | InvalidOperation.UnfinishedCrossRegionCopy | This disk has unfinished cross-region copy snapshots in the target region. | Disk memiliki tugas salin snapshot lintas wilayah yang sedang berlangsung. |
| 403 | InvalidOperation.NotSupportCopyInSameRegion | Copying snapshot in the same region is not supported. | Wilayah sumber dan Wilayah tujuan untuk menyalin snapshot tidak boleh sama. |
| 403 | InvalidSnapshotName.Malformed | The specified SnapshotName is malformed. | |
| 403 | InvalidDescription.Malformed | The specified description is malformed. | |
| 403 | InvalidRetentionDays.Malformed | The specified RetentionDays is not valid. | |
| 403 | InvalidRegionId.NotSupportedEncryptedSnapshotCopy | The specified region not support copy encrypted snapshot. | |
| 403 | InvalidRegion.NotSupport | The specified region does not support byok. | Wilayah yang ditentukan tidak mendukung Bring Your Own Key (BYOK). |
| 403 | InvalidRegionId.NotSupportEncryptAlgorithm | The current region does not support creating encrypted disks with EncryptAlgorithm. | |
| 403 | InvalidRegionId.NotExists | Region not exists. | |
| 403 | InvalidEncryptAlgorithm | The specified parameter EncryptAlgorithm is not valid. | |
| 403 | InvalidEncrypted.NotMatchKmsKeyId | The specified parameter Encrypted must be true when KmsKeyId is not empty. | |
| 403 | InvalidEncrypted.NotMatchEncryptAlgorithm | The specified parameter Encrypted must be true when EncryptAlgorithm is not empty. | |
| 403 | InvalidEncrypted.NotSupportDecrypt | Encrypted snapshot not support copy to decrypt snapshot. | |
| 403 | InvalidSnapshotCategory.NotSupportCrossRegionCopy | The specified snapshot does not support cross-region copy. | |
| 403 | InvalidSnapshotCategory.NotSupportEncryptedCopy | The specified snapshot does not support encrypted copy. | |
| 403 | InvalidParameter.KmsNotEnabled | The specified operation need enable KMS. | |
| 403 | InvalidParameter.DataEncryptedKeyCreateFailed | Failed to create the KMS data encryption key. Please verify that the current KMS key has authorized the ECS service to use it. If the issue persists; contact KMS Technical Support. | |
| 403 | InvalidParameter.KMSKeyId.NotFound | The specified KMSKeyId does not exist. | |
| 403 | InvalidParameter.KMSKeyId.KMSUnauthorized | ECS service does not have permission to access your KMS key. Please verify that the specified KMS key has authorized the ECS service. | |
| 403 | InvalidKMSKeyId.NotSymmetric | The specified parameter KmsKeyId must be symmetric. | |
| 403 | QuotaExceed.SnapshotQuota | The quota is insufficient. Please contact your channel partner to increase the quota. | |
| 403 | InvalidOperation.UnfinishedEncryptedSnapshotCopy | This disk has unfinished encrypted copy snapshots in the target region. | Disk memiliki tugas salin snapshot terenkripsi yang sedang berlangsung. |
| 403 | InvalidParameterDestinationStorageLocationArn.Unauthorized | The operation has failed due to lack of permission for the specified "DestinationStorageLocationArn". Please use a resource with appropriate permission for the operation. | |
| 403 | InvalidParameterDestinationStorageLocationArn.RegionNotMatch | The region information in the specified parameter "DestinationStorageLocationArn" is inconsistent with "DestinationRegionId". Please use the correct information for the operation. | |
| 403 | InvalidSnapshot.StorageLocationNotSupported | The storage location of the current snapshot does not support this operation. | |
| 403 | InvalidSnapshot.EncryptedNotSupported | The current operation does not support the use of encrypted snapshots. | Operasi ini tidak didukung untuk snapshot terenkripsi. |
| 403 | InvalidParameterDestinationStorageLocationArn.Malformed | The specified DestinationStorageLocationArn is malformed. | |
| 403 | OperationDenied.NonCompliantDestinationRegion | The copy operation to the destination region is not in compliance with regulations. | Wilayah tujuan tidak memenuhi persyaratan kepatuhan keamanan. |
| 403 | OperationDenied.SnapshotCategoryNotSupportCopy | The specified category of snapshot not support copy. | Tipe snapshot yang ditentukan tidak mendukung penyalinan. |
| 403 | InvalidParameter.KMSKeyId.CMKNotEnabled | The CMK (Customer Master Key) must be in an active state. | Customer master key (CMK) harus dalam status aktif. |
| 403 | InvalidParameter.KMSKeyId.CMKUnauthorized | The CMK(Customer Master Key) lacks authorization to add tags to the ECS service. | ECS tidak memiliki izin untuk mengenkripsi atau mendekripsi CMK Anda. |
| 409 | InvalidOperation.Conflict | Request was denied due to conflict with a previous request. Please try again later. |
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.