Modifica o nome ou a descrição de uma conexão de emparelhamento de VPC.
Descrição da operação
-
ModifyVpcPeerConnection é uma operação assíncrona. Após o envio de uma solicitação, o sistema retorna um RequestId enquanto executa a tarefa em segundo plano. Chame a operação GetVpcPeerConnectionAttribute para consultar o status da conexão de emparelhamento de VPC.
-
Updating indica que a instância está sendo modificada.
-
Activated indica que a modificação foi concluída.
-
-
A operação ModifyVpcPeerConnection não oferece suporte a solicitações simultâneas para modificar a mesma conexão de emparelhamento de VPC.
Experimente agora
Testar
Autorização RAM
|
Ação |
Nível de acesso |
Tipo de recurso |
Chave de condição |
Ação dependente |
|
vpc:ModifyVpcPeerConnection |
update |
*All Resource
|
Nenhuma | Nenhuma |
Parâmetros da solicitação
|
Parâmetro |
Tipo |
Obrigatório |
Descrição |
Exemplo |
| InstanceId |
string |
Sim |
O ID da conexão de emparelhamento de VPC. |
pcc-lnk0m24khwvtkm**** |
| Name |
string |
Não |
O novo nome da conexão de emparelhamento de VPC. O nome deve ter de 1 a 128 caracteres e não pode começar com |
vpcpeername |
| Description |
string |
Não |
A nova descrição da conexão de emparelhamento de VPC. A descrição deve ter de 1 a 256 caracteres e não pode começar com |
newdescription |
| Bandwidth |
integer |
Não |
A nova largura de banda da conexão de emparelhamento de VPC. Unidade: Mbps. O valor deve ser um número inteiro maior que 0. |
100 |
| DryRun |
boolean |
Não |
Especifica se deve ser realizado um dry run. Valores válidos:
|
false |
| ClientToken |
string |
Não |
O token do cliente usado para garantir a idempotência da solicitação. Gere um token exclusivo no seu cliente para cada solicitação. O token pode conter apenas caracteres ASCII. Nota
Se você não especificar este parâmetro, o sistema usará automaticamente o RequestId da solicitação como o ClientToken. O RequestId pode ser diferente para cada solicitação. |
0c593ea1-3bea-11e9-b96b-88e9fe637760 |
| LinkType |
string |
Não |
O tipo de link. Valores válidos: Platinum e Gold. O valor padrão é Gold. Nota
Se você especificar este parâmetro, certifique-se de criar uma conexão de emparelhamento entre regiões. |
Gold |
Elementos de resposta
|
Elemento |
Tipo |
Descrição |
Exemplo |
|
object |
O objeto de resposta. |
||
| RequestId |
string |
O ID da solicitação. |
880C99E1-449B-524A-B81F-1EC53D2A7EAC |
Exemplos
Resposta de sucesso
JSON formato
{
"RequestId": "880C99E1-449B-524A-B81F-1EC53D2A7EAC"
}
Códigos de erro
|
Código de status HTTP |
Código de erro |
Mensagem de erro |
Descrição |
|---|---|---|---|
| 400 | ResourceNotFound.InstanceId | The specified resource of %s is not found. | The specified instance is not found |
| 400 | IncorrectStatus.VpcPeer | The status of %s [%s] is incorrect. | The status of the peer-to-peer connection instance does not meet the requirements. In this status, the peer-to-peer connection instance cannot be received. |
| 400 | IncorrectBusinessStatus.VpcPeer | The business status of %s [%s] is incorrect. | The current instance status is abnormal and the current operation is not allowed. |
| 400 | OperationFailed.BandwidthCannotBeChangedInSameRegion | The operation failed because the bandwidth cannot be changed in the same region. | The operation failed because VpcPeer instances in the same region are not allowed to modify the bandwidth value. |
| 400 | QuotaExceeded.Bandwidth | The quota of bandwidth is exceeded. | The specified bandwidth is invalid. |
| 400 | OperationFailed.InterRegionLinkTypeNotSupported | The same region not supported link type feature. | Link type characteristics are not supported in the same region. |
| 400 | OperationFailed.RegionIdNotSupportLinkType | The feature link type is not supported in the region. | The gold, silver and copper settings for this feature are not supported in the region. |
| 400 | OperationFailed.SpecificLinkTypeNotSupported | The operation failed because the special link type of user is not opened. | The account does not support special link types. |
| 400 | OperationDenied.ServiceManagedInstance | Operation is denied because the specified instance belongs to service manager. | |
| 400 | OperationFailed.ChargeTypeNotSupported | Operation failed because the CDT charge type of receiver or accepter does not support the Underlay link type. |
Consulte Códigos de Erro para uma lista completa.
Notas de versão
Consulte Notas de Versão para uma lista completa.