华为云UCS-获取集群列表:URI
URI
GET /v1/clusters
参数 |
是否必选 |
参数类型 |
描述 |
---|---|---|---|
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 三种类型。
|
clusterids |
否 |
String |
集群ID。多个ID以英文逗号分隔。 |