Copia um snapshot padrão ou um snapshot criptografado de uma região para outra.
Descrição da operação
Ao chamar esta operação, observe os seguintes itens:
Você não pode usar o novo snapshot para reverter o disco em nuvem a partir do qual o snapshot de origem foi criado.
Você não pode copiar snapshots locais.
Experimente agora
Testar
Autorização RAM
Parâmetros da solicitação
|
Parâmetro |
Tipo |
Obrigatório |
Descrição |
Exemplo |
| ResourceGroupId |
string |
Não |
Este parâmetro não está disponível. |
rg-bp67acfmxazb4p**** |
| Tag |
array<object> |
Não |
As tags do novo snapshot. |
|
|
object |
Não |
As tags do novo snapshot. |
||
| Key |
string |
Não |
A chave da tag do novo snapshot. Se você especificar este parâmetro, ele não poderá ser uma string vazia. A chave da tag pode ter até 128 caracteres de comprimento. Não pode começar com aliyun ou acs: e não pode conter http:// ou https://. |
TestKey |
| Value |
string |
Não |
O valor da tag do novo snapshot. Se você especificar este parâmetro, ele poderá ser uma string vazia. O valor da tag pode ter até 128 caracteres de comprimento. Não pode começar com aliyun ou acs: e não pode conter http:// ou https://. |
TestValue |
| RegionId |
string |
Sim |
O ID da região do snapshot de origem. Você pode chamar a operação DescribeRegions para consultar a lista de regiões mais recente. |
cn-chengdu |
| DestinationRegionId |
string |
Sim |
O ID da região de destino para o novo snapshot. |
us-east-1 |
| SnapshotId |
string |
Sim |
O ID do snapshot de origem. |
s-bp67acfmxazb4p**** |
| DestinationSnapshotName |
string |
Sim |
O nome do novo snapshot. O nome deve ter de 2 a 128 caracteres de comprimento. Deve começar com uma letra ou um caractere chinês e não pode começar com http:// ou https://. Pode conter letras Unicode, dígitos, dois-pontos (:), sublinhados (_), pontos (.) e hifens (-). Valor padrão: vazio. |
CopySnapshotDemo |
| DestinationSnapshotDescription |
string |
Sim |
A descrição do novo snapshot. A descrição deve ter de 2 a 256 caracteres de comprimento e não pode começar com http:// ou https://. Valor padrão: vazio. |
CopySnapshotDemo |
| RetentionDays |
integer |
Não |
O período de retenção do novo snapshot. Unidade: dias. O snapshot está sujeito à liberação automática quando o período de retenção expira. Valores válidos: 1 a 65536. Valor padrão: vazio, o que indica que o snapshot não está sujeito à liberação automática. |
60 |
| Encrypted |
boolean |
Não |
Especifica se o disco em nuvem deve ser criptografado. Valores válidos:
Valor padrão: false. |
false |
| KMSKeyId |
string |
Não |
A chave mestra do cliente (CMK) na região de destino. |
0e478b7a-4262-4802-b8cb-00d3fb40**** |
| Arn |
array<object> |
Não |
Nota
Este parâmetro está em visualização por convite e não é suportado. |
|
|
object |
Não |
|||
| AssumeRoleFor |
integer |
Não |
Nota
Este parâmetro não está disponível. |
0 |
| RoleType |
string |
Não |
Nota
Este parâmetro não está disponível. |
null |
| Rolearn |
string |
Não |
Nota
Este parâmetro não está disponível. |
null |
| DestinationStorageLocationArn |
string |
Não |
Nota
Este parâmetro não está disponível. |
null |
| ClientToken |
string |
Não |
O token de cliente usado para garantir a idempotência da solicitação. Você pode usar o cliente para gerar o valor, mas deve garantir que o valor seja exclusivo entre diferentes solicitações. O token pode conter apenas caracteres ASCII e não pode exceder 64 caracteres de comprimento. Para mais informações, consulte Como garantir a idempotência. |
123e4567-e89b-12d3-a456-426655440000 |
Elementos de resposta
|
Elemento |
Tipo |
Descrição |
Exemplo |
|
object |
|||
| RequestId |
string |
O ID da solicitação. |
C8B26B44-0189-443E-9816-D951F596**** |
| SnapshotId |
string |
O ID do novo snapshot. |
s-bp17441ohwka0yui**** |
Exemplos
Resposta de sucesso
JSON formato
{
"RequestId": "C8B26B44-0189-443E-9816-D951F596****",
"SnapshotId": "s-bp17441ohwka0yui****"
}
Códigos de erro
|
Código de status HTTP |
Código de erro |
Mensagem de erro |
Descrição |
|---|---|---|---|
| 400 | Duplicate.TagKey | The parameter Tag.N.Key contains duplicate values. Please remove the duplicate tag keys and try again. | |
| 400 | InvalidTagKey.Malformed | The specified Tag.n.Key is not valid. | O parâmetro de chave de tag especificado é inválido. |
| 400 | InvalidTagValue.Malformed | The specified Tag.n.Value is not valid. | O parâmetro de valor da tag especificado é inválido. |
| 400 | InvalidRegionId.MalFormed | The specified RegionId is not valid. | |
| 400 | InvalidParameter.Arns | The specified Arns is not valid. | O parâmetro Arns especificado é inválido. Verifique o parâmetro e tente novamente. |
| 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. | O snapshot especificado não existe. Verifique se o ID do snapshot está correto. |
| 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. | Você não está autorizado a realizar esta operação. |
| 403 | InvalidAccountStatus.NotEnoughBalance | Your account does not have enough balance. | |
| 403 | InvalidAccountStatus.SnapshotServiceUnavailable | The snapshot service has not been activated. Please activate it and try again. | |
| 403 | InvalidSnapshotId.NotReady | The creation of the specified snapshot is still in progress. Please wait for it to complete and try again. | |
| 403 | InvalidOperation.Unauthorized | The specified operation is unauthorized. | |
| 403 | InvalidOperation.UnfinishedCrossRegionCopy | This disk has unfinished cross-region copy snapshots in the target region. | O disco possui cópias incompletas de snapshots entre regiões. |
| 403 | InvalidOperation.NotSupportCopyInSameRegion | Copying snapshot in the same region is not supported. | As regiões de origem e de destino para copiar um snapshot não podem ser as mesmas. |
| 403 | InvalidSnapshotName.Malformed | The specified SnapshotName is malformed. | |
| 403 | InvalidDescription.Malformed | The specified parameter DestinationSnapshotDescription is not valid. Please ensure that the description is 2 to 256 characters long and does not start with "http://" or "https://" and try again. | |
| 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 customer master keys. Please choose another region or use a default KMS key and try again. | |
| 403 | InvalidRegionId.NotSupportEncryptAlgorithm | The encryption algorithm of the source snapshot does not support copying. Please choose another snapshot and try again. | |
| 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.KMSKeyId.KMSUnauthorized | 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 | 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. | O disco possui uma tarefa de cópia de snapshot criptografado incompleta. |
| 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. | Esta operação não é suportada para snapshots criptografados. |
| 403 | InvalidParameterDestinationStorageLocationArn.Malformed | The specified DestinationStorageLocationArn is malformed. | |
| 403 | OperationDenied.NonCompliantDestinationRegion | The copy operation to the destination region is not in compliance with regulations. | A região de destino não atende aos requisitos de segurança e conformidade. |
| 403 | OperationDenied.SnapshotCategoryNotSupportCopy | The specified category of snapshot not support copy. | O tipo de snapshot especificado não suporta cópia. |
| 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. | |
| 403 | InvalidOperation.CopyingDataToThisRegionUnsupported | Data transfer to the current region from other regions is not supported. | Os dados podem ser replicados para a região atual apenas a partir de regiões específicas. |
| 409 | InvalidOperation.Conflict | Request was denied due to conflict with a previous request. Please try again later. |
Consulte Códigos de Erro para uma lista completa.
Notas de versão
Consulte Notas de Versão para uma lista completa.