標準スナップショットまたは暗号化されたスナップショットを、あるリージョンから別のリージョンにコピーします。
操作説明
この操作を呼び出す際は、次の点にご注意ください。
新しいスナップショット (スナップショットコピー) を使用して、ソーススナップショット (コピーされたスナップショット) が作成されたディスクをロールバックすることはできません。
ローカルスナップショットはコピーできません。
今すぐお試しください
テスト
RAM 認証
|
アクション |
アクセスレベル |
リソースタイプ |
条件キー |
依存アクション |
|
ecs:CopySnapshot |
create |
*Snapshot
|
なし | なし |
リクエストパラメーター
|
パラメーター |
型 |
必須 / 任意 |
説明 |
例 |
| ResourceGroupId |
string |
任意 |
このパラメーターは公開されていません。 |
rg-bp67acfmxazb4p**** |
| Tag |
array<object> |
任意 |
新しいスナップショットのタグキーとタグ値です。 |
|
|
object |
任意 |
新しいスナップショットのタグキーとタグ値です。 |
||
| Key |
string |
任意 |
新しいスナップショットに追加するタグ N のキーです。タグキーは空の文字列にすることはできません。長さは最大 128 文字で、`acs:` または `aliyun` で始めることはできません。`http://` または `https://` を含めることはできません。 |
TestKey |
| Value |
string |
任意 |
新しいスナップショットに追加するタグ N の値です。タグ値は空の文字列にすることができます。長さは最大 128 文字で、`acs:` または `aliyun` で始めることはできません。`http://` または `https://` を含めることはできません。 |
TestValue |
| RegionId |
string |
必須 |
ソーススナップショットのリージョン ID です。DescribeRegions 操作を呼び出して、最新のリージョンリストを照会できます。 |
cn-chengdu |
| DestinationRegionId |
string |
必須 |
ソーススナップショットのコピー先となるターゲットリージョンの ID です。 |
us-east-1 |
| SnapshotId |
string |
必須 |
ソーススナップショットの ID です。 |
s-bp67acfmxazb4p**** |
| DestinationSnapshotName |
string |
必須 |
新しいスナップショットの名前です。名前は 2~128 文字の長さである必要があります。名前は文字で始まる必要があり、`http://` または `https://` で始めることはできません。名前に使用できる文字は、英字、数字、コロン (:)、アンダースコア (_)、ピリオド (.)、ハイフン (-) です。 このパラメーターは、デフォルトでは空のままです。 |
CopySnapshotDemo |
| DestinationSnapshotDescription |
string |
必須 |
新しいスナップショットの説明です。説明は 2~256 文字の長さである必要があり、`http://` または `https://` で始めることはできません。 このパラメーターは、デフォルトでは空です。 |
CopySnapshotDemo |
| RetentionDays |
integer |
任意 |
新しいスナップショットの保持期間です。単位:日。新しいスナップショットは、保持期間が終了すると自動的にリリースされます。有効な値:1~65536。 このパラメーターはデフォルトでは空であり、スナップショットが自動的にリリースされないことを示します。 |
60 |
| Encrypted |
boolean |
任意 |
新しいスナップショットを暗号化するかどうかを指定します。有効な値:
デフォルト値:false。 |
false |
| KMSKeyId |
string |
任意 |
ターゲットリージョンの Key Management Service (KMS) のカスタマーマスターキー (CMK) の ID です。 |
0e478b7a-4262-4802-b8cb-00d3fb40**** |
| Arn |
array<object> |
任意 |
説明
このパラメーターは現在、招待プレビュー中であり、一般には利用できません。 |
|
|
object |
任意 |
|||
| RoleType |
string |
任意 |
説明
このパラメーターは公開されていません。 |
null |
| Rolearn |
string |
任意 |
説明
このパラメーターは公開されていません。 |
null |
| AssumeRoleFor |
integer |
任意 |
説明
このパラメーターは公開されていません。 |
0 |
| DestinationStorageLocationArn |
string |
任意 |
説明
このパラメーターは公開されていません。 |
null |
| ClientToken |
string |
任意 |
リクエストのべき等性を保証するために使用されるクライアントトークンです。クライアントを使用してトークンを生成できますが、トークンが異なるリクエスト間で一意であることを確認する必要があります。トークンには ASCII 文字のみを含めることができ、長さは 64 文字を超えることはできません。詳細については、「べき等性の確保方法」をご参照ください。 |
123e4567-e89b-12d3-a456-426655440000 |
レスポンスフィールド
|
フィールド |
型 |
説明 |
例 |
|
object |
|||
| SnapshotId |
string |
新しいスナップショットの ID です。 |
s-bp17441ohwka0yui**** |
| RequestId |
string |
リクエスト ID です。 |
C8B26B44-0189-443E-9816-D951F596**** |
例
成功レスポンス
JSONJSON
{
"SnapshotId": "s-bp17441ohwka0yui****",
"RequestId": "C8B26B44-0189-443E-9816-D951F596****"
}
エラーコード
|
HTTP ステータスコード |
エラーコード |
エラーメッセージ |
説明 |
|---|---|---|---|
| 400 | Duplicate.TagKey | The Tag.N.Key contain duplicate key. | |
| 400 | InvalidTagKey.Malformed | The specified Tag.n.Key is not valid. | |
| 400 | InvalidTagValue.Malformed | The specified Tag.n.Value is not valid. | |
| 400 | InvalidRegionId.MalFormed | The specified RegionId is not valid. | |
| 400 | InvalidParameter.Arns | The specified Arns is not valid. | |
| 500 | InternalError | The request processing has failed due to some unknown error, exception or failure. | |
| 403 | InvalidSnapshotId.EncryptedNotSupport | The specified snapshot with encrypted does not support copy. | |
| 403 | InvalidSnapshotId.NotFound | The specified snapshot is not exists. | |
| 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. | |
| 403 | InvalidAccountStatus.NotEnoughBalance | Your account does not have enough balance. | |
| 403 | InvalidAccountStatus.SnapshotServiceUnavailable | Snapshot service has not been opened yet. | |
| 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. | |
| 403 | InvalidOperation.NotSupportCopyInSameRegion | Copying snapshot in the same region is not supported. | |
| 403 | InvalidSnapshotName.Malformed | The specified SnapshotName is wrongly formed. | |
| 403 | InvalidDescription.Malformed | The specified description is wrongly formed. | |
| 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. | |
| 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 is not support cross region copy. | |
| 403 | InvalidSnapshotCategory.NotSupportEncryptedCopy | The specified snapshot is not support encrypted copy. | |
| 403 | InvalidParameter.KmsNotEnabled | The specified operation need enable KMS. | |
| 403 | InvalidParameter.DataEncryptedKeyCreateFailed | Create kms data encrypted key fail. If you need further assistance, you can contact the KMS Technical Support. | |
| 403 | InvalidParameter.KMSKeyId.NotFound | The specified KMSKeyId does not exist. | |
| 403 | InvalidParameter.KMSKeyId.KMSUnauthorized | ECS service have no right to access your KMS. | |
| 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. | |
| 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. | |
| 403 | InvalidParameterDestinationStorageLocationArn.Malformed | The specified DestinationStorageLocationArn is wrongly formed. | |
| 403 | OperationDenied.NonCompliantDestinationRegion | The copy operation to the destination region is not in compliance with regulations. | |
| 403 | OperationDenied.SnapshotCategoryNotSupportCopy | The specified category of snapshot not support copy. | |
| 403 | InvalidParameter.KMSKeyId.CMKNotEnabled | The CMK (Customer Master Key) must be in an active state. | |
| 403 | InvalidParameter.KMSKeyId.CMKUnauthorized | The CMK(Customer Master Key) lacks authorization to add tags to the ECS service. | |
| 409 | InvalidOperation.Conflict | Request was denied due to conflict with a previous request, please try again later. |
完全なリストについては、「エラーコード」をご参照ください。
変更履歴
完全なリストについては、「変更履歴」をご参照ください。