Atualiza as propriedades de um listener.
Descrição da operação
A operação UpdateListenerAttribute é assíncrona. Após o envio de uma solicitação, o sistema retorna um ID de solicitação. A configuração do listener é então atualizada em segundo plano. Você pode chamar a operação GetListenerAttribute para consultar o status de atualização do listener:
-
Se um listener estiver no estado Configuring, a configuração do listener está sendo atualizada.
-
Se um listener estiver no estado Running, a configuração do listener foi atualizada.
Experimente agora
Testar
Autorização RAM
|
Ação |
Nível de acesso |
Tipo de recurso |
Chave de condição |
Ação dependente |
|
gwlb:UpdateListenerAttribute |
update |
*LoadBalancer
*Listener
ServerGroup
|
Nenhuma | Nenhuma |
Parâmetros da solicitação
|
Parâmetro |
Tipo |
Obrigatório |
Descrição |
Exemplo |
| ListenerId |
string |
Sim |
O ID do listener. |
lsn-lxce8iqbof2vl0**** |
| ListenerDescription |
string |
Não |
A descrição do listener. A descrição deve ter de 2 a 256 caracteres e pode conter letras, dígitos, vírgulas (,), pontos (.), ponto e vírgula (;), barras (/), arrobas (@), sublinhados (_) e hifens (-). |
listener_description |
| ServerGroupId |
string |
Não |
O ID do grupo de servidores. |
sgp-sp8d2r6y7t0xtl**** |
| TcpIdleTimeout |
integer |
Não |
O período de tempo limite de uma conexão TCP ociosa. Valores válidos: 60 a 6000. Unidade: segundos. |
350 |
| 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. Você pode usar o cliente para gerar o token, mas deve garantir que o token seja único entre diferentes solicitações. 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 ClientToken. O RequestId de cada solicitação é diferente. |
123e4567-e89b-12d3-a456-42665544**** |
Elementos de resposta
|
Elemento |
Tipo |
Descrição |
Exemplo |
|
object |
Os dados retornados. |
||
| RequestId |
string |
O ID da solicitação. |
7DBFC67C-A272-5952-8287-6C3EBE4E04D9 |
Exemplos
Resposta de sucesso
JSON formato
{
"RequestId": "7DBFC67C-A272-5952-8287-6C3EBE4E04D9"
}
Códigos de erro
|
Código de status HTTP |
Código de erro |
Mensagem de erro |
Descrição |
|---|---|---|---|
| 400 | IncorrectBusinessStatus.LoadBalancer | The business status of %s [%s] is incorrect. | Resource %s with business state %s does not support current operation |
| 400 | IncorrectStatus.LoadBalancer | The status of %s [%s] is incorrect. | Resource %s current state %s does not support operation |
| 400 | IncorrectStatus.Listener | The status of %s [%s] is incorrect. | Operation not supported for resource% s in current state% s. |
| 400 | Mismatch.VpcId | The %s is mismatched for %s and %s. | The VPC IDs of the two resources do not match. |
| 400 | ResourceInUse.IP | The specified resource of IP is in use. | |
| 400 | IncorrectStatus.ServerGroup | The status of %s [%s] is incorrect. | The status of %s [%s] is incorrect. |
| 400 | OperationDenied.TcpIdleTimeoutConflictWithScheduler | The TCP idle timeout of listener must be default value when the scheduling algorithm of server group is not 5TCH. | The TCP idle timeout of listener must be default value when the scheduling algorithm of server group is not 5TCH. |
| 400 | OperationDenied.TcpIdleTimeoutNotConfigurable | The TCP idle timeout of listener is configurable only when the scheduling algorithm of server group is 5TCH. | The TCP idle timeout of listener is configurable only when the scheduling algorithm of server group is 5TCH. |
| 404 | ResourceNotFound.LoadBalancer | The specified resource of %s is not found. | The specified resource of .LoadBalancer is not found. |
| 404 | ResourceNotFound.Listener | The specified resource of %s is not found. | The specified resource of %s is not found. |
| 404 | ResourceNotFound.ServerGroup | The specified resource of %s is not found. | The specified server group resource does not exist. |
Consulte Códigos de Erro para uma lista completa.
Notas de versão
Consulte Notas de Versão para uma lista completa.