3.2 Changing Element Relationships

Managing element relationships with Web services works much the same way as the comparable functionality in the Operations Center console. As in the Operations Center console, you can only manipulate an element’s association with source elements, or “right” relations, as exposed in WSAPI. Through WSAPI you can only add or remove relations; you cannot modify an existing relation.

WSAPI provides five types of relations that can be configured:

Type

Description

RelationshipInfoStatic

Each instance of this type of relationship corresponds to an entry in the Elements tab shown in Figure 3-2.

RelationshipInfoRegex

An instance of this type corresponds to an entry on the Matches tab (with Use LDAP Syntax deselected) of an element’s property page. An element can only support one relation of this type and this type cannot be used in conjunction with a RelationshipInfoLdap instance.

RelationshipInfoLdap

An instance of this type corresponds to an entry on the Matches tab (with Use LDAP Syntax selected) in the element’s property page. An element can only support one relation of this type and this type cannot be used in conjunction with a RelationshipInfoRegex instance.

RelationshipInfoScript

An instance of this type corresponds to an entry on the Script tab in the element’s property page. An element can only support one relation of this type.

RelationshipInfoClass

An instance of this type corresponds to an entry on the Class tab in the element’s property page. An element can only support one relation of this type.