All Products
Search
Document Center

Microservices Engine:ListClusters

Last Updated:Jun 10, 2026

Mencantumkan kluster pusat registrasi dan konfigurasi.

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:ListClusters

get

*全部资源

*

None None

Parameter permintaan

Parameter

Type

Required

Description

Example

RequestPars

string

No

Parameter permintaan yang diperluas dalam format JSON.

{}

PageNum

integer

Yes

Nomor halaman yang akan dikembalikan.

1

PageSize

integer

Yes

Jumlah kluster per halaman.

10

ClusterAliasName

string

No

Alias kluster. Parameter ini mendukung pencocokan fuzzy.

cluster

RegionId

string

Yes

ID wilayah MSE tempat kluster di-deploy.

cn-hangzhou

ResourceGroupId

string

No

ID kelompok sumber daya. Untuk informasi selengkapnya, lihat Tampilan informasi dasar kelompok sumber daya.

rg-acfmxbzafebvvfa

Tag

array<object>

No

Daftar tag. Anda dapat menentukan hingga 20 tag.

object

No

A tag.

Key

string

No

The tag key.

env

Value

string

No

The tag value.

prd

KeyId

string

No

Untuk kluster Pusat Registrasi Nacos, mengembalikan kluster dengan instans yang terikat ke ID kunci yang ditentukan.

key-hzz67774641bsp21vhj4h

AcceptLanguage

string

No

Bahasa tanggapan. Nilai valid:

  • zh: Mandarin

  • en: Inggris.

zh

Elemen respons

Element

Type

Description

Example

object

The response object.

HttpCode

string

The HTTP status code.

202

TotalCount

integer

The total number of instances.

7

RequestId

string

The request ID.

69AD2AA7-DB47-449B-941B-B14409DF****

Message

string

The response message.

OK

PageSize

integer

The number of instances per page.

10

PageNumber

integer

The page number.

1

Data

array<object>

The list of clusters.

array<object>

The cluster details.

EndDate

string

The time when the subscription for the cluster expires.

2021-08-01 00:00:00

IntranetDomain

string

The intranet domain name of the cluster.

mse-7413****-eureka.mse.aliyuncs.com

InternetDomain

string

The internet domain name of the cluster.

mse-7413****-p.eureka.mse.aliyuncs.com

CreateTime

string

The time when the cluster was created.

2020-07-31 11:36:08

ChargeType

string

The billing method. Valid values: subscription and pay-as-you-go.

subscription

IntranetAddress

string

The intranet IP address of the cluster.

192.168.XX.XX

InstanceId

string

The instance ID.

mse-cn-st21ri2****

InternetAddress

string

The internet IP address of the cluster.

47.98.XX.XX

ClusterAliasName

string

The cluster alias.

mse-7413****

ClusterType

string

The cluster type. Valid values: ZooKeeper, Nacos-Ans, and Eureka.

Eureka

InitStatus

string

The initialization status.

RESTART_SUCCESS

AppVersion

string

The app version.

1.9.3

CanUpdate

boolean

Indicates whether the cluster can be upgraded.

true

VersionCode

string

The code of the cluster version.

EUREKA_1_9_3

InstanceCount

integer

The number of instances in the cluster.

2

ClusterName

string

The cluster name.

mse-cn-st21ri2****

MseVersion

string

The edition of the cluster.

mse_pro

Tags

object

The tags attached to the cluster.

ResourceGroupId

string

The ID of the resource group that contains the cluster.

rg-acfmv7jiavm4uxa

VpcId

string

The ID of the VPC in which the cluster is deployed.

vpc-bp1hcg467ekqsv0zr****

MaintenancePeriod

object

The maintenance window.

StartTime

string

O&M time window start time

02:00

EndTime

string

O&M time window end time

06:00

VersionLifecycle

string

The version lifecycle.

ErrorCode

string

The error code that is returned if the request fails.

mse-100-000

Success

boolean

Indicates whether the request succeeded. Valid values:

  • true: The request succeeded.

  • false: The request failed.

true

Contoh

Respons sukses

JSONformat

{
  "HttpCode": "202",
  "TotalCount": 7,
  "RequestId": "69AD2AA7-DB47-449B-941B-B14409DF****",
  "Message": "OK",
  "PageSize": 10,
  "PageNumber": 1,
  "Data": [
    {
      "EndDate": "2021-08-01 00:00:00",
      "IntranetDomain": "mse-7413****-eureka.mse.aliyuncs.com",
      "InternetDomain": "mse-7413****-p.eureka.mse.aliyuncs.com",
      "CreateTime": "2020-07-31 11:36:08",
      "ChargeType": "subscription",
      "IntranetAddress": "192.168.XX.XX",
      "InstanceId": "mse-cn-st21ri2****",
      "InternetAddress": "47.98.XX.XX",
      "ClusterAliasName": "mse-7413****",
      "ClusterType": "Eureka",
      "InitStatus": "RESTART_SUCCESS",
      "AppVersion": "1.9.3",
      "CanUpdate": true,
      "VersionCode": "EUREKA_1_9_3",
      "InstanceCount": 2,
      "ClusterName": "mse-cn-st21ri2****",
      "MseVersion": "mse_pro",
      "Tags": {
        "test": "test",
        "test2": 1
      },
      "ResourceGroupId": "rg-acfmv7jiavm4uxa",
      "VpcId": "vpc-bp1hcg467ekqsv0zr****",
      "MaintenancePeriod": {
        "StartTime": "02:00",
        "EndTime": "06:00"
      },
      "VersionLifecycle": ""
    }
  ],
  "ErrorCode": "mse-100-000",
  "Success": true
}

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.