Associa um endereço IP virtual de alta disponibilidade (HAVIP) a uma instância do Edge Node Service (ENS) ou interface de rede elástica (ENI).
Descrição da operação
Ao associar um HAVIP, observe os seguintes itens:
-
Um HAVIP entra em vigor imediatamente após ser associado. Você não precisa reiniciar a instância ENS. No entanto, é necessário associar o HAVIP à ENI da instância ENS.
-
O HAVIP e a instância ENS devem pertencer ao mesmo vSwitch.
-
A instância ENS deve estar no estado Running ou Stopped.
-
O HAVIP deve estar no estado Available ou InUse.
-
AssociateHaVip é uma operação assíncrona. Após o envio de uma solicitação, o sistema retorna um ID de solicitação e executa a tarefa em segundo plano. Você pode chamar a operação DescribeHaVips para consultar o status de um HAVIP:
Se o HAVIP estiver no estado Associating, o HAVIP está sendo associado.
Se o HAVIP estiver no estado InUse, o HAVIP está associado.
Experimente agora
Testar
Autorização RAM
|
Ação |
Nível de acesso |
Tipo de recurso |
Chave de condição |
Ação dependente |
|
ens:AssociateHaVip |
update |
*HaVip
|
Nenhuma | Nenhuma |
Parâmetros da solicitação
|
Parâmetro |
Tipo |
Obrigatório |
Descrição |
Exemplo |
| HaVipId |
string |
Sim |
O ID do HAVIP. |
havip-5p14t**** |
| InstanceId |
string |
Sim |
O ID da instância. |
i-50c4**** |
| InstanceType |
string |
Não |
O tipo da instância a ser associada ao HAVIP. Valores válidos:
|
EnsInstance |
Elementos de resposta
|
Elemento |
Tipo |
Descrição |
Exemplo |
|
object |
Schema da resposta. |
||
| RequestId |
string |
O ID da solicitação. |
CEF72CEB-54B6-4AE8-B225-F876FF7BA984 |
Exemplos
Resposta de sucesso
JSON formato
{
"RequestId": "CEF72CEB-54B6-4AE8-B225-F876FF7BA984"
}
Códigos de erro
|
Código de status HTTP |
Código de erro |
Mensagem de erro |
Descrição |
|---|---|---|---|
| 400 | InstanceNotFound | The input parameter instancdId that is not found. | |
| 400 | Invalid%s | The specified parameter %s is invalid. | |
| 400 | Missing%s | You must specify the parameter %s. | |
| 400 | HaVipNotFound | The input parameter haVipId that is not found. | The specified HaVip does not exist. |
| 400 | IncorrectHaVipStatus | The status of the haVip is invalid. | HaVip status is incorrect |
| 400 | SystemError | Interface call error, please re-match, or contact the product. | Interface call error, please re-select |
| 400 | InstanceAlreadyAssociated | The instance is already bound. | The instance is already bound. |
| 400 | IncorrectNetworkInterfaceStatus | The operation could not be completed because the status of the specified network interface is invalid for this action. | The operation could not be completed because the status of the specified network interface is invalid for this action. |
| 400 | NetworkInterfaceNotFound | The specified network interface does not exist. | The specified network interface does not exist. |
| 400 | NetworkInterfaceTypeNotSupported | This network interface type cannot be used with the current operation. | This network interface type cannot be used with the current operation. |
| 400 | IncorrectInstanceVSwitch | The binding instance must be under the same VSwitch. | The binding instance must be under the same VSwitch. |
| 400 | IncorrectInstanceStatus | The current status of the instance does not support this operation. | The instance is in a state that does not support the current operation. |
| 400 | CountLimitExceed.HaVipOnInstance | The amount of HaVip associated with the specified Instance reach its limits. | The amount of HaVip associated with the specified Instance reach its limits. |
| 400 | CountLimitExceed.InstanceOnHaVip | The number of instances bound to HaVip has reached the limit. | The number of instances bound to HaVip has reached the limit. |
| 400 | NoPermission | Permission denied. | |
| 400 | InvalidParameter.%s | The specified field %s invalid. Please check it again. |
Consulte Códigos de Erro para uma lista completa.
Notas de versão
Consulte Notas de Versão para uma lista completa.