標準スナップショットまたは暗号化されたスナップショットをあるリージョンから別のリージョンにコピーします。
操作説明
この操作を呼び出す際は、以下の点にご注意ください。
新しいスナップショットを使用して、ソーススナップショットに関連付けられているクラウドディスクをロールバックすることはできません。
ローカルスナップショットはコピーできません。
今すぐお試しください
テスト
RAM 認証
|
アクション |
アクセスレベル |
リソースタイプ |
条件キー |
依存アクション |
|
ecs:CopySnapshot |
create |
*Snapshot。
|
なし | なし |
リクエストパラメーター
|
パラメーター |
型 |
必須 / 任意 |
説明 |
例 |
| ResourceGroupId |
string |
任意 |
このパラメーターは公開されていません。 |
rg-bp67acfmxazb4p**** |
| Tag |
array<object> |
任意 |
新しいスナップショットのタグ情報。 |
|
|
object |
任意 |
新しいスナップショットのタグ情報。 |
||
| Key |
string |
任意 |
新しいスナップショットのタグキー。指定した場合、タグキーを空文字列にすることはできません。タグキーの長さは最大 128 文字で、aliyun または acs: で始まることはできません。http:// または https:// を含めることはできません。 |
TestKey。 |
| Value |
string |
任意 |
新しいスナップショットのタグ値。指定した場合、タグ値を空文字列にすることができます。タグ値の長さは最大 128 文字で、aliyun または acs: で始まることはできません。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:// で始めることはできません。名前には、英字、数字、および文字分類に属する Unicode 文字を含めることができます。また、コロン (:)、アンダースコア (_)、ピリオド (.)、ハイフン (-) を含めることもできます。 デフォルト値: null。 |
CopySnapshotDemo。 |
| DestinationSnapshotDescription |
string |
必須 |
新しいスナップショットの説明。説明の長さは 2~256 文字で、http:// または https:// で始めることはできません。 デフォルト値: null。 |
CopySnapshotDemo。 |
| RetentionDays |
integer |
任意 |
新しいスナップショットの保持期間(日数)。保持期間が終了すると、スナップショットは自動リリースの対象となります。有効な値: 1~65536。 デフォルト値: null。null はスナップショットが自動リリースの対象とならないことを示します。 |
60 |
| Encrypted |
boolean |
任意 |
クラウドディスクを暗号化するかどうかを指定します。有効な値:
デフォルト値: false。 |
false。 |
| KMSKeyId |
string |
任意 |
ターゲットリージョンのカスタマーマスターキー (CMK)。 |
0e478b7a-4262-4802-b8cb-00d3fb40**** |
| Arn |
array<object> |
任意 |
説明
このパラメーターは招待プレビュー中であり、公開されていません。 |
|
|
object |
任意 |
|||
| RoleType |
string |
任意 |
説明
このパラメーターは公開されていません。 |
null。 |
| Rolearn |
string |
任意 |
説明
このパラメーターは公開されていません。 |
null。 |
| AssumeRoleFor |
integer |
任意 |
説明
このパラメーターは公開されていません。 |
0 |
| DestinationStorageLocationArn |
string |
任意 |
説明
このパラメーターは公開されていません。 |
null。 |
| ClientToken |
string |
任意 |
リクエストのべき等性を確保します。値はクライアント側で生成され、異なるリクエスト間で一意である必要があります。ClientToken の値には 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. | 指定されたタグキーが無効です。タグキーは空または null にできず、最大 128 文字まで指定可能で、"aliyun" または "acs:" で始まることはできず、"http://" または "https://" を含むことはできません。 |
| 400 | InvalidTagValue.Malformed | The specified Tag.n.Value is not valid. | 指定されたタグ値が無効です。タグ値は最大 128 文字まで指定可能で、"http://" または "https://" を含むことはできません。 |
| 400 | InvalidRegionId.MalFormed | The specified RegionId is not valid. | |
| 400 | InvalidParameter.Arns | The specified Arns is not valid. | Arns パラメーターが有効ではありません。値を確認して、もう一度お試しください。 |
| 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. | 指定されたスナップショットが存在しません。 |
| 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 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. | このリージョンでは 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. | ディスクで暗号化するスナップショットのコピータスクが進行中です。 |
| 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 malformed. | |
| 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. | カスタマーマスターキー (CMK) はアクティブな状態である必要があります。 |
| 403 | InvalidParameter.KMSKeyId.CMKUnauthorized | The CMK(Customer Master Key) lacks authorization to add tags to the ECS service. | ECS に CMK を暗号化または復号する権限がありません。 |
| 403 | OperationDenied.NotInArnsWhitelist | The current account is not authorized for this operation. Please check the ARNS whitelist configuration. | |
| 409 | InvalidOperation.Conflict | Request was denied due to conflict with a previous request. Please try again later. |
完全なリストについては、「エラーコード」をご参照ください。
変更履歴
完全なリストについては、「変更履歴」をご参照ください。