Delete Office Electronic operation


The Delete Office Electronic operation deletes the details of an office electronic device.

Delete wrappers can delete only a single record. If information provided in the request refers to zero or more than one record, then no record is deleted. The entry to be deleted is first located by executing a logical AND operation using the elements provided in request. The located entry is then deleted.

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

 Elements for the <items> XML element and adapter request for the Delete Office Electronic operation

The following figure displays a sample adapter request for the Delete Office Electronic operation.

Sample adapter request for the Delete Office Electronic operation


 <hp-service-manager-request>
   <entity>configurationitem</entity>
   <entity-type>office-electronic</entity-type>
   <request>
     <operation-name>delete-office-electronic</operation-name>
     <parameters>
       <delete-office-electronic-request>
         <model>
           <keys>
             <logical-name>
               <value>OffElec-001</value>
               <type>String</type>
             </logical-name>
           </keys>
           <instance>
             <file-device>
               <type>Structure</type>
               <logical-name>
                 <value>OffElec-001</value>
                 <type>String</type>
               </logical-name>
               <vendor>
                 <value>Hewlett-Packard</value>
                 <type>String</type>
               </vendor>
               <serial-no>
                 <value>Serial No 12</value>
                 <type>String</type>
               </serial-no>
               <location>
                 <value>Australia</value>
                 <type>String</type>
               </location>
               <configuration-item-type>
                 <value>officeelectronics</value>
                 <type>String</type>
               </configuration-item-type>
               <id>
                 <value>CI10921</value>
                 <type>String</type>
               </id>
               <updated-by>
                 <value>falcon</value>
                 <type>String</type>
               </updated-by>
               <part-no>
                 <value>Prt No 11</value>
                 <type>String</type>
               </part-no>
               <istatus>
                 <value>In use</value>
                 <type>String</type>
               </istatus>
               <version>
                 <value>Ver 12</value>
                 <type>String</type>
               </version>
               <subtype>
                 <value>Copy Machine</value>
                 <type>String</type>
               </subtype>
               <location-code>
                 <value>advantageaustralia</value>
                 <type>String</type>
               </location-code>
               <building>
                 <value>Building DEL4</value>
                 <type>String</type>
               </building>
               <floor>
                 <value>LG</value>
                 <type>String</type>
               </floor>
               <room>
                 <value>BETA</value>
                 <type>String</type>
               </room>
               <sysmodtime>
                 <value>2010.02.17 18:52:52</value>
                 <type>DateTime</type>
               </sysmodtime>
               <sysmodcount>
                 <value>0</value>
                 <type>Decimal</type>
               </sysmodcount>
               <sysmoduser>
                 <value>falcon</value>
                 <type>String</type>
               </sysmoduser>
               <assignment>
                 <value>Applications</value>
                 <type>String</type>
               </assignment>
               <title>
                 <value>Title for Office Elec</value>
                 <type>String</type>
               </title>
               <environment>
                 <value>Development</value>
                 <type>String</type>
               </environment>
               <owner>
                 <value>Test_Owner</value>
                 <type>String</type>
               </owner>
             </file-device>
               <file-officeelectronics>
               <type>Structure</type>
               <sysmodtime>
                 <value>2010.02.17 18:52:52</value>
                 <type>DateTime</type>
               </sysmodtime>
               <sysmoduser>
                 <value>falcon</value>
                 <type>String</type>
               </sysmoduser>
               <sysmodcount>
                 <value>0</value>
                 <type>Decimal</type>
               </sysmodcount>
             </file-officeelectronics>
             <uniquequery>file.device,logical.name="OffElec-001"</uniquequery>
           </instance>
         </model>
       </delete-office-electronic-request>
     </parameters>
   </request>
 </hp-service-manager-request>

The following figure displays an adapter response for the Delete Office Electronic operation.

Sample adapter response for the Delete Office Electronic 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>
             <logical-name>
               <value>OffElec-001</value>
               <type>String</type>
             </logical-name>
           </keys>
           <instance>
             <file-device>
               <type>Structure</type>
               <logical-name>
                 <value>OffElec-001</value>
                 <type>String</type>
               </logical-name>
               <vendor>
                 <value>Hewlett-Packard</value>
                 <type>String</type>
               </vendor>
               <serial-no>
                 <value>Serial No 12</value>
                 <type>String</type>
               </serial-no>
               <location>
                 <value>Australia</value>
                 <type>String</type>
               </location>
               <configuration-item-type>
                 <value>officeelectronics</value>
                 <type>String</type>
               </configuration-item-type>
               <id>
                 <value>CI10921</value>
                 <type>String</type>
               </id>
               <updated-by>
                 <value>falcon</value>
                 <type>String</type>
               </updated-by>
               <part-no>
                 <value>Prt No 11</value>
                 <type>String</type>
               </part-no>
               <istatus>
                 <value>In use</value>
                 <type>String</type>
               </istatus>
               <version>
                 <value>Ver 12</value>
                 <type>String</type>
               </version>
               <subtype>
                 <value>Copy Machine</value>
                 <type>String</type>
               </subtype>
               <location-code>
                 <value>advantageaustralia</value>
                 <type>String</type>
               </location-code>
               <building>
                 <value>Building DEL4</value>
                 <type>String</type>
               </building>
               <floor>
                 <value>LG</value>
                 <type>String</type>
               </floor>
               <room>
                 <value>BETA</value>
                 <type>String</type>
               </room>
               <sysmodtime>
                 <value>2010.02.17 18:52:52</value>
                 <type>DateTime</type>
               </sysmodtime>
               <sysmodcount>
                 <value>0</value>
                 <type>Decimal</type>
               </sysmodcount>
               <sysmoduser>
                 <value>falcon</value>
                 <type>String</type>
               </sysmoduser>
               <assignment>
                 <value>Applications</value>
                 <type>String</type>
               </assignment>
               <title>
                 <value>Title for Office Elec</value>
                 <type>String</type>
               </title>
               <environment>
                 <value>Development</value>
                 <type>String</type>
               </environment>
               <owner>
                 <value>Test_Owner</value>
                 <type>String</type>
               </owner>
             </file-device>
             <file-officeelectronics>
               <type>Structure</type>
               <sysmodtime>
                 <value>2010.02.17 18:52:52</value>
                 <type>DateTime</type>
               </sysmodtime>
               <sysmoduser>
                 <value>falcon</value>
                 <type>String</type>
               </sysmoduser>
               <sysmodcount>
                 <value>0</value>
                 <type>Decimal</type>
               </sysmodcount>
             </file-officeelectronics>
             <uniquequery>file.device,logical.name="OffElec-001"</uniquequery>
           </instance>
         </model>
         <messages>
           <element>
             <value>joinofficeelectronics record deleted.</value>
           </element>
         </messages>
         <status>SUCCESS</status>
         <message>Success</message>
         <schema-revision-date>2010.02.04 00:00:00</schema-revision-date>
         <schema-revision-level>0</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*