6.5
Table Of Contents
- vSphere SDK for Perl Programming Guide
- Contents
- Getting Started with vSphere SDK for Perl
- Writing vSphere SDK for Perl Scripts
- Refining vSphere SDK for Perl Scripts
- Creating and Using Filters
- Filtering Views Selectively Using Properties
- Retrieving the ServiceInstance Object on a vSphere Host
- Saving and Using Sessions
- Using Multiple Sessions
- Learning About Object Structure Using Data::Dumper
- Specifying Untyped Arguments in Scheduled Tasks and Callbacks
- Using Advanced Subroutines
- vSphere SDK for Perl Subroutine Reference
- Web Services for Management Perl Library
- Credential Store Perl Library
VMware, Inc. 45
Chapter 4 vSphere SDK for Perl Subroutine Reference
Parameters
Returns
Returnsnothing.
Subroutines in the Vim Package
TheVimpackageincludesthefollowingsubroutines:
“clear_session”onpage 45
“find_entity_view”onpage 45
“find_entity_views”onpage 46
“get_service_instance”onpage 47
“get_service_content”onpage 47
“get_session_id”onpage 48
“get_view”onpage 48
“get_views”onpage 48
“load_session”onpage 48
“login”onpage 49
“logout”onpage 49
“save_session”onpage 49
“update_view_data”onpage 50
clear_session
Terminatesthecurrentsessionloadedbytheload_session()subroutine.
Parameters
Noparameters.
Returns
Returnsnothing.
find_entity_view
Searchestheinventorytreeforamanagedentitythatmatchesthespecifiedentitytype.Thesearchbeginswith
therootfolderunlessthebegin_entityparameterisspecified.
Inmostcases,youspecifyafilterorpropertywhenusingthiscommandtoavoidperformanceproblems.See
“CreatingandUsingFilters”onpage 33
and“FilteringViewsSelectivelyUsingProperties”onpage 34.
Parameter Description
loglevel Numericvaluethatspecifiestheloglevel.Defaultis0.
message Stringthatspecifiestheassociatedloglevelvalue.