標準スナップショットまたは暗号化されたスナップショットをあるリージョンから別のリージョンへコピーします。
操作説明
このオペレーションを呼び出す際は、次の項目に注意してください:
新しいスナップショットでは、ソーススナップショットに関連付けられているクラウドディスクをロールバックできません。
ローカルスナップショットはコピーできません。
今すぐお試しください
テスト
RAM 認証
|
アクション |
アクセスレベル |
リソースタイプ |
条件キー |
依存アクション |
|
ecs:CopySnapshot |
create |
*Snapshot。
|
なし | なし |
リクエストパラメーター
|
パラメーター |
型 |
必須 / 任意 |
説明 |
例 |
| ResourceGroupId |
string |
任意 |
このパラメーターは一般公開されていません。 |
rg-bp67acfmxazb4p**** |
| Tag |
array<object> |
任意 |
新しいスナップショットのタグです。 |
|
|
object |
任意 |
新しいスナップショットのタグです。 |
||
| Key |
string |
任意 |
新しいスナップショットのタグキーです。指定した場合、タグキーを空の文字列にすることはできません。タグキーの長さは最大 128 文字で、 |
TestKey |
| Value |
string |
任意 |
新しいスナップショットのタグ値です。指定した場合、タグ値を空の文字列にすることができます。タグ値の長さは最大 128 文字で、 |
TestValue |
| RegionId |
string |
必須 |
ソーススナップショットのリージョン ID です。DescribeRegions API を呼び出して、最新のリージョンリストを照会できます。 |
cn-chengdu |
| DestinationRegionId |
string |
必須 |
スナップショットのコピー先リージョンの ID です。 |
us-east-1 |
| SnapshotId |
string |
必須 |
ソーススナップショットの ID です。 |
s-bp67acfmxazb4p**** |
| DestinationSnapshotName |
string |
必須 |
新しいスナップショットの名前です。名前は 2~128 文字で、先頭には英字または漢字を使用する必要があります。 デフォルト値:null。 |
CopySnapshotDemo |
| DestinationSnapshotDescription |
string |
必須 |
新しいスナップショットの説明です。説明は 2~256 文字で、 デフォルト値:null。 |
CopySnapshotDemo |
| RetentionDays |
integer |
任意 |
新しいスナップショットの保持期間 (日数) です。保持期間が終了すると、スナップショットは自動的にリリースされます。有効な値:1~65536。 デフォルト値:null。これは、スナップショットが自動リリースの対象ではないことを示します。 |
60 |
| Encrypted |
boolean |
任意 |
新しいスナップショットを暗号化するかどうかを指定します。有効な値:
デフォルト値:false。 |
false |
| KMSKeyId |
string |
任意 |
コピー先リージョンの Key Management Service (KMS) のカスタマーマスターキー (CMK) です。 |
0e478b7a-4262-4802-b8cb-00d3fb40**** |
| Arn |
array<object> |
任意 |
説明
このパラメーターは招待制プレビューのため、一般公開されていません。 |
|
|
object |
任意 |
|||
| AssumeRoleFor |
integer |
任意 |
説明
このパラメーターは招待制プレビューのため、一般公開されていません。 |
0 |
| RoleType |
string |
任意 |
説明
このパラメーターは招待制プレビューのため、一般公開されていません。 |
null |
| Rolearn |
string |
任意 |
説明
このパラメーターは招待制プレビューのため、一般公開されていません。 |
null |
| DestinationStorageLocationArn |
string |
任意 |
説明
このパラメーターは一般公開されていません。 |
null |
| ClientToken |
string |
任意 |
リクエストのべき等性を保証します。クライアント側でパラメーター値を生成し、リクエストごとにユニークな値になるようにしてください。クライアントトークンの値に含めることができるのは ASCII 文字のみです。長さは 64 文字を超えないようにしてください。詳細については、「べき等性を確保する方法」をご参照ください。 |
123e4567-e89b-12d3-a456-426655440000 |
レスポンスフィールド
|
フィールド |
型 |
説明 |
例 |
|
object |
|||
| RequestId |
string |
リクエスト ID。 |
C8B26B44-0189-443E-9816-D951F596**** |
| SnapshotId |
string |
新しいスナップショットの ID。 |
s-bp17441ohwka0yui**** |
例
成功レスポンス
JSONJSON
{
"RequestId": "C8B26B44-0189-443E-9816-D951F596****",
"SnapshotId": "s-bp17441ohwka0yui****"
}
エラーコード
|
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. | 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. | 指定されたリージョンはサポートされていません。 |
| 403 | InvalidRegionId.NotSupportEncryptAlgorithm | The current region does not support creating encrypted disks with EncryptAlgorithm. | |
| 403 | InvalidRegionId.NotExists | Region not exists. | |
| 403 | InvalidEncryptAlgorithm | The specified EncryptAlgorithm is not valid. Ensure the value is a supported encryption algorithm such as AES-256. | |
| 403 | InvalidEncrypted.NotMatchKmsKeyId | The Encrypted parameter must be set to true when KMSKeyId is specified. Please adjust the parameters and try again. | |
| 403 | InvalidEncrypted.NotMatchEncryptAlgorithm | The Encrypted parameter must be set to true when EncryptAlgorithm is specified. Please adjust the parameters and try again. | |
| 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 | The ECS service is not authorized to access your KMS key. Please grant the ECS service permission to use the key and try again. | |
| 403 | InvalidParameter.KMSKeyId.NotFound | The specified KMSKeyId does not exist. Please verify that the key ID is correct and that the key resides in the current region. | |
| 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 KMSKeyId must be a symmetric key. Please use a symmetric KMS key such as an AES-256 key. | |
| 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 specified KMS key must be in an enabled state. Please enable the key in the KMS console and try again. | |
| 403 | InvalidParameter.KMSKeyId.CMKUnauthorized | The specified KMS key is not authorized for the ECS service. Please grant the ECS service permission to use the key in the KMS console and try again. | |
| 403 | OperationDenied.NotInArnsWhitelist | The current account is not authorized for this operation. Please check the ARNS whitelist configuration. | |
| 403 | OperationDenied.KMSKeyUnauthorized | The operation is denied due to missing KMS key authorization. Please check the KMS key permissions and ensure the key is properly authorized for this operation. | |
| 409 | InvalidOperation.Conflict | Request was denied due to conflict with a previous request. Please try again later. |
完全なリストについては、「エラーコード」をご参照ください。
変更履歴
完全なリストについては、「変更履歴」をご参照ください。