VMware Cloud Community
Brian_Markussen
Enthusiast
Enthusiast

vRA7 - How to update a "linked" (getLink) property of a vcac:entity?

Hi,

How do I update a "linked value" of a vcac:entity?

I am trying to update the HostStorageReservationPolicy "linked property" of a HostToStorage entity. I keep getting error: java.lang.NullPointerException

I can update the properties of the HostToStorage entity. e.g IsStorageCluster (I know this is not advisable but I tried it for testing)

This is the properties of the entity:

computeResourceToStorage.getProperties().keys : ExternalReferenceId,Flags,IsSDRSEnabled,HostToStorageID,StoragePath,IsStorageCluster

But I can't update the "linked properties" (e.g. HostStorageReservationPolicy)

computeResourceToStorage.getLinks(vcacHost).keys : Parent,Host,Children,HostStorageReservationPolicy,HostReservationToStorages,StorageCostProfile,Storage,VMDiskHardware

Script snippet:

pastedImage_4.png

I hope you can help me, thanks.

Brian

0 Kudos
0 Replies