Ran your code example from the github link against a small staging environment and got the following result (each row is a reservation):
The red text is where the powervra output differed from the gui.
- PSVersion: 6.0.1
- PSEdition: Core
- GitCommitId: v6.0.1
- Server APIVersion: 7.3
Note: the first five lines are from a single compute resource and the last five lines are from a second compute resource
alexanderjn Thanks a lot for taking the time to do that!
So more evidence that there can be discrepancies between what's reported in the GUI and what is returned from API. It would be interesting to see a VMware response to this.
I am having a very similar issue with reservations. The GUI shows me the proper list of networks in the reservation and the REST API (and therefore powervRA) is missing at least one entry. Is this a bug or am I missing a step in getting updated information from REST?
As a followup for those who are interested, I opened a case on this and their response at this point is that the reservations information comes from two places, the vRA (postgres) database and IaaS database. When they perform the rename the objects seems to be updating in vRA, but only in IaaS when these are created initially (i.e removing and adding back).
I am not sure at this point if they will fix this behavior since going forward this should not be an issue, as in vRA 8.x it does not use the IaaS model.
If anyone wants to chime in to GSS about it and try to convince them to fix it, that would be appreciated.