Share via


SchemaType

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

Contains a reusable schema definition type within a management pack.

Schema Hierarchy

ManagementPack
  TypeDefinitions
    SchemaTypes
      SchemaType

Syntax

<SchemaType ID=”Company.Product.SchemaTypeID” Comment=”Comment” Accessibility=”Public/Internal”>
</SchemaType>

Attributes and Elements

The following sections describe attributes, child elements, and the parent element of the SchemaType element.

Attributes

Attribute Description

ID

Required attribute. Represents the identity of the element. To learn how to identify your element in a management pack, see Element Identity and Namespace Conventions.

Comment

Optional attribute. Represents commentary by the management pack author.

Accessibility

Required attribute. Defines the visibility of the schema type.

Accessibility Attribute

Value Description

Public

Indicates that this schema type is visible to external management packs for referencing.

Internal

Indicates that external management packs cannot reference this schema type.

Child Elements

None.

Parent Elements

Element Description

SchemaTypes

Contains reusable schema definitions types within a management pack.

Text Value

The SchemaType element contains a reusable XML schema definition for use in many management pack elements such as ModuleTypes or MonitorTypes definitions. The content of a SchemaType element must follow standard XML schema guidelines. For more information regarding XML schemas, see Understanding XML Schema.

Remarks

There are many common schema types that are defined within the core management packs. These schema types are documented in Schema Types Reference

Example

In the following sample, a SchemaTypes element contains the definition of a schema that models a registry attribute definition. This schema definition can be found in the Microsoft.Windows.Library management pack.

<SchemaTypes>
 <SchemaType ID="Microsoft.Windows.RegistryAttributeDefinitionsSchema" Accessibility="Public">
  <xsd:complexType name="RegistryAttributeDefinitionsType">
    <xsd:sequence>
      <xsd:element name="RegistryAttributeDefinition" minOccurs="1" maxOccurs="unbounded">
        <xsd:complexType>
          <xsd:sequence>
            <xsd:element name="AttributeName" type="xsd:ID"/>
            <xsd:element name="Path" type="xsd:string"/>
            <xsd:element name="PathType" type="xsd:integer"/>
            <xsd:element name="AttributeType" type="xsd:integer"/>
          </xsd:sequence>
        </xsd:complexType>
      </xsd:element>
    </xsd:sequence>
  </xsd:complexType>
 </SchemaType>
</SchemaTypes>

In the following sample, a DataSourceModuleType element references the Microsoft.Windows.RegistryAttributeDefinitionsSchema schema type defined above.

<DataSourceModuleType ID="Microsoft.Windows.RegistryProvider" Accessibility="Public">
  <Configuration>
    <IncludeSchemaTypes>
      <SchemaType>Microsoft.Windows.RegistryAttributeDefinitionsSchema</SchemaType>
    </IncludeSchemaTypes>
    <xsd:element name="ComputerName" type="xsd:string"/>
    <xsd:element name="RegistryAttributeDefinitions" type="RegistryAttributeDefinitionsType"/>
    <xsd:element name="Frequency" type="xsd:unsignedInt"/>
  </Configuration>
  …
</DataSourceModuleType>

See Also

Reference

SchemaTypes