华为云UCS-获取集群列表:URI

时间:2024-07-01 15:10:48

URI

GET /v1/clusters

表1 Query参数

参数

是否必选

参数类型

描述

category

String

获取特定category的集群。

enablestatus

Boolean

是否获取集群的资源信息。不填或者填写为true为获取集群资源汇总信息,置为false为不获取集群状态信息;缺省值为true。

clustergroupid

String

容器舰队ID。不填会返回用户所有集群,填了之后会返回属于该容器舰队的集群。

limit

Integer

分页获取列表时,页的大小,默认为-1

offset

Integer

分页获取列表时,起始偏移量,默认为0

order_by

String

分页获取列表时,排序参数,支持 create_at 和 update_at

order

String

分页获取列表时,排序方向,支持 desc 和 asc

managetype

String

获取集群列表时,根据集群类型筛选,不传参时默认为 all ,支持 all ,grouped,discrete 三种类型。

  • grouped:在舰队中纳管的集群
  • discrete:未加入舰队的集群
  • all:所有集群

clusterids

String

集群ID。多个ID以英文逗号分隔。

support.huaweicloud.com/api-ucs/ShowClusterList.html