Getting Started Developing an SDK Client Application
Applies To: System Center 2012 - Operations Manager
[This topic is pre-release documentation and is subject to change in future releases. Blank topics are included as placeholders.]
To start using the System Center 2012 – Operations Manager software development kit (SDK), create a new project in Microsoft Visual Studio. In your project, add references to both the core System Center library and the two Operations Manager class libraries:
You can use the class libraries to programmatically access Operations Manager data and functionality.
These assemblies are installed in the %ProgramFiles%\System Center 2012\Operations Manager\Server\SDK Binaries directory when you install Operations Manager.
After you add references to the Operations Manager class libraries, create a connection to the System Center Data Access service. The System Center Data Access service is a Windows service that runs on the root management server in a management group.
You can create a connection to the System Center Data Access service by using the Connect method. This method returns a ManagementGroup object, which is the primary object for accessing most Operations Manager features and data. For more information, see How to Connect an Operations Manager SDK Client to the System Center Data Access Service.
Accessing Operations Manager Data
The Operations Manager class libraries provide classes that contain methods for accessing the data from an SDK client application. For example, to get information about the management packs that are installed in a management group, you can call the GetManagementPacks method from the ManagementPacks property of the ManagementGroup instance. The method returns a collection of ManagementPack objects, each of which contains data about a specific management pack.
For more information about the Operations Manager classes, see System Center 2012 - Operations Manager SDK Reference.
The following example shows how to access Operations Manager data by using the ManagementGroup class. This example gets the alerts for all the Windows computers in the management group, and it displays the health state of the computer.
The following sections of this document contain more information and code examples that explain how to use the System Center 2012 – Operations Manager SDK.