VMware Cloud Community
jmedd
Enthusiast
Enthusiast
Jump to solution

vCACCAFEEntitiesFinder.getMachinePrefixes(vCACCafeHost) only returns 25 results

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?

Blog: http://jonathanmedd.net | Twitter: @jonathanmedd
Reply
0 Kudos
1 Solution

Accepted Solutions
Craig_G2
Hot Shot
Hot Shot
Jump to solution

This has been bugging me since we spoke about it last... This seems to work & survives when I throw lots of prefixes at it 🙂

https://communities.vmware.com/thread/521041 · GitHub

View solution in original post

Reply
0 Kudos
5 Replies
Craig_G2
Hot Shot
Hot Shot
Jump to solution

This has been bugging me since we spoke about it last... This seems to work & survives when I throw lots of prefixes at it 🙂

https://communities.vmware.com/thread/521041 · GitHub

Reply
0 Kudos
jmedd
Enthusiast
Enthusiast
Jump to solution

Nice one, thanks Smiley Happy

Blog: http://jonathanmedd.net | Twitter: @jonathanmedd
Reply
0 Kudos
Dan_Linsley
VMware Employee
VMware Employee
Jump to solution

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

Reply
0 Kudos
jmedd
Enthusiast
Enthusiast
Jump to solution

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!

Blog: http://jonathanmedd.net | Twitter: @jonathanmedd
Reply
0 Kudos
Craig_G2
Hot Shot
Hot Shot
Jump to solution

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 🙂

Reply
0 Kudos