Highlighted
Enthusiast
Enthusiast

[vRA 7.5] - vCac:VirtualMachine data entries missing / empty

Hi,

we have a strange issue on vRA 7.5.

Randomly some vCac:VirtualMachine have Data entries missing...

We retrieve information from vRA API :

- REST operation > /catalog-service/api/consumer/resources?page={pageNumber}&limit=100&$filter=resourceType%2Fid%20eq%20%27composition.resource.type.deployment%27

so that we can't retrieve the status of vCac:VirtualMachine :

//dig until the machine status

    virtualMachineResourceDataEntries = virtualMachine.resourceData.entries;

    System.debug("virtualMachine.resourceData : " + virtualMachine.resourceData);

    System.debug("virtualMachineResourceDataEntries : " + virtualMachineResourceDataEntries);

    for (keyVMRDE in virtualMachineResourceDataEntries) {

        element = virtualMachineResourceDataEntries[keyVMRDE];

        if (JSON.stringify(element.key) == "\"MachineStatus\"") {

            virtualMachineStatus = JSON.stringify(element.value.value).replace(cleanMarks, "");

            System.debug("virtualMachineStatus : " + virtualMachineStatus);

            break;

        }

    }

I don't understand why the vCac:VirtualMachine has no entries randomly.

Do you have the same issue ?

Thx for your feedback.

0 Kudos
0 Replies