Consulta os grupos de servidores de uma instância de Gateway Load Balancer (GWLB).
Experimente agora
Testar
Autorização RAM
|
Ação |
Nível de acesso |
Tipo de recurso |
Chave de condição |
Ação dependente |
|
gwlb:ListServerGroups |
get |
ServerGroup
ServerGroup
VPC
|
Nenhuma | Nenhuma |
Parâmetros da solicitação
|
Parâmetro |
Tipo |
Obrigatório |
Descrição |
Exemplo |
| ServerGroupIds |
array |
Não |
Os IDs dos grupos de servidores. Você pode especificar no máximo 20 IDs de grupos de servidores em cada chamada. |
|
|
string |
Não |
O ID do grupo de servidores. |
sgp-atstuj3rtoptyui**** |
|
| ServerGroupNames |
array |
Não |
Os nomes dos grupos de servidores. Você pode especificar no máximo 20 nomes de grupos de servidores em cada chamada. |
|
|
string |
Não |
O nome do grupo de servidores. |
testServerGroupName |
|
| ServerGroupType |
string |
Não |
O tipo de grupo de servidores. Valores válidos:
|
Instance |
| ResourceGroupId |
string |
Não |
O ID do grupo de recursos ao qual a instância pertence. |
rg-atstuj3rtop**** |
| Tag |
array<object> |
Não |
As chaves de tag. Você pode especificar no máximo 20 tags em cada chamada. |
|
|
object |
Não |
A tag. |
||
| Key |
string |
Não |
A chave da tag. 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 |
testTagKey |
| Value |
string |
Não |
O valor da tag. O valor da tag pode ter até 256 caracteres e não pode conter |
testTagValue |
| VpcId |
string |
Não |
O ID da VPC. |
vpc-bp15zckdt37pq72zv**** |
| NextToken |
string |
Não |
O token de paginação usado na próxima solicitação para recuperar uma nova página de resultados. Valores válidos:
|
FFmyTO70tTpLG6I3FmYAXGKPd**** |
| MaxResults |
integer |
Não |
O número de entradas por página. Valores válidos: 1 a 1000. Valor padrão: 20. |
20 |
| Skip |
integer |
Não |
O número de entradas a serem ignoradas na chamada. |
1 |
Elementos de resposta
|
Elemento |
Tipo |
Descrição |
Exemplo |
|
object |
Os parâmetros de resposta. |
||
| MaxResults |
integer |
O número de entradas por página. Valores válidos: 1 a 1000. |
20 |
| NextToken |
string |
Um token de paginação. Pode ser usado na próxima solicitação para recuperar uma nova página de resultados. Valores válidos:
|
FFmyTO70tTpLG6I3FmYAXGKPd**** |
| RequestId |
string |
O ID da solicitação. |
54B48E3D-DF70-471B-AA93-08E683A1B45 |
| ServerGroups |
array<object> |
As configurações do grupo de servidores. |
|
|
array<object> |
O grupo de servidores. |
||
| ConnectionDrainConfig |
object |
As configurações de connection draining. |
|
| ConnectionDrainEnabled |
boolean |
Indicates whether connection draining is enabled. Valid values:
|
false |
| ConnectionDrainTimeout |
integer |
The timeout period of connection draining. Unit: seconds Valid values: 1 to 3600. |
300 |
| CreateTime |
string |
A hora em que o recurso foi criado. A hora segue o padrão ISO 8601 no formato yyyy-MM-ddTHH:mm:ssZ. A hora é exibida em UTC. |
2024-08-05T18:24:07Z |
| HealthCheckConfig |
object |
A configuração de health checks. |
|
| HealthCheckConnectPort |
integer |
The backend server port that is used for health checks. Valid values: 1 to 65535. |
80 |
| HealthCheckConnectTimeout |
integer |
The maximum timeout period of a health check. Unit: seconds Valid values: 1 to 300. |
5 |
| HealthCheckDomain |
string |
The domain name that is used for health checks. Valid values:
Nota
This parameter takes effect only if you set HealthCheckProtocol to HTTP. |
$SERVER_IP |
| HealthCheckEnabled |
boolean |
Indicates whether the health check feature is enabled. Valid values:
|
true |
| HealthCheckHttpCode |
array |
The HTTP status codes that the system returns for health checks. |
|
|
string |
The HTTP status code to return for health checks. Separate multiple HTTP status codes with commas (,). Valid values:
Default value: http_2xx. Nota
This parameter takes effect only if you set HealthCheckProtocol to HTTP. |
http_2xx |
|
| HealthCheckInterval |
integer |
The interval at which health checks are performed. Unit: seconds Valid values: 1 to 50. |
10 |
| HealthCheckPath |
string |
The URL that is used for health checks. The URL must be 1 to 80 characters in length, and can contain letters, digits, and the following special characters: Nota
This parameter takes effect only if you set HealthCheckProtocol to HTTP. |
/test/index.html |
| HealthCheckProtocol |
string |
The protocol that is used for health checks. Valid values:
|
TCP |
| HealthyThreshold |
integer |
The number of times that an unhealthy backend server must consecutively pass health checks before it is declared healthy. In this case, the health status changes from fail to success. Valid values: 2 to 10. |
2 |
| UnhealthyThreshold |
integer |
The number of times that a healthy backend server must consecutively fail health checks before it is declared unhealthy. In this case, the health status changes from success to fail. Valid values: 2 to 10. |
2 |
| HealthCheckReq |
string |
||
| HealthCheckExp |
string |
||
| Protocol |
string |
O protocolo de back-end. Valores válidos:
|
GENEVE |
| RelatedLoadBalancerIds |
array |
Os IDs das instâncias GWLB associadas ao grupo de servidores. |
|
|
string |
O ID da instância GWLB associada ao grupo de servidores. |
gwlb-cp6prgqy40hols**** |
|
| ResourceGroupId |
string |
O ID do grupo de recursos. |
rg-atstuj3rtop**** |
| Scheduler |
string |
O algoritmo de agendamento. Valores válidos:
|
5TCH |
| ServerCount |
integer |
O número de servidores. |
2 |
| ServerGroupId |
string |
O ID do grupo de servidores. |
sgp-atstuj3rtoptyui**** |
| ServerGroupName |
string |
O nome do grupo de servidores. |
testServerGroupName |
| ServerGroupStatus |
string |
O status do grupo de servidores. Valores válidos:
|
Available |
| ServerGroupType |
string |
O tipo de grupo de servidores. Valores válidos:
|
Instance |
| ServerFailoverMode |
string |
Especifica como o GWLB processa solicitações em conexões existentes quando um servidor de back-end não está funcionando conforme o esperado. Valores válidos:
|
NoRebalance |
| Tags |
array<object> |
As tags. |
|
|
object |
A tag. |
||
| Key |
string |
The tag key. The tag key cannot be an empty string. The tag key can be up to 128 characters in length, and cannot start with |
testTagKey |
| Value |
string |
The tag value. The tag value can be up to 256 characters in length and cannot contain |
testTagValue |
| VpcId |
string |
O ID da VPC. |
vpc-bp15zckdt37pq72zv**** |
| TotalCount |
integer |
O número total de entradas retornadas. |
1 |
Exemplos
Resposta de sucesso
JSON formato
{
"MaxResults": 20,
"NextToken": "FFmyTO70tTpLG6I3FmYAXGKPd****",
"RequestId": "54B48E3D-DF70-471B-AA93-08E683A1B45",
"ServerGroups": [
{
"ConnectionDrainConfig": {
"ConnectionDrainEnabled": false,
"ConnectionDrainTimeout": 300
},
"CreateTime": "2024-08-05T18:24:07Z",
"HealthCheckConfig": {
"HealthCheckConnectPort": 80,
"HealthCheckConnectTimeout": 5,
"HealthCheckDomain": "$SERVER_IP",
"HealthCheckEnabled": true,
"HealthCheckHttpCode": [
"http_2xx"
],
"HealthCheckInterval": 10,
"HealthCheckPath": "/test/index.html",
"HealthCheckProtocol": "TCP",
"HealthyThreshold": 2,
"UnhealthyThreshold": 2,
"HealthCheckReq": "",
"HealthCheckExp": ""
},
"Protocol": "GENEVE",
"RelatedLoadBalancerIds": [
"gwlb-cp6prgqy40hols****"
],
"ResourceGroupId": "rg-atstuj3rtop****",
"Scheduler": "5TCH",
"ServerCount": 2,
"ServerGroupId": "sgp-atstuj3rtoptyui****",
"ServerGroupName": "testServerGroupName",
"ServerGroupStatus": "Available",
"ServerGroupType": "Instance",
"ServerFailoverMode": "NoRebalance",
"Tags": [
{
"Key": "testTagKey",
"Value": "testTagValue"
}
],
"VpcId": "vpc-bp15zckdt37pq72zv****"
}
],
"TotalCount": 1
}
Códigos de erro
Consulte Códigos de Erro para uma lista completa.
Notas de versão
Consulte Notas de Versão para uma lista completa.