All Products
Search
Document Center

Server Load Balancer:ListServerGroupServers

Last Updated:Jun 10, 2026

Mengkueri server dalam kelompok server Server Load Balancer.

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

gwlb:ListServerGroupServers

get

*All Resource

*

None None

Parameter permintaan

Parameter

Type

Required

Description

Example

ServerGroupId

string

No

ID kelompok server.

sgp-atstuj3rtoptyui****

ServerIds

array

No

Daftar ID server.

Anda dapat menentukan hingga 200 ID server dalam setiap panggilan.

string

No

The server ID.

  • If the server group is of the Instance type, this parameter specifies the resource ID of an ECS instance, an elastic network interface (ENI), or an elastic container instance (ECI).

  • If the server group is of the Ip type, this parameter specifies an IP address.

i-bp67acfmxazb4p****

ServerIps

array

No

Daftar alamat IP server.

Anda dapat menentukan hingga 200 alamat IP server dalam setiap panggilan.

string

No

The IP address of the server.

192.168.xxx.xxx

NextToken

string

No

Token paginasi yang digunakan di permintaan berikutnya untuk mengambil halaman hasil baru. Nilai valid:

  • Jika NextToken kosong, tidak ada halaman berikutnya.

  • Jika nilai dikembalikan untuk NextToken, nilai tersebut adalah token yang digunakan untuk mengambil halaman berikutnya.

FFmyTO70tTpLG6I3FmYAXGKPd****

MaxResults

integer

No

Jumlah entri yang dikembalikan pada setiap halaman.

Nilai valid: 1 hingga 1000.

Nilai default: 20.

20

Skip

integer

No

Jumlah entri yang dilewati.

1

Elemen respons

Element

Type

Description

Example

object

The data structure of the response.

MaxResults

integer

The number of entries returned per page.

Valid values: 1 to 1000.

20

NextToken

string

A pagination token. It can be used in the next request to retrieve a new page of results. Valid values:

  • You do not need to specify this parameter for the first request or if no next page exists.

  • If a next page exists, set the value to the NextToken value that is returned in the last API call.

FFmyTO70tTpLG6I3FmYAXGKPd****

RequestId

string

The request ID.

54B48E3D-DF70-471B-AA93-08E683A1B45

Servers

array<object>

The list of backend servers.

object

The backend server.

Port

integer

The port used by the backend server. Valid values:

  • 6081.

6081

ServerGroupId

string

The ID of the server group.

sgp-atstuj3rtoptyui****

ServerId

string

The ID of the backend server.

i-bp67acfmxazb4p****

ServerIp

string

The IP address of the backend server.

192.168.xxx.xxx

ServerType

string

The type of the backend server. Valid values:

  • Ecs: an ECS instance.

  • Eni: an elastic network interface (ENI).

  • Eci: an elastic container instance (ECI).

  • Ip: an IP address.

Ecs

Status

string

The status of the backend server. Valid values:

  • Adding: The backend server is being added.

  • Available: The backend server is running as expected.

  • Draining: Connections to the backend server are being drained.

  • Removing: The backend server is being removed.

  • Replacing: The backend server is being replaced.

Available

TotalCount

integer

The number of entries in the list.

1

Contoh

Respons sukses

JSONformat

{
  "MaxResults": 20,
  "NextToken": "FFmyTO70tTpLG6I3FmYAXGKPd****",
  "RequestId": "54B48E3D-DF70-471B-AA93-08E683A1B45",
  "Servers": [
    {
      "Port": 6081,
      "ServerGroupId": "sgp-atstuj3rtoptyui****",
      "ServerId": "i-bp67acfmxazb4p****",
      "ServerIp": "192.168.xxx.xxx",
      "ServerType": "Ecs",
      "Status": "Available"
    }
  ],
  "TotalCount": 1
}

Kode kesalahan

Lihat Error Codes untuk daftar lengkap.

Catatan rilis

Lihat Release Notes untuk daftar lengkap.