All Products
Search
Document Center

Enterprise Distributed Application Service:ListCluster

Last Updated:Jun 10, 2026

Mengkueri kluster.

Coba sekarang

您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。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

edas:ReadCluster

list

*全部资源

*

None None

Sintaks permintaan

POST /pop/v5/resource/cluster_list HTTP/1.1

Parameter permintaan

Parameter

Type

Required

Description

Example

LogicalRegionId

string

No

ID namespace. Anda dapat memanggil operasi ListUserDefineRegion untuk mengkueri ID namespace. Untuk informasi selengkapnya, lihat ListUserDefineRegion.

  • Jika parameter ini dikosongkan, kluster di namespace default akan dikueri.

  • Jika parameter ini ditentukan, kluster di namespace yang ditentukan akan dikueri.

cn-beijing:test

ResourceGroupId

string

No

ID kelompok sumber daya. Anda dapat memanggil operasi ListResourceGroup untuk mengkueri ID kelompok sumber daya. Untuk informasi selengkapnya, lihat ListResourceGroup.

  • Jika parameter ini dikosongkan, kluster di kelompok sumber daya default akan dikueri.

  • Jika parameter ini ditentukan, kluster di kelompok sumber daya yang ditentukan akan dikueri.

461

Elemen respons

Element

Type

Description

Example

object

Code

integer

The HTTP status code that is returned.

200

Message

string

The additional information that is returned.

success

RequestId

string

The ID of the request.

1053-08e4-47a5-b2ab-5c0323de****

ClusterList

object

Cluster

array<object>

The clusters.

object

VpcId

string

VPC ID

vpc-23727****

OversoldFactor

integer

The CPU overcommit ratio that is supported by a Docker cluster. Valid values:

  • 1: 1:1, which means that CPU resources are not overcommitted.

  • 2: 1:2, which means that CPU resources are overcommitted by 1:2.

  • 4: 1:4, which means that CPU resources are overcommitted by 1:4.

  • 8: 1:8, which means that CPU resources are overcommitted by 1:8.

1

UpdateTime

integer

The timestamp when the cluster was last modified. This value is a UNIX timestamp representing the number of milliseconds that have elapsed since January 1, 1970, 00:00:00 UTC.

1533820823203

MemUsed

integer

The size of used memory. Unit: MB.

200

IaasProvider

string

The provider of the cluster.

ALIYUN

CreateTime

integer

The timestamp when the cluster was created. This value is a UNIX timestamp representing the number of milliseconds that have elapsed since January 1, 1970, 00:00:00 UTC.

1502888064561

CpuUsed

integer

The number of used CPU cores.

1

Mem

integer

The total size of memory. Unit: MB.

3072

RegionId

string

The ID of the region.

cn-beijing

Cpu

integer

The total number of CPU cores.

2

CsClusterId

string

The ID of the cluster in Container Service for Kubernetes (ACK).

c2ce************b9203a9

NetworkMode

integer

The network type of the cluster. Valid values:

  • 1: classic network

  • 2: virtual private cloud (VPC)

1

Description

string

The description of the cluster.

测试集群

ClusterType

integer

The type of the cluster. Valid values:

  • 0: regular Docker cluster

  • 1: Swarm cluster

  • 2: Elastic Compute Service (ECS) cluster

  • 3: self-managed Kubernetes cluster in Enterprise Distributed Application Service (EDAS)

  • 4: cluster in which Pandora automatically registers applications

  • 5: ACK cluster

2

ResourceGroupId

string

The ID of the resource group.

461

ClusterName

string

The name of the cluster.

cluster-test

NodeNum

integer

The number of instances.

2

ClusterId

string

The ID of the cluster in EDAS.

b98b5919-c111-4dad-9f74-7233********

Contoh

Respons sukses

JSONformat

{
  "Code": 200,
  "Message": "success",
  "RequestId": "1053-08e4-47a5-b2ab-5c0323de****",
  "ClusterList": {
    "Cluster": [
      {
        "VpcId": "vpc-23727****",
        "OversoldFactor": 1,
        "UpdateTime": 1533820823203,
        "MemUsed": 200,
        "IaasProvider": "ALIYUN",
        "CreateTime": 1502888064561,
        "CpuUsed": 1,
        "Mem": 3072,
        "RegionId": "cn-beijing",
        "Cpu": 2,
        "CsClusterId": "c2ce************b9203a9",
        "NetworkMode": 1,
        "Description": "测试集群",
        "ClusterType": 2,
        "ResourceGroupId": "461",
        "ClusterName": "cluster-test",
        "NodeNum": 2,
        "ClusterId": "b98b5919-c111-4dad-9f74-7233********"
      }
    ]
  }
}

Kode kesalahan

Lihat Error Codes untuk daftar lengkap.

Catatan rilis

Lihat 变更详情Release Notes untuk daftar lengkap.