Share via


SettingsType

Applies To: System Center 2012 - Operations Manager, System Center 2012 R2 Operations Manager, System Center 2012 SP1 - Operations Manager

SettingsType complex data type is used to specify class and relationship type instance property values in name/value pairs.

Schema Definition

<xsd:complexType name="SettingsType">
  <xsd:sequence>
    <xsd:element name="Settings" minOccurs="0" maxOccurs="1">
      <xsd:complexType>
        <xsd:sequence>
          <xsd:element name="Setting" minOccurs="0" maxOccurs="unbounded">
            <xsd:complexType>
              <xsd:sequence>
                <xsd:element name="Name" type="xsd:string"/>
                <xsd:element name="Value" type="xsd:string"/>
              </xsd:sequence>
            </xsd:complexType>
          </xsd:element>
        </xsd:sequence>
      </xsd:complexType>
    </xsd:element>
  </xsd:sequence>
</xsd:complexType>

Remarks

The Name element must contain a valid $MPElement reference to a class or relationship property. The Value element contains either a static value, a $Data reference, a $Target reference, a $Config reference, or a combination of two or more of those types.

The following XML sample shows a simple implementation of one Name/Value pair in a Settings element:


  <Settings>
    <Setting>
      <Name>$MPElement[Name="Windows!Microsoft.Windows.Computer"]/PrincipalName$</Name>
      <Value>$Target/Property[Type="Windows!Microsoft.Windows.Computer"]/PrincipalName$</Value>
    </Setting>
  </Settings>

Example

The following sample XML illustrates a configuration parameter called InstanceSetting that is of the SettingsType complex type.


<Discovery ID="WMIObjectDiscovery" Enabled="true" Target="WindowsLibrary!Microsoft.Windows.Server.2008.Computer" ConfirmDelivery="False" Remotable="true" Priority="Normal">
  <Category></Category>  
  <DiscoveryTypes>
    <DiscoveryClass TypeID="ExtendedWindowsServer2008ComputerClassType">
      <Property Type="ExtendedWindowsServer2008ComputerClassType" PropertyID="ServerBootupState"/>
    </DiscoveryClass>
  </DiscoveryTypes>
  
  <DataSource ID="DiscoveryDS"  TypeID="Windows!Microsoft.Windows.Discovery.WMISinglePropertyProvider2">
    <NameSpace>\\$Target/Host/Property[Type="WindowsLibrary!Microsoft.Windows.Server.2008.Computer"]/NetworkName$\Root\CIMv2</NameSpace>
    <Query>SELECT * from Win32_ComputerSystem WHERE Name = '$Target/Property[Type="WindowsLibrary!Microsoft.Windows.Server.2008.Computer"]/PrincipalName$'</Query>
    <Frequency>30</Frequency>
    <ClassID>$MPElement[Name="ExtendedWindowsServer2008ComputerClassType"]$</ClassID>
    <PropertyName>BootupState</PropertyName>
    <InstanceSettings>
      <Settings>
        <Setting>
          <Name>$MPElement[Name="ExtendedWindowsServer2008ComputerClassType"]/ServerBootupState$</Name>
          <Value>$Data/Property[@Name="BootupState"]</Value>
        </Setting>
        <Setting>
          <Name>$MPElement[Name="WindowsLibrary!Microsoft.Windows.Server.2008.Computer"]/PrincipalName$</Name>
          <Value>$Target/Property[Type="WindowsLibrary!Microsoft.Windows.Server.2008.Computer"]/PrincipalName$</Value>
        </Setting>
       </Settings>
    </InstanceSettings>
  </DataSource>
</Discovery>

Information

   

Schema Type

System.Discovery.MapperSchema

Library

System.Library