Queries servers in an NLB server group.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
nlb:ListServerGroupServers |
get |
*ServerGroup
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| ServerGroupId |
string |
No |
The ID of the server group. |
sgp-atstuj3rtoptyui**** |
| ServerIds |
array |
No |
The backend server IDs. You can specify up to 40 in each call. |
|
|
string |
No |
The backend server ID. You can specify up to 40 in each call. |
i-bp67acfmxazb4p**** |
|
| ServerIps |
array |
No |
The backend server IP addresses. You can specify up to 40 in each call. |
|
|
string |
No |
The backend server IP address. You can specify up to 40 in each call. |
192.168.6.3 |
|
| NextToken |
string |
No |
The pagination token. Valid values:
|
FFmyTO70tTpLG6I3FmYAXGKPd**** |
| MaxResults |
integer |
No |
The number of entries per call. Valid values: 1 to 100. Default value: 20. |
20 |
| RegionId |
string |
No |
The region ID of the NLB instance. Call DescribeRegions to query available regions. |
cn-hangzhou |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The response. |
||
| RequestId |
string |
The request ID. |
54B48E3D-DF70-471B-AA93-08E683A1B45 |
| Servers |
array<object> |
The backend servers. |
|
|
object |
|||
| ServerId |
string |
The ID of the server group. |
i-bp67acfmxazb4p**** |
| ServerType |
string |
The type of backend server. Valid values:
|
Ecs |
| ServerIp |
string |
The IP address of the backend server. |
192.168.2.1 |
| Port |
integer |
The backend server port. Valid values: 1 to 65535. |
80 |
| Weight |
integer |
The weight of the backend server. |
100 |
| ServerGroupId |
string |
The ID of the server group. |
sgp-atstuj3rtoptyui**** |
| Description |
string |
The description of the backend server. |
ECS |
| ZoneId |
string |
The zone ID of the server. |
cn-hangzhou-a |
| Status |
string |
The status of the backend server. Valid values:
|
Available |
| TotalCount |
integer |
The number of entries returned. |
10 |
| NextToken |
string |
The pagination token for the next query. Valid values:
|
FFmyTO70tTpLG6I3FmYAXGKPd**** |
| MaxResults |
integer |
The number of entries returned per page. |
20 |
Examples
Success response
JSON format
{
"RequestId": "54B48E3D-DF70-471B-AA93-08E683A1B45",
"Servers": [
{
"ServerId": "i-bp67acfmxazb4p****",
"ServerType": "Ecs",
"ServerIp": "192.168.2.1",
"Port": 80,
"Weight": 100,
"ServerGroupId": "sgp-atstuj3rtoptyui****",
"Description": "ECS",
"ZoneId": "cn-hangzhou-a",
"Status": "Available"
}
],
"TotalCount": 10,
"NextToken": "FFmyTO70tTpLG6I3FmYAXGKPd****",
"MaxResults": 20
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | SystemBusy | System is busy, please try again later. | |
| 403 | Forbidden.NoPermission | Authentication is failed for NoPermission. | Authentication is failed for NoPermission. |
| 404 | ResourceNotFound.serverGroup | The specified resource of serverGroup is not found. | The specified resource of serverGroup is not found. Please check the input parameters. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.