RelationshipTypes
Applies To: Operations Manager 2007 R2, System Center Operations Manager 2007
Contains definitions of relationship types between class types.
Schema Hierarchy
ManagementPack
TypeDefinitions
EntityTypes
RelationshipTypes
Syntax
<RelationshipTypes>
<RelationshipType>…</RelationshipType>
<RelationshipTypes>
Attributes and Elements
The following sections describe attributes, child elements, and the parent element of the RelationshipType element.
Attributes
None.
Child Elements
Element | Description |
---|---|
Optional element. Represents a relationship type definition in the management pack. |
Parent Elements
Element | Description |
---|---|
Contains class and relationship type definitions. |
Example
The following sample illustrates how relationship types are defined within a management pack. All of the relationship types implement System.Hosting as a base class, thus specifying a hosting relationship between the Source and the Target classes.
System.Hosting is defined in the external System.Library management pack using the Alias!ElementID
notation. For more information about how to reference an external management pack by using the Alias!ElementID
notation, see Reference (Manifest).
<RelationshipTypes>
<RelationshipType ID="Microsoft.Windows.ComputerHostsComputerRole" Base="System!System.Hosting" Accessibility="Public">
<Source>Microsoft.Windows.Computer</Source>
<Target>Microsoft.Windows.ComputerRole</Target>
</RelationshipType>
<RelationshipType ID="Microsoft.Windows.ComputerHostsLocalApplication" Base="System!System.Hosting" Accessibility="Public">
<Source>Microsoft.Windows.Computer</Source>
<Target>Microsoft.Windows.LocalApplication</Target>
</RelationshipType>
<RelationshipType ID="Microsoft.Windows.ComputerHostsLogicalDevice" Base="System!System.Hosting" Accessibility="Public">
<Source>Microsoft.Windows.Computer</Source>
<Target>Microsoft.Windows.LogicalDevice</Target>
</RelationshipType>
<RelationshipType ID="Microsoft.Windows.ComputerHostsOperatingSystem" Base="System!System.Hosting" Accessibility="Public">
<Source>Microsoft.Windows.Computer</Source>
<Target>Microsoft.Windows.OperatingSystem</Target>
</RelationshipType>
<RelationshipType ID="Microsoft.Windows.ComputerHostsSoftwareInstallation" Base="System!System.Hosting" Accessibility="Public">
<Source>Microsoft.Windows.Computer</Source>
<Target>Microsoft.Windows.SoftwareInstallation</Target>
</RelationshipType>
</RelationshipTypes>