UNAUTHORIZED" error instead of the expected "INVALID_ARGUMENT" errorThe API's being affected:
POST https://{server}/api/esx/settings/inventory?action=extract-installed-image&vmw-task=truePOST https://{server}/api/esx/settings/inventory?action=transition&vmw-task=trueGET https://{server}/api/esx/settings/inventory/reports/transition-summary/clustersGET https://{server}/api/esx/settings/inventory/reports/transition-summary/hosts
Example Request:
{ "entities": { "type": "CLUSTER", "clusters": [] }}
Observed Error:
{ "error_type": "UNAUTHORIZED", "messages": []}
vSphere Lifecycle Manager 9.0 onwards
This issue is caused because the API requires a valid, non-empty list of entities in the input specification
For example, if you are querying for cluster information, the "clusters" list should contain at least one valid cluster identifier.
Example of a Corrected Request (assuming a cluster with ID "domain-c7" exists):
{ "entities": { "type": "CLUSTER", "clusters": ["domain-c7"] }}