Step 5: Process Views and Report Results

The last part of the script processes the views.

For this step, you must know the view objects' properties and methods, so you must understand the server-side objects. See Understanding Server-Side Objects for an introduction. For in-depth information about server-side objects, see the vSphere API Reference Guide.

Because views are Perl objects, you use Perl object-oriented syntax to process the views. Sample Script (Commented Version) loops through the array of entities returned (@$entity_views) and accesses the name property of each entity by calling $entity_view->name. The example then prints the name of each entity to the console.

See Understanding Server-Side Objects.