Copia um snapshot padrão ou criptografado de uma região para outra.
Descrição da operação
Ao chamar esta operação, observe os seguintes itens:
O novo snapshot não pode ser usado para reverter o disco em nuvem associado ao snapshot de origem.
Snapshots locais não podem ser copiados.
Experimente agora
Testar
Autorização RAM
|
Ação |
Nível de acesso |
Tipo de recurso |
Chave de condição |
Ação dependente |
|
ecs:CopySnapshot |
create |
*Snapshot
|
Nenhuma | Nenhuma |
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 publicamente. |
rg-bp67acfmxazb4p**** |
| Tag |
array<object> |
Não |
As informações de tag do novo snapshot. |
|
|
object |
Não |
As informações de tag do novo snapshot. |
||
| Key |
string |
Não |
A chave da tag do novo snapshot. Uma vez especificada, a chave da tag não pode ser uma string vazia. A chave da tag pode ter até 128 caracteres e não pode começar com aliyun ou acs:. Não pode conter http:// ou https://. |
TestKey |
| Value |
string |
Não |
O valor da tag do novo snapshot. Uma vez especificado, o valor da tag pode ser uma string vazia. O valor da tag pode ter até 128 caracteres e não pode começar com aliyun ou acs:. Não pode conter http:// ou https://. |
TestValue |
| RegionId |
string |
Sim |
O ID da região do snapshot de origem. Você pode chamar DescribeRegions para consultar a lista de regiões mais recente. |
cn-chengdu |
| DestinationRegionId |
string |
Sim |
O ID da região de destino para a qual o snapshot será copiado. |
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 e deve começar com uma letra ou um caractere chinês. Não pode começar com http:// ou https://. O nome pode conter letras, dígitos e caracteres Unicode classificados como letras. Também pode conter dois-pontos (:), sublinhados (_), pontos (.) ou hifens (-). Valor padrão: null. |
CopySnapshotDemo |
| DestinationSnapshotDescription |
string |
Sim |
A descrição do novo snapshot. A descrição deve ter de 2 a 256 caracteres e não pode começar com http:// ou https://. Valor padrão: null. |
CopySnapshotDemo |
| RetentionDays |
integer |
Não |
O período de retenção do novo snapshot, em dias. O snapshot é liberado automaticamente quando o período de retenção expira. Valores válidos: 1 a 65536. Valor padrão: null, o que indica que o snapshot não é liberado automaticamente. |
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 prévia por convite e não está disponível publicamente. |
|
|
object |
Não |
|||
| RoleType |
string |
Não |
Nota
Este parâmetro não está disponível publicamente. |
null |
| Rolearn |
string |
Não |
Nota
Este parâmetro não está disponível publicamente. |
null |
| AssumeRoleFor |
integer |
Não |
Nota
Este parâmetro não está disponível publicamente. |
0 |
| DestinationStorageLocationArn |
string |
Não |
Nota
Este parâmetro não está disponível publicamente. |
null |
| ClientToken |
string |
Não |
Garante a idempotência da solicitação. O valor é gerado pelo seu cliente e deve ser único entre diferentes solicitações. O valor de ClientToken pode conter apenas caracteres ASCII e não pode exceder 64 caracteres. Para mais informações, consulte Como garantir a idempotência. |
123e4567-e89b-12d3-a456-426655440000 |
Elementos de resposta
|
Elemento |
Tipo |
Descrição |
Exemplo |
|
object |
|||
| SnapshotId |
string |
O ID do novo snapshot. |
s-bp17441ohwka0yui**** |
| RequestId |
string |
O ID da solicitação. |
C8B26B44-0189-443E-9816-D951F596**** |
Exemplos
Resposta de sucesso
JSON formato
{
"SnapshotId": "s-bp17441ohwka0yui****",
"RequestId": "C8B26B44-0189-443E-9816-D951F596****"
}
Códigos de erro
|
Código de status HTTP |
Código de erro |
Mensagem de erro |
Descrição |
|---|---|---|---|
| 400 | Duplicate.TagKey | The Tag.N.Key contain duplicate key. | Existem chaves duplicadas nas tags. Mantenha as chaves únicas. |
| 400 | InvalidTagKey.Malformed | The specified Tag.n.Key is not valid. | A chave da tag especificada é inválida. A chave da tag não pode estar vazia ou nula, pode conter até 128 caracteres e não pode começar com "aliyun" ou "acs:" nem conter "http://" ou "https://". |
| 400 | InvalidTagValue.Malformed | The specified Tag.n.Value is not valid. | O valor da tag especificado é inválido. O valor da tag pode conter até 128 caracteres e não pode conter "http://" ou "https://". |
| 400 | InvalidRegionId.MalFormed | The specified RegionId is not valid. | |
| 400 | InvalidParameter.Arns | The specified Arns is not valid. | O parâmetro Arns é 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. |
| 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 | Snapshot service has not been opened yet. | O serviço de snapshot não está ativado. A operação não pode ser realizada. |
| 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. | O disco possui uma tarefa de cópia de snapshot entre regiões em andamento. |
| 403 | InvalidOperation.NotSupportCopyInSameRegion | Copying snapshot in the same region is not supported. | As regiões de origem e destino para copiar um snapshot não podem ser as mesmas. |
| 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. | A região especificada não suporta 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. | O disco possui uma tarefa de cópia de snapshot criptografado em andamento. |
| 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 conformidade de segurança. |
| 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 CMK (Customer Master Key) must be in an active state. | A chave mestra do cliente (CMK) deve estar no estado ativo. |
| 403 | InvalidParameter.KMSKeyId.CMKUnauthorized | The CMK(Customer Master Key) lacks authorization to add tags to the ECS service. | O ECS não tem permissão para criptografar ou descriptografar sua CMK. |
| 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.