5.87.9. 安装 POST
在主机上安装 VDSM 及相关软件。主机类型定义该操作的其他参数。
使用 curl 和 JSON 安装主机示例:
curl \
--verbose \
--cacert /etc/pki/ovirt-engine/ca.pem \
--request PUT \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "Version: 4" \
--user "admin@internal:..." \
--data '
{
"root_password": "myrootpassword"
}
' \
"https://engine.example.com/ovirt-engine/api/hosts/123"
使用 curl 和 JSON 安装带有托管引擎组件的主机示例:
curl \
curl \
--verbose \
--cacert /etc/pki/ovirt-engine/ca.pem \
--request PUT \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "Version: 4" \
--user "admin@internal:..." \
--data '
{
"root_password": "myrootpassword"
}
' \
"https://engine.example.com/ovirt-engine/api/hosts/123?deploy_hosted_engine=true"
| 名称 | 类型 | 方向 | 概述 |
|---|---|---|---|
|
| In | 指明是否应异步执行安装。 | |
|
| In |
当设置为 | |
|
| In |
此 | |
|
| In | 安装 oVirt 节点时,需要镜像 ISO 文件。 | |
|
| In |
用于通过 SSH 连接到主机的 | |
|
| In | 用于连接到主机的 SSH 详情。 | |
|
| In |
当设置为 |
5.87.9.1. deploy_hosted_engine 复制链接链接已复制到粘贴板!
当设置为 true 时,这意味着此主机应部署也应该部署托管引擎组件。缺少的值被视为 true i.e deploy。省略此参数意味着 false,也不会在托管引擎区中执行操作。