Users Guide
},
"status": "NON_COMPLIANT",
"target": {
"pkg": "<cluster profile name>",
"version": "0.0.0-0"
}
},
"key": "com.dell.plugin.OpenManager_HWSupportManager"
}
],
运行修复预检查
命令:POST https://{VC IP/FQDN}/api/esx/settings/clusters/{cluster ID}/software?vmw-task=true&action=check
说明:先在群集上运行检查,然后再在群集中的所有主机上应用所需状态。检查群集中的所有主机是否处于良好状态,并可更新到
所需状态。
HTTP 响应代码:200。有关所有响应代码的列表,请参阅响应代码 页面上的 154。
示例响应:
{task-id}
获取修复预检查任务状态
命令:GET https://{VC IP/FQDN}/rest/cis/tasks/{task ID}
说明:返回有关任务的信息。
HTTP 响应代码:200。有关所有响应代码的列表,请参阅响应代码 页面上的 154。
示例响应:
{
"value":
{
"parent": "",
"cancelable": true,
"end_time": "2020-02-12T18:03:59.391Z",
"description":
{
"args": [],
"default_message": "Task created by VMware vSphere Lifecycle Manager",
"id": "com.vmware.vcIntegrity.lifecycle.Task.Description"
},
"target":
{
"id": "domain-c8",
"type": "ClusterComputeResource"
},
"result":
{
"start_time": "2020-02-12T17:52:09.264Z",
"commit": "",
"end_time": "2020-02-12T18:03:59.386Z",
"entity_results":
[
{
"host": "host-47",
"type": "HOST",
"check_statuses": [],
"status": "OK"
}
{
"host": "host-41",
"type": "HOST",
"check_statuses": [],
"status": "OK"
126
主机管理