Created
November 28, 2015 21:54
-
-
Save vmwarecode/4c72f8122ef6a0109bce to your computer and use it in GitHub Desktop.
Get IaaS VirtualMachineID from Cafe ResourceID
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//Action Inputs: | |
// resourceId - string | |
// | |
//Return Type: string | |
var hosts = Server.findAllForType("vCACCAFE:VCACHost"); | |
var cafehost = hosts[0]; | |
var catalogResource = vCACCAFEEntitiesFinder.getCatalogResource(cafehost, resourceId); | |
return catalogResource.providerBinding.getBindingId(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment