vRA Build 6.2.2-2754020
vRO 6.0.1
Using vCACCAFEEntitiesFinder.getMachinePrefixes(vCACCafeHost) only returns 25 results when there are more than 25 Machine Prefixes.
The documentation for this method states "Gets all machine prefixes for a host" - yet it does not seem to retrieve all of them if there are more than 25.
I've also tried the built in workflow getAvailableMachinePrefixes which uses vCACCAFEEntitiesFinder.findMachinePrefixes(host, query), but that seems to have the same issue when there are more than 25.
Anyone else experience this / have a way around it?
This has been bugging me since we spoke about it last... This seems to work & survives when I throw lots of prefixes at it 🙂
This has been bugging me since we spoke about it last... This seems to work & survives when I throw lots of prefixes at it 🙂
Nice one, thanks
What version of the vRA Plugin are you using in Orchestrator? A similar issue was fixed in the plugin for 6.2.2
VMware vCenter Orchestrator Plug-In for vCloud Automation Center Release Notes
OK, yes I see - similar issue for retrieving Business Groups.
We are using plugin version 6.2.1.2442325. Unable to upgrade the plugin to 6.2.2 currently in this environment. Will need to go and test it out elsewhere to see if the same fix has filtered through in that version to MachinePrefixes.
Thanks!
Just tested this with the 6.2.2 plugin. I've got over 200 machine prefixes in vRA at the moment and it still returns 25
var vCACCAFEMachinePrefixArray = new Array();
var vCACCAFEMachinePrefixArray = vCACCAFEEntitiesFinder.getMachinePrefixes(vCACCAFEHost);
System.log("MachinePrefix return count: " + vCACCAFEMachinePrefixArray.length);
[2015-10-06 17:11:23.264] [I] MachinePrefix return count: 25
It does work with the gist above though, so you shouldn't really need to worry about looping through each one as findMachinePrefixes does that for you 🙂