Managed Object - ViewManager

Property of
ServiceContent
See also
ContainerView, InventoryView, ListView, ManagedEntity, View
Since
VI API 2.5


Managed Object Description

This managed object provides access to managed objects which make accessing objects and providing updates more convenient for specific use cases.

For example, when rendering a list view of a container for which a client desires updates on only a subset of the objects, but also wants to know whenever objects are added or removed from the container, the following pattern could be used:

This pattern is useful when displaying large lists of objects, only some of which may be visible to a user at any given time.

Properties

Name Type Description
viewList* PManagedObjectReference[]
to a View[]

Views created by this ViewManager.
*May not be presentP Required privilege: System.View

Methods

Methods defined in this Managed Object
CreateContainerView, CreateInventoryView, CreateListView, CreateListViewFromView

CreateContainerView

Create a ContainerView object for this session. This returns a session object with a property that contains all objects in the container.
Required Privileges
System.View

Parameters

NameTypeDescription
_thisManagedObjectReference A reference to the ViewManager used to make the method call.
container PManagedObjectReference
to a ManagedEntity

A Folder, Datacenter, ComputeResource or ResourcePool to filter objects by.
type*xsd:string[]

An optional list of types to filter by. If empty, all types are included.
recursivexsd:boolean

Whether to include objects from sub-containers, or just immediate children.
*Need not be set P Required privilege: System.View

Return Value

Type Description
ManagedObjectReference
to a ContainerView

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.

Show WSDL type definition



CreateInventoryView

Create a new InventoryView managed object for this session.


See InventoryView

Required Privileges
System.View

Parameters

NameTypeDescription
_thisManagedObjectReference A reference to the ViewManager used to make the method call.

Return Value

Type Description
ManagedObjectReference
to a InventoryView

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.

Show WSDL type definition



CreateListView

Create a ListView object for this session. This returns a session object with a view property that contains the specified objects, and which may be modified on demand.
Required Privileges
System.View

Parameters

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

The initial list of objects in the view.
*Need not be set P Required privilege: System.View

Return Value

Type Description
ManagedObjectReference
to a ListView

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.

Show WSDL type definition



CreateListViewFromView

Create a ListView object for this session from an existing view. This returns a session object with a view property that contains a copy of the set of objects in an existing view.
Required Privileges
System.View

Parameters

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

The view from whose object set to construct a ListView.

Return Value

Type Description
ManagedObjectReference
to a ListView

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.

Show WSDL type definition