Unsupported content This version of the product has reached end of support. The documentation is available for your convenience. However, you must be logged in to access it. You will not be able to leave comments.

get-monitoringclass-by-id operation


The get-monitoringclass-by-id operation retrieves the monitoring class that is identified by the specified globally unique identifier (GUID).

The following table describes the <items> XML and request elements for the get-monitoringclass-by-id operation:

Adapter request elements for the get-monitoringclass-by-id operation

The following figure illustrates a sample adapter request for the get-monitoringclass-by-id operation: 

Sample adapter request for the get-monitoringclass-by-id operation

<scom-request>
 <operation-name>get-monitoringclass-by-id</operation-name>
 <command-request>
   <timeout-secs>120</timeout-secs>
   <command-parameters>
     <monitoringclass-id>1f06bba9-58a9-fd0b-d980-08d5af2e67d3</monitoringclass-id>
   </command-parameters>
 </command-request>
</scom-request>


The following figure illustrates the adapter response for the sample request: 

Sample adapter response for the get-monitoringclass-by-id operation

<scom-response>
 <metadata>
   <status>success</status>
   <count>1</count>
 </metadata>
 <commands-output>
   <command-output>
     <metadata>
       <command>./Microsoft.EnterpriseManagement.OperationsManager.ClientShell.
       Startup.ps1;get-monitoringclass -id 1f06bba9-58a9-fd0b-d980-
       08d5af2e67d3</command>
       <execution-milliseconds>4250</execution-milliseconds>
       <exit-code>0</exit-code>
       <status>success</status>
       <count>1</count>
     </metadata>
     <output>
       <item>
         <ManagementGroup>CATNoida</ManagementGroup>
         <ManagementGroupId>ae1fcf8a-8088-31d8-93ec-90fe77a32d44</ManagementGroupId>
         <Abstract>True</Abstract>
         <Base>ManagementPackElementUniqueIdentifier=885bc562-ed36-c548-b938-
         44ce5ba7ba2b</Base>
         <Hosted>False</Hosted>
         <Singleton>False</Singleton>
         <PropertyCollection>{}</PropertyCollection>
         <XmlTag>ClassType</XmlTag>
         <Accessibility>Public</Accessibility>
         <Name>System.LocalApplication</Name>
         <Id>1f06bba9-58a9-fd0b-d980-08d5af2e67d3</Id>
         <DisplayName>Local Application</DisplayName>
         <Description>All Applications that are directly hosted by a
          Computer.</Description>
         <LanguageCode>ENU</LanguageCode>
         <Comment />
         <Status>Unchanged</Status>
         <LastModified>1/8/2009 10:11:45 AM</LastModified>
         <TimeAdded>1/8/2009 10:11:45 AM</TimeAdded>
       </item>
     </output>
   </command-output>
 </commands-output>
</scom-response>

 

Tip: For faster searching, add an asterisk to the end of your partial query. Example: cert*