Mengkueri server dalam kelompok server instans Network Load Balancer (NLB).
Coba sekarang
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
nlb:ListServerGroupServers |
get |
*ServerGroup
|
None | None |
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| ServerGroupId |
string |
No |
ID kelompok server. |
sgp-atstuj3rtoptyui**** |
| ServerIds |
array |
No |
ID server backend. Anda dapat menentukan hingga 40 server backend dalam setiap panggilan. |
|
|
string |
No |
The ID of the backend server. You can specify up to 40 backend servers in each call. |
i-bp67acfmxazb4p**** |
|
| ServerIps |
array |
No |
Alamat IP server backend. Anda dapat menentukan hingga 40 server backend dalam setiap panggilan. |
|
|
string |
No |
The IP address of the backend server. You can specify up to 40 backend servers in each call. |
192.168.6.3 |
|
| NextToken |
string |
No |
Token paginasi yang digunakan untuk menentukan halaman hasil tertentu. Nilai valid:
|
FFmyTO70tTpLG6I3FmYAXGKPd**** |
| MaxResults |
integer |
No |
Jumlah entri yang dikembalikan dalam setiap panggilan. Nilai valid: 1 hingga 100. Nilai default: 20. |
20 |
| RegionId |
string |
No |
ID Wilayah instans NLB. Anda dapat memanggil operasi DescribeRegions untuk mengkueri daftar Wilayah terbaru. |
cn-hangzhou |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
The operation to query servers. |
||
| RequestId |
string |
The ID of the request. |
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 port that is used by the backend server. 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 token that is used for the next query. Valid values:
|
FFmyTO70tTpLG6I3FmYAXGKPd**** |
| MaxResults |
integer |
The number of entries returned per page. |
20 |
Contoh
Respons sukses
JSONformat
{
"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
}
Kode kesalahan
|
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. |
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.