All Products
Search
Document Center

Server Load Balancer:ListServerGroupServers

Last Updated:Jun 10, 2026

Mengkueri server dalam kelompok server instans Network Load Balancer (NLB).

Coba sekarang

Coba API ini di OpenAPI Explorer tanpa perlu penandatanganan manual. Panggilan yang berhasil akan secara otomatis menghasilkan contoh kode SDK sesuai dengan parameter Anda. Unduh kode tersebut dengan kredensial bawaan yang aman untuk penggunaan lokal.

Test

RAM authorization

Tabel berikut menjelaskan otorisasi yang diperlukan untuk memanggil API ini. Anda dapat menentukannya dalam kebijakan Resource Access Management (RAM). Kolom pada tabel dijelaskan sebagai berikut:

  • Action: Aksi yang dapat digunakan dalam elemen Action pada pernyataan kebijakan izin RAM untuk memberikan izin guna melakukan operasi tersebut.

  • API: API yang dapat Anda panggil untuk melakukan aksi tersebut.

  • Access level: Tingkat akses yang telah ditentukan untuk setiap API. Nilai yang valid: create, list, get, update, dan delete.

  • Resource type: Jenis resource yang mendukung otorisasi untuk melakukan aksi tersebut. Ini menunjukkan apakah aksi tersebut mendukung izin tingkat resource. Resource yang ditentukan harus kompatibel dengan aksi tersebut. Jika tidak, kebijakan tersebut tidak akan berlaku.

    • Untuk API dengan izin tingkat resource, jenis resource yang diperlukan ditandai dengan tanda bintang (*). Tentukan Nama Sumber Daya Alibaba Cloud (ARN) yang sesuai dalam elemen Resource pada kebijakan.

    • Untuk API tanpa izin tingkat resource, ditampilkan sebagai All Resources. Gunakan tanda bintang (*) dalam elemen Resource pada kebijakan.

  • Condition key: Kunci kondisi yang didefinisikan oleh layanan. Kunci ini memungkinkan kontrol granular, berlaku baik hanya untuk aksi maupun untuk aksi yang terkait dengan resource tertentu. Selain kunci kondisi spesifik layanan, Alibaba Cloud menyediakan serangkaian common condition keys yang berlaku di semua layanan yang didukung RAM.

  • Dependent action: Aksi dependen yang diperlukan untuk menjalankan aksi tersebut. Untuk menyelesaikan aksi tersebut, pengguna RAM atau role RAM harus memiliki izin untuk melakukan semua aksi dependen.

Action

Access level

Resource type

Condition key

Dependent action

nlb:ListServerGroupServers

get

*ServerGroup

acs:nlb:{#regionId}:{#AccountId}:serverGroup/{#ServerGroupId}

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:

  • Kosongkan parameter ini jika ini adalah kueri pertama atau satu-satunya kueri.

  • Atur parameter ini ke nilai NextToken yang diperoleh dari kueri sebelumnya.

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: Elastic Compute Service (ECS) instance

  • Eni: elastic network interface (ENI)

  • Eci: elastic container instance

  • Ip: IP address

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:

  • Adding

  • Available

  • Configuring

  • Removing

Available

TotalCount

integer

The number of entries returned.

10

NextToken

string

The token that is used for the next query. Valid values:

  • If this is your first query or no next query is to be sent, ignore this parameter.

  • If a next query is to be sent, set the parameter to the value of NextToken that is returned from the last call.

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.