基础设施相关接口/生命周期
POSTLifecycle起始版本 1.0同步需要认证
扩缩容集群
通过添加节点将集群从单节点部署水平扩展至高可用模式。
调试可用性
在线调试
使用当前认证信息和示例参数提交 Mock 请求。
请求参数
请求体字段
nodesList必填节点。
示例: (nested array)
hostString主机地址。
示例: 172.24.253.84
sshPortInteger节点新增。
示例: 22
sshUserStringSSH用户。
示例: root
sshPasswordStringSSH密码。
示例: value
sshKeyStringSSH键。
示例: value
sshHostKeyStringSSH主机键。
示例: value
响应状态
请求地址
POST/api/v1/lifecycle/components/scale
/api/v1/lifecycle/components/scale
请求示例
curl -X POST '{host}/api/v1/lifecycle/components/scale' -H 'Authorization: Bearer {token}' -H 'Content-Type: application/json' -d '{"nodes":[{"host":"node-2.example.com","sshUser":"root","sshPort":22},{"host":"node-3.example.com","sshUser":"root","sshPort":22}]}'
响应示例
200{
"taskId": "task-a1b2c3d4-e5f6-7890-abcd-ef1234567890"
}变更历史
此 API 暂无变更历史记录。
