Information
Unsupported content This version of the documentation is no longer supported. However, the documentation is available for your convenience. You will not be able to leave comments.

Delete Model operation


The Delete Model operation deletes the details of a model.

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 is assumed to be a string.

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

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

Sample adapter request for the Delete Model operation


 <hp-service-manager-request>
   <entity>configurationitem</entity>
   <entity-type>model</entity-type>
   <request>
     <operation-name>delete-model</operation-name>
     <parameters>
       <delete-model-request>
         <model>
           <keys>
             <part-number>
               <value>421</value>
               <type>String</type>
             </part-number>
           </keys>
           <instance>
           </instance>
         </model>
       </delete-model-request>
     </parameters>
   </request>
</hp-service-manager-request>

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

Sample adapter response for the Delete Model 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>
             <part-number>
               <value>421</value>
               <type>String</type>
             </part-number>
           </keys>
           <instance>
             <part-number>
               <value>421</value>
               <type>String</type>
             </part-number>
             <manufacturer>
               <value>Internal Access</value>
               <type>String</type>
             </manufacturer>
             <model>
               <value>Work Order</value>
               <type>String</type>
             </model>
             <category>
               <value>New Lines</value>
               <type>String</type>
             </category>
             <description>
               <type>Array</type>
               <description>
                 <element>
                   <value>Setup Telephone Equipment</value>
                   <type>String</type>
                 </element>
               </description>
             </description>
             <brief-description>
               <value>Telephone Equipment Setup</value>
               <type>String</type>
             </brief-description>
             <installed-quantity>
               <value>0</value>
               <type>Decimal</type>
             </installed-quantity>
             <quantity-available>
               <value>0</value>
               <type>Decimal</type>
             </quantity-available>
             <quantity-on-order>
               <value>0</value>
               <type>Decimal</type>
             </quantity-on-order>
             <min-order-amount>
               <value>0</value>
               <type>Decimal</type>
             </min-order-amount>
             <max-order-amount>
               <value>0</value>
               <type>Decimal</type>
             </max-order-amount>
             <order-lot-size>
               <value>0</value>
               <type>Decimal</type>
             </order-lot-size>
             <quantity-recieved>
               <value>0</value>
               <type>Decimal</type>
             </quantity-recieved>
             <quantity-reserved>
               <value>0</value>
               <type>Decimal</type>
             </quantity-reserved>
             <quantity-on-request>
               <value>0</value>
               <type>Decimal</type>
             </quantity-on-request>
             <quantity-unavailable>
               <value>0</value>
               <type>Decimal</type>
             </quantity-unavailable>
             <quantity-back-ordered>
               <value>0</value>
               <type>Decimal</type>
             </quantity-back-ordered>
             <cost>
               <value>24</value>
               <type>Decimal</type>
             </cost>
             <uniquequery>part.no="421"</uniquequery>
             <recordid>421</recordid>
           </instance>
         </model>
         <messages>
           <element>
             <value>All modelvendor records for Part No 421 have been deleted.</value>
           </element>
           <element>
             <value>Model record deleted.</value>
           </element>
         </messages>
         <status>SUCCESS</status>
         <message>Success</message>
         <schema-revision-date>2007.04.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*

(archive) BMC Atrium Orchestrator Content 20.13.01