Close Problem operation


The Close Problem operation closes a problem record.

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

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

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

Sample adapter request for the Close Problem operation


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

The following figure displays an adapter response for the Close Problem operation.

Sample adapter response for the Close Problem operation


<hp-service-manager-response>
 <metadata>
   <count>1</count>
 </metadata>
 <responses>
   <response>
     <metadata>
       <count>1</count>
     </metadata>
     <item>
       <metadata>
         <status>error</status>
         <error>No (more) records found...</error>
       </metadata>
       <parameters>
         <model>
           <keys>
             <id>
               <value>PM-10037</value>
               <type>String</type>
             </id>
           </keys>
           <instance>
             <id>
               <value>PM-10037</value>
               <type>String</type>
             </id>
             <uniquequery>id="PM-10037"</uniquequery>
             <recordid>PM-10037 -  -  - </recordid>
           </instance>
         </model>
         <status>FAILURE</status>
         <message>No (more) records found</message>
         <schema-revision-date>2010.02.02 00:00:00</schema-revision-date>
         <schema-revision-level>5</schema-revision-level>
         <return-code>9</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*