18.08.2013 Views

vSphere SDK for Perl Programming Guide - Documentation - VMware

vSphere SDK for Perl Programming Guide - Documentation - VMware

vSphere SDK for Perl Programming Guide - Documentation - VMware

SHOW MORE
SHOW LESS

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 />

Parameters<br />

Parameter Description<br />

view_type Managed entity type specified as one of these strings:<br />

begin_entity<br />

(optional)<br />

Returns<br />

Reference to a view object containing the same properties as the managed entity. If more than one managed<br />

entity matches the specified entity type, the subroutine returns only the first managed entity found. If no<br />

matching managed entities are found, the subroutine returns undef.<br />

find_entity_views<br />

Searches the inventory tree <strong>for</strong> managed objects that match the specified entity type.<br />

To avoid per<strong>for</strong>mance problems, use this command with a filter or specify the properties argument. By<br />

default, this subroutine retrieves all properties of an entity. See “Creating and Using Filters” on page 33 and<br />

“Filtering Views Selectively Using Properties” on page 35.<br />

See the <strong>vSphere</strong> <strong>SDK</strong> <strong>for</strong> <strong>Perl</strong> API Reference <strong>for</strong> a list of properties. You can specify properties inherited from<br />

ManagedEntity or local to a specific entity type.<br />

Parameters<br />

“ClusterComputeResource”<br />

“ComputeResource”<br />

“Datacenter”<br />

“Folder”<br />

“HostSystem”<br />

“ResourcePool”<br />

“VirtualMachine”<br />

Managed object reference that specifies the starting point <strong>for</strong> the search in the inventory. This<br />

parameter helps you narrow the scope.<br />

filter Hash of one or more name‐value pairs. The name represents the property value to test and the value<br />

represents a pattern that the property must match. If more than one pair is specified, all the patterns<br />

must match.<br />

Use filters to avoid per<strong>for</strong>mance problems. See “Creating and Using Filters” on page 33 and<br />

“Filtering Views Selectively Using Properties” on page 35.<br />

Parameter Description<br />

view_type Managed entity type specified as one of these strings:<br />

begin_entity<br />

(optional)<br />

“ClusterComputeResource”<br />

“ComputeResource”<br />

“Datacenter”<br />

“Folder”<br />

“HostSystem”<br />

“ResourcePool”<br />

“VirtualMachine”<br />

Managed object reference that specifies the starting point <strong>for</strong> search in the inventory. This parameter<br />

helps you narrow the scope.<br />

filter (optional) Hash of one or more name‐value pairs. The name represents the property value to test and the value<br />

represents a pattern that the property must match. If more than one pair is specified, all the patterns<br />

must match.<br />

properties Properties to retrieve. Default is all properties. Use a filter or properties to avoid per<strong>for</strong>mance<br />

problems. See “Filtering Views Selectively Using Properties” on page 35.<br />

46 <strong>VMware</strong>, Inc.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!