Updating the vSphere / vCenter integration using the PUT api/v2/vsphere API call results in a HTTP 500 Internal error occurred during request processing." error.
Reviewing the /storage/core/loginsight/var/runtime.log shows an error like
[2025-01-21 12:52:29.411+0000] ["application-akka.actor.default-dispatcher-48083"/10.1.2.3 ERROR] [globals.GlobalErrorHandler] [Error executing request PUT /api/v2/vsphere/{vcenter_fqdn}] java.util.concurrent.CompletionException: java.lang.NullPointerException at java.util.concurrent.CompletableFuture.encodeThrowable(Unknown Source) ~[?:?] ... Caused by: java.lang.NullPointerException at com.vmware.loginsight.api.v2.providers.vSphere.VsphereProvider.addOrUpdateConfigurations(VsphereProvider.java:148)
VMware Aria Operations for Logs 8.x
The API call requires a Boolean parameter in the JSON payload called configureEsxiHostsAutomatically.
Include a Boolean Parameter in the JSON payload called configureEsxiHostsAutomatically
Example JSON Payload
{ "acceptCert": true, "username": "exampleVCUsername", "password": "exampleVCPassword", "syslogProtocol": "tcp", "vsphereEventsEnabled": true, "configureEsxiHostsAutomatically": false, "target": "exampleVIP.ip.or.fqdn", "userTags": "tag1=value1,tag2=value2" }