Find Problem operation


The Find Problem operation retrieves a problem record.

The following table describes the elements of the <items> XML element and the adapter request. If not specified, the valid value for an element is assumed to be a string.

 Elements for the <items> XML element and adapter request for the Find Problem operation

The following figure displays a sample adapter request for the Find Problem operation.

Sample adapter request for the Find Problem operation


 <hp-service-manager-request>
   <entity>problem</entity>
   <entity-type />
   <request>
     <operation-name>retrieve-problem</operation-name>
     <parameters>
       <retrieve-problem-request>
         <model>
           <keys>
             <id>
               <value>PM10034</value>
               <type>String</type>
             </id>
           </keys>
           <instance></instance>
         </model>
       </retrieve-problem-request>
     </parameters>
   </request>
 </hp-service-manager-request>

The following figure describes an adapter response for the Find Problem operation.

Sample adapter response for the Find Problem operation


<hp-service-manager-response>
 <metadata>
   <count>1</count>
 </metadata>
 <responses>
   <response>
     <metadata>
       <count>1</count>
     </metadata>
     <item>
       <metadata>
         <status>success</status>
       </metadata>
       <parameters>
         <model>
           <keys>
             <id>
               <value>PM10034</value>
               <type>String</type>
             </id>
           </keys>
           <instance>
             <id>
               <value>PM10034</value>
               <type>String</type>
             </id>
             <category>
               <value>BPPM</value>
               <type>String</type>
             </category>
             <assignment>
               <value>Field Support (Europe)</value>
               <type>String</type>
             </assignment>
             <status>
               <value>Closed</value>
               <type>String</type>
             </status>
             <brief-description>
               <value>test-title</value>
               <type>String</type>
             </brief-description>
             <description>
               <type>Array</type>
               <description>
                 <element>
                   <value>test-desc</value>
                   <type>String</type>
                 </element>
               </description>
             </description>
             <open-time>
               <value>2010.01.29 15:28:18</value>
               <type>DateTime</type>
             </open-time>
             <priority-code>
               <value>3</value>
               <type>String</type>
             </priority-code>
             <severity>
               <value>3</value>
               <type>String</type>
             </severity>
             <subcategory>
               <value>hardware</value>
               <type>String</type>
             </subcategory>
             <product-type>
               <value>hardware failure</value>
               <type>String</type>
             </product-type>
             <problem-type>
               <value>problem</value>
               <type>String</type>
             </problem-type>
             <incident-category>
               <value>problem</value>
               <type>String</type>
        </incident-category>
             <initial-impact>
               <value>4</value>
               <type>String</type>
             </initial-impact>
             <affected-item>
               <value>Intranet / Internet (Europe)</value>
               <type>String</type>
             </affected-item>
             <uniquequery>id="PM10034"</uniquequery>
             <recordid>PM10034 - BPPM - Closed - test-title</recordid>
           </instance>
         </model>
         <status>SUCCESS</status>
         <message>Success</message>
         <schema-revision-date>2010.02.02 00:00:00</schema-revision-date>
         <schema-revision-level>2</schema-revision-level>
         <return-code>0</return-code>
       </parameters>
     </item>
   </response>
 </responses>
</hp-service-manager-response> 

 

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