Managed Object - ListView(vim.view.ListView)

Returned by
CreateListView, CreateListViewFromView
Extends
ManagedObjectView
See also
View
Since
VI API 2.5


Managed Object Description

The ListView managed object provides access to updates on a specific set of objects. You can use a ListView with a PropertyCollector method to retrieve data or receive notification of changes. For information about using views with the PropertyCollector, see the description of ViewManager.

When you invoke the CreateListView method, you specify a list of objects. The view list always represents the current configuration of the virtual environment and reflects any subsequent changes that occur.

Properties

Name Type Description
None
Properties inherited from ManagedObjectView
view
Properties inherited from View
None

Methods

Methods defined in this Managed Object
ModifyListView, ResetListView, ResetListViewFromView
Methods inherited from ManagedObjectView
None
Methods inherited from View
DestroyView

ModifyListView(modify)

Modify the list by giving a delta of entities to add and entities to remove.

May partially succeed if some objects could not be resolved. The operation will still succeed for all objects which could be resolved, and the list of those which failed is returned as the result.

Required Privileges
None

Parameters

NameTypeDescription
_thisManagedObjectReference A reference to the ListView used to make the method call.
add* PManagedObjectReference[]

Optional list of objects to add to the view.
remove* PManagedObjectReference[]

Optional list of objects to remove from the view.
*Need not be set P Required privilege: System.View

Return Value

Type Description
ManagedObjectReference[]A list containing any objects in 'add' that could not be resolved.

Faults

Type Description
RuntimeFaultThrown if any type of runtime fault is thrown that is not covered by the other faults; for example, a communication error.

Events

Type
None

Show WSDL type definition



ResetListView(reset)

Replaces the list with an entirely new set of objects. If the entire set is changing, this is less data to send than a delta.

May partially succeed if some objects could not be resolved. The operation will still succeed for all objects which could be resolved, and the list of those which failed is as the result.

Required Privileges
None

Parameters

NameTypeDescription
_thisManagedObjectReference A reference to the ListView used to make the method call.
obj* PManagedObjectReference[]

The new list of objects.
*Need not be set P Required privilege: System.View

Return Value

Type Description
ManagedObjectReference[]A list containing any objects in 'obj' that could not be resolved.

Faults

Type Description
RuntimeFaultThrown if any type of runtime fault is thrown that is not covered by the other faults; for example, a communication error.

Events

Type
None

Show WSDL type definition



ResetListViewFromView(resetFromView)

Replaces the list with the set of objects in a given view.
Required Privileges
None

Parameters

NameTypeDescription
_thisManagedObjectReference A reference to the ListView used to make the method call.
viewManagedObjectReference
to a View

The view to copy objects from.

Return Value

Type Description
None

Faults

Type Description
RuntimeFaultThrown if any type of runtime fault is thrown that is not covered by the other faults; for example, a communication error.

Events

Type
None

Show WSDL type definition