mrs__ListClusters
Retrieve user-created MRS cluster list information and filter results by project, cluster name, state, tags, page, or enterprise project to find matching clusters.
Instructions
[MRS] 查看用户创建的集群列表信息。该接口不兼容Sahara。
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"project_id": "<project_id>"
},
"name": "mrs__ListClusters"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tags | No | 可以通过集群的标签来搜索指定标签的集群,当指定多个tag进行查询时,标签之间是与的关系。 | |
| pageSize | No | 分页查询每页返回的最大集群数量。 | |
| project_id | Yes | 项目编号。获取方法,请参见[获取项目ID](https://support.huaweicloud.com/api-mrs/mrs_02_0011.html)。 | |
| clusterName | No | 集群名称。 | |
| currentPage | No | 当前查询页码。 | |
| clusterState | No | 根据集群状态查询集群列表。 | |
| enterpriseProjectId | No | 通过企业项目ID来搜索指定项目的集群。 |