Atualiza as informações de uma instância de grupo de destino de rota, incluindo o nome, a descrição e os membros desativados.
Descrição da operação
- UpdateRouteTargetGroup é uma operação assíncrona. Após o envio de uma solicitação, o sistema retorna um ID de solicitação, mas o grupo de destino de rota ainda não foi atualizado. A tarefa de atualização ainda está sendo executada em segundo plano. Você pode chamar ListRouteTargetGroup para consultar o status de atualização do grupo de destino de rota:
Se o grupo de destino de rota estiver no estado Updating, o grupo de destino de rota está sendo atualizado.
Se o grupo de destino de rota estiver no estado Available, Unavailable, Switched ou Abnormal, o grupo de destino de rota foi atualizado.
Experimente agora
Testar
Autorização RAM
|
Ação |
Nível de acesso |
Tipo de recurso |
Chave de condição |
Ação dependente |
|
vpc:UpdateRouteTargetGroup |
update |
*RouteTargetGroup
|
Nenhuma | Nenhuma |
Sintaxe da solicitação
POST HTTP/1.1
Parâmetros da solicitação
|
Parâmetro |
Tipo |
Obrigatório |
Descrição |
Exemplo |
| RouteTargetGroupId |
string |
Sim |
O ID da instância do grupo de destino de rota. |
rtg-xxx |
| RouteTargetGroupName |
string |
Não |
O nome do grupo de destino de rota. O nome deve ter de 1 a 128 caracteres e não pode começar com http:// ou https://. |
myRouteTargetGroupName |
| RouteTargetGroupDescription |
string |
Não |
A descrição do grupo de destino de rota. A descrição deve ter de 1 a 256 caracteres e não pode começar com http:// ou https://. |
myRouteTargetGroupDescription |
| RouteTargetMemberList |
array<object> |
Não |
A lista de membros do grupo de destino de rota. No modo ativo/em espera, os seguintes limites se aplicam aos membros do grupo de destino de rota:
|
|
|
object |
Não |
|||
| MemberId |
string |
Não |
O ID da instância do membro do grupo de destino de rota. |
ep-xxxx |
| MemberType |
string |
Não |
O tipo de membro do grupo de destino de rota. Tipo atualmente suportado:
No modo ativo/em espera, todos os membros do grupo de destino de rota devem ser do mesmo tipo. |
GatewayLoadBalancerEndpoint |
| Weight |
integer |
Não |
O peso do membro do grupo de destino de rota. Valores válidos:
O peso só pode ser definido durante a criação e não pode ser modificado. |
100 |
| RegionId |
string |
Sim |
O ID da região da instância do grupo de destino de rota. Você pode chamar a operação DescribeRegions para consultar a lista de regiões mais recente. |
cn-hangzhou |
| 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 token, mas deve garantir que o token seja exclusivo entre diferentes solicitações. O token pode conter apenas caracteres ASCII. Se você não especificar este parâmetro, o sistema usará automaticamente o valor RequestId como o valor ClientToken. O valor RequestId pode ser diferente para cada solicitação de API. |
123e4567-e89b-12d3-a456-426655440000 |
Elementos de resposta
|
Elemento |
Tipo |
Descrição |
Exemplo |
|
object |
Esquema da resposta. |
||
| RequestId |
string |
O ID da solicitação. |
0ED8D006-F706-4D23-88ED-E11ED28DCAC |
Exemplos
Resposta de sucesso
JSON formato
{
"RequestId": "0ED8D006-F706-4D23-88ED-E11ED28DCAC"
}
Códigos de erro
|
Código de status HTTP |
Código de erro |
Mensagem de erro |
Descrição |
|---|---|---|---|
| 400 | ResourceNotFound.RouteTargetGroup | The specified resource of %s is not found. | The specified resource% s does not exist. |
| 400 | IncorrectStatus.RouteTargetGroup | The status of %s [%s] is incorrect. | The current state of the RouteTargetGroup prohibits the operation. |
| 400 | Mismatch.GroupVpcIdAndInstanceVpcId | The RouteTargetGroup VPC %s and the RouteTargetConfig VPC %s are mismatched. | The VPC to which the route target group belongs is different from the VPC to which the route target configuration instance belongs. |
| 400 | OperationDenied.UpdateMemberType | The operation is not allowed because of the inability to update memberType. | The operation is not allowed because of the inability to update memberType. |
| 400 | OperationDenied.MemberWithSameAz | The operation is not allowed because of all members being in the same availability zone. | The operation is not allowed because of all members being in the same availability zone. |
| 400 | OperationDenied.UpdateEnableRouteTargetMember | The operation is not allowed because of the inability to update the RouteTargetMember when it is in the enabled state. | The operation is not allowed because of the inability to update the RouteTargetMember when it is in the enabled state. |
| 400 | OperationDenied.NatGatewayIcmpReplyDisabled | NAT gateway ICMP reply is disabled. | The NAT gateway in the route target group must enable the ICMP return function to ensure that ICMP detection packets can be responded to normally. |
| 400 | OperationDenied.NatGatewayNotSingleAZ | NAT gateway must be in SingleAZ mode. | A route target group only supports NAT gateways of a single AZ type. |
| 400 | ResourceNotFound.NatGatewayVSwitch | The VSwitch information associated with the selected NAT gateway was not found. | VSwitch information associated with the selected NAT gateway was not found. |
| 400 | ResourceNotFound.NatGateway | The selected NAT gateway was not found when creating or modifying the route target group. | The selected NAT gateway resource is not discovered when creating or modifying the routing target group. |
| 404 | ResourceNotFound.GatewayLoadBalancerEndpoint | GatewayLoadBalancerEndpoint instance not found. | GatewayLoadBalancerEndpoint instance not found. |
Consulte Códigos de Erro para uma lista completa.
Notas de versão
Consulte Notas de Versão para uma lista completa.