All Products
Search
Document Center

Microservices Engine:ListGatewaySlb

Last Updated:Jun 10, 2026

Mengkueri instans Server Load Balancer (SLB) yang berfungsi sebagai entri gerbang.

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

mse:ListGatewaySlb

get

*Gateway

acs:mse:{#regionId}:{#accountId}:instance/{#GatewayUniqueId}

None None

Parameter permintaan

Parameter

Type

Required

Description

Example

GatewayUniqueId

string

No

ID unik gerbang.

gw-1cef5440bf2d484db419fb264d4f****

AcceptLanguage

string

No

Bahasa tanggapan. Nilai valid:

  • zh: Tionghoa.

  • en: Inggris.

zh

Elemen respons

Element

Type

Description

Example

object

The data structure.

RequestId

string

The request ID.

EAB345F4-3AC3-560C-B653-65717703****

HttpStatusCode

integer

The HTTP status code.

200

Message

string

The response message.

Succ

Code

integer

The return code.

200

Success

boolean

Indicates whether the request succeeded. Valid values:

  • true: The request succeeded.

  • false: The request failed.

true

Data

array<object>

The response data.

array<object>

The data structure.

Id

string

The unique ID of the record.

ID

SlbId

string

The ID of the SLB instance.

lb-bp1kmnli3hdpreptw2ah3

SlbIp

string

The IP address of the SLB instance.

121.199.XX.XX

SlbPort

string

The ports of the SLB instance.

80,443

Type

string

The network type. Valid values:

  • PUB_NET: public network

  • PRIVATE_NET: private network

PUB_NET

GatewayId

string

The ID of the gateway.

1

GmtCreate

string

The creation time of the record.

2022-01-14 14:39:16

GatewaySlbMode

string

The source of the SLB association.

UserSelect

GatewaySlbStatus

string

The association status of the SLB instance.

Ready

StatusDesc

string

A detailed description of the status.

Associating

VServerGroupId

string

The ID of the HTTP vServer group.

353

HttpPort

integer

The HTTP port of the vServer group.

80

HttpsPort

integer

The HTTPS port of the vServer group.

443

ServiceWeight

integer

The service weight.

80

EditEnable

boolean

Indicates whether the entry can be edited.

false

HttpsVServerGroupId

string

The ID of the HTTPS vServer group.

353

VsMetaInfo

string

The metadata of the vServer groups.

[{"protocol":"HTTP","vServerGroupName":"k8s/80/****","port":80,"vServerGroupId":"rsp-bp***"},{"protocol":"HTTPS","vServerGroupName":"k8s/443/***","port":443,"vServerGroupId":"rsp-bp*****"}]

VServiceList

array<object>

Details of the SLB listeners.

object

Port

string

Port.

443

Protocol

string

Protocol Type.

  • HTTPS

  • HTTP

HTTPS

VServerGroupId

string

vServer group ID.

rsp-bp183l2x70***

VServerGroupName

string

vServer group name.

k8s/31**0/***/istio-system/clusterid

SlbType

string

The type of the SLB instance.

Contoh

Respons sukses

JSONformat

{
  "RequestId": "EAB345F4-3AC3-560C-B653-65717703****",
  "HttpStatusCode": 200,
  "Message": "Succ",
  "Code": 200,
  "Success": true,
  "Data": [
    {
      "Id": "ID",
      "SlbId": "lb-bp1kmnli3hdpreptw2ah3",
      "SlbIp": "121.199.XX.XX",
      "SlbPort": "80,443",
      "Type": "PUB_NET",
      "GatewayId": "1",
      "GmtCreate": "2022-01-14 14:39:16",
      "GatewaySlbMode": "UserSelect",
      "GatewaySlbStatus": "Ready",
      "StatusDesc": "Associating",
      "VServerGroupId": "353",
      "HttpPort": 80,
      "HttpsPort": 443,
      "ServiceWeight": 80,
      "EditEnable": false,
      "HttpsVServerGroupId": "353",
      "VsMetaInfo": "[{\"protocol\":\"HTTP\",\"vServerGroupName\":\"k8s/80/****\",\"port\":80,\"vServerGroupId\":\"rsp-bp***\"},{\"protocol\":\"HTTPS\",\"vServerGroupName\":\"k8s/443/***\",\"port\":443,\"vServerGroupId\":\"rsp-bp*****\"}]",
      "VServiceList": [
        {
          "Port": "443",
          "Protocol": "HTTPS",
          "VServerGroupId": "rsp-bp183l2x70***",
          "VServerGroupName": "k8s/31**0/***/istio-system/clusterid"
        }
      ],
      "SlbType": ""
    }
  ]
}

Kode kesalahan

HTTP status code

Error code

Error message

Description

400 IllegalRequest Invalid request:%s
400 InvalidParameter Parameter error:%s
500 InternalError Console error. Try again later:%s
403 NoPermission You are not authorized to perform this operation:%s
404 NotFound Not found:%s

Lihat Error Codes untuk daftar lengkap.

Catatan rilis

Lihat Release Notes untuk daftar lengkap.