跳到主要内容

更新集群

更新现有集群的配置。

请求​

PUT /api/v1/pve/cluster/:id
Authorization: Bearer <token>
Content-Type: application/json

路径参数​

参数类型说明
idint集群 ID

请求体​

{
"name": "生产环境集群(更新)",
"apiUrl": "https://pve-new.example.com:8006",
"env": "prod"
}

响应​

{
"code": 200,
"message": "success",
"data": {
"id": 1,
"clusterName": "pve-cluster-01",
"name": "生产环境集群(更新)",
"status": "enabled"
}
}