5.87.6. 隔离 POST
控制主机的电源管理设备。
例如,假设您要启动主机。这可以通过以下方法完成:
#!/bin/sh -ex
url="https://engine.example.com/ovirt-engine/api"
user="admin@internal"
password="..."
curl \
--verbose \
--cacert /etc/pki/ovirt-engine/ca.pem \
--user "${user}:${password}" \
--request POST \
--header "Version: 4" \
--header "Content-Type: application/xml" \
--header "Accept: application/xml" \
--data '
<action>
<fence_type>start</fence_type>
</action>
' \
"${url}/hosts/123/fence"
| 名称 | 类型 | 方向 | 概述 |
|---|---|---|---|
|
| In | 指明是否应异步执行隔离。 | |
|
| In | ||
|
| Out |