5.5.1

Table Of Contents
Type Value Description
String
type
Type of object looked for.
String
id
ID of the object looked for.
String
username
Orchestrator user name.
String
password
Orchestrator password.
Return Value
Returns a FinderResult object containing details of the object found. Returns null if you pass it an invalid
parameter.
findRelation Operation
The findRelation operation finds all the children elements in an inventory that belong to a particular parent
or type of parent.
Knowing how a child is related to its parent is useful if you develop tree viewers to view the objects in a
library. The findRelation operation is declared as follows.
public FinderResult[] findRelation(String parentType, String parentId,
String relation, String username, String password);
Type Value Description
String
parentType
The type of parent object.
The parentType property can be the
name of a plug-in, or it can specify a
more narrowly defined parent. For
example, you can specify the
parentType as "VC:" to obtain the
objects at the root of VMware vCenter
Server plug-in, or you can a specific
folder, such as "VC:VmFolder".
String
parentId
The ID of a particular parent object.
The parentId parameter allows you
to find the children of a specific parent
object, if you know its ID.
String
relation
The name of the relation.
Calling findRelation returns all
children elements under a parent
identified by its parentId. If you omit
the parentId the parentType is not
the root type of the inventory, the
findRelation operation returns null.
See “Relation Types,” on page 84 for
more information.
String
username
Orchestrator user name.
String
password
Orchestrator password.
Relation Types
The relation property types are defined by the plug-ins. The validity of relations depends on the parent
type.
This table lists the relation types defined by each of the standard plug-ins provided by Orchestrator.
Developing a Web Services Client for VMware vCenter Orchestrator
84 VMware, Inc.