vSphere SDK for Perl Programming Guide - Documentation - VMware
vSphere SDK for Perl Programming Guide - Documentation - VMware
vSphere SDK for Perl Programming Guide - Documentation - VMware
Create successful ePaper yourself
Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.
Arguments<br />
A hash. Keys are the prefixes, values are the relative URLs as values.<br />
Appendix A Web Services <strong>for</strong> Management <strong>Perl</strong> Library<br />
Example<br />
$client->register_class_ns((OMC => 'http://schema.omc-project.org/wbem/wscim/1/cim-schema/2',<br />
<strong>VMware</strong> => 'http://schemas.vmware.com/wbem/wscim/1/cim-schema/2'));<br />
Registers the ResourceURIs needed to enumerate classes in the OMC and <strong>VMware</strong> schemas.<br />
Identify<br />
Per<strong>for</strong>ms the wsmid:Identify operation, which causes the WS‐Management server to identify itself. Helps<br />
you determine whether the server is running.<br />
Arguments<br />
No arguments.<br />
Returns<br />
Prints a fault string if a fault occurs, or returns the reply sent by the server. The reply is a hash reference<br />
containing the parsed reply in key‐value pairs.<br />
EnumerateInstances<br />
Enumerates the instances of a given class.<br />
Returns<br />
Returns a list of hashes containing the parsed reply from the server, or prints a fault string from the server if<br />
an error occurs.<br />
Example<br />
$client->EnumerateInstances(<br />
class_name => 'CIM_Processor',<br />
namespace => 'root/cimv2' #optional<br />
)<br />
EnumerateInstanceNames<br />
Enumerates only the key values of the instances of a given class. Similar to EnumerateInstances.<br />
Returns<br />
Like EnumerateInstances, either returns a list of hashes containing the parsed reply from the server (keys<br />
only), or prints a fault string if an error occurs.<br />
EnumerateAssociatedInstances<br />
Returns the instances related to the source object through an association. Results are filtered based on the<br />
argument you pass in.<br />
Arguments<br />
Accepts the following arguments:<br />
Argument Description<br />
class_name Name of the class <strong>for</strong> which you want to get the associated instances.<br />
selectors Set keys as a reference to a hash. Used to identify the instance of the class<br />
mentioned in the class_name argument.<br />
associationclassname<br />
(optional)<br />
Name of the association class <strong>for</strong> the instance.<br />
<strong>VMware</strong>, Inc. 59