0 Replies Latest reply on Aug 5, 2019 12:11 AM by PavanHCL

    Query Disk Mappings API

    PavanHCL Novice

      Getting ServerSOAPFaultException when I tried to Query Disk Mappings using  VSAN API. Please find the error message and the code snippet below for your reference .

       

      Error Message:

      com.sun.xml.internal.ws.fault.ServerSOAPFaultException: Client received SOAP Fault from server: Unknown type (VsanVcDiskManagementSystem) Please see the server log to find more detail regarding exact cause of the failure.

       

      Code snippet:

      ManagedObjectReference managedObjectReference = new ManagedObjectReference();

      managedObjectReference.setType("VsanVcDiskManagementSystem");

      managedObjectReference.setValue("vsan-disk-management-system");

       

      ManagedObjectReference clusterObj = new ManagedObjectReference();

      clusterObj.setType(cluster.getMOR().getType());

      clusterObj.setValue(cluster.getMOR().getVal());

       

      List<VimVsanHostDiskMapInfoEx> vimVsanHostDiskMapInfoExList = healthPort.queryDiskMappings(managedObjectReference, clusterObj);

       

      Kindly let me me know, how to use the queryDiskMappings API.

       

      Thanks in advance