When an ESXi host is placed into standby mode by Distributed Power Management (DPM), the host's connection state in vCenter Server changes to Standby.
Executing the REST API call to retrieve the host summary details: GET:/api/vcenter/host?hosts=host-****
The API returns an HTTP 500 internal server error containing the following Response:
"error_type": "INTERNAL_SERVER_ERROR","messages": [ { "args": [ "com.vmware. vcenter.host.summary", "connection_state", "NOT_RESPONDING", "power_state" ], "default_message": "Structure com.vmware.vcenter.host.summary has a union constraint with tag 'connection_state' of value 'NOT_RESPONDING', for which the field 'power_state' is not allowed to be set.", "id": "vapi.data.structure.union.extra" }]
VMware vCenter Server 8.x
vapi.data.structure.union.extra error, which is returned to the user as an INTERNAL_SERVER_ERROR.There is currently no workarounds available to prevent the API call from failing when the host is in DPM standby mode.
The fix for this issue will be included in a future release.