vSphere SDK for Perl Programming Guide - Documentation - VMware
vSphere SDK for Perl Programming Guide - Documentation - VMware
vSphere SDK for Perl Programming Guide - Documentation - VMware
You also want an ePaper? Increase the reach of your titles
YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.
<strong>vSphere</strong> <strong>SDK</strong> <strong>for</strong> <strong>Perl</strong> <strong>Programming</strong> <strong>Guide</strong><br />
get_session_id<br />
Retrieves the session ID corresponding to the current session.<br />
Parameters<br />
No parameters.<br />
Returns<br />
Session ID cookie <strong>for</strong> use by load_session().<br />
get_view<br />
Retrieves the properties of a single managed object.<br />
Parameters<br />
Parameter Description<br />
mo_ref Managed object reference obtained from a property of another managed object or a view.<br />
view_type (optional) Type of view to construct from the managed object. If the parameter is absent, the subroutine<br />
constructs a view with a type that matches the managed object type name.<br />
Returns<br />
View object containing static copies of a managed object’s property values.<br />
get_views<br />
Retrieves the properties of a set of managed objects.<br />
Parameters<br />
Parameter Description<br />
mo_ref_array Reference to an array of managed object references.<br />
view_type (optional) Type of view to construct from the managed object. If the parameter is absent, the subroutine<br />
constructs a view with a type that matches the name of the managed object type.<br />
Returns<br />
Reference to an array of view objects containing copies of property values <strong>for</strong> multiple managed objects.<br />
Notes<br />
The Vim::get_views() subroutine takes a reference to an array of managed object references and returns a<br />
reference to an array of view objects. Although the array can contain multiple managed object types, objects<br />
of only one type can be obtained at the same time.<br />
load_session<br />
Uses a saved session file or session cookie <strong>for</strong> connecting to a server. Use Util::connect() instead of<br />
Vim::login() after loading the session.<br />
You can use save_session() to get a session file or get_session_id() to get a session ID.<br />
48 <strong>VMware</strong>, Inc.