VMware Cloud Community
TheVMinator
Expert
Expert

Scoping vSphere API for use with Javascript

I need to get a handle on how to find something in the vsphere API for use in javascript.

For example take this line of code:

var vimHost = vm.vimHost;

Where would I go to discover there is a class called "vm" and that it has a property called "vimhost"

where would I find those details?

Thanks!

0 Kudos
3 Replies
ivand
VMware Employee
VMware Employee

vCenter plug-in exposes one-to-one vCenter API via scripting. You can ind answer to your question in Orchestrator client on tools menu. There is a menu API Explorer ... . This menu will open a dialog where you can search/browse available scripting API for Orchestrator and all installed plug-ins. Give it a try.

TheVMinator
Expert
Expert

will do thanks!

0 Kudos
robrtb12
Enthusiast
Enthusiast

Here's an HTML version of the API reference I use a ton....

vCenter Server 5.5 Plug-In API Reference for vCenter Orchestrator