Information

This site will undergo a brief period of maintenance on Friday, 18 December at 12:30 AM Central/12:00 PM IST. During a 30 minute window, site availability may be intermittent.

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.

Create Computer operation for the HP Service Manager adapter


The Create Computer operation creates a computer 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 Create Computer operation

The following figure displays a sample adapter request for the Create Computer operation.

Sample adapter request for the Create Computer operation


 <hp-service-manager-request>
   <entity>configurationitem</entity>
   <entity-type>computer</entity-type>
   <request>
     <operation-name>create-computer</operation-name>
     <parameters>
       <create-configuration-request>
         <model>
           <keys>
             <logical-name>
               <value>Computer1</value>
               <type>String</type>
             </logical-name>
           </keys>
           <instance>
             <file-device>
               <type>Structure</type>
               <istatus>
                 <value>Received</value>
                 <type>String</type>
               </istatus>
               <vendor>
                 <value>Compaq</value>
                 <type>String</type>
               </vendor>
               <model>
                 <value>2011</value>
                 <type>String</type>
               </model>
               <serial-no>
                 <value>Sr no</value>
                 <type>String</type>
               </serial-no>
               <location>
                 <value>Asia</value>
                 <type>String</type>
               </location>
               <configuration-item-type>
                 <value>computer</value>
                 <type>String</type>
               </configuration-item-type>
               <id>
                 <value>CI10893</value>
                 <type>String</type>
               </id>
               <updated-by>
                 <value>falcon</value>
                 <type>String</type>
               </updated-by>
               <part-no>
                 <value>1007</value>
                 <type>String</type>
               </part-no>
               <version>
                 <value>V 1.1</value>
                 <type>String</type>
               </version>
               <subtype>
                 <value>Computer Desk</value>
                 <type>String</type>
               </subtype>
               <location-code>
                 <value>advantageasia</value>
                 <type>String</type>
               </location-code>
               <vendor-id>
                 <value>CPQ</value>
                 <type>String</type>
               </vendor-id>
               <floor>
                 <value>2</value>
                 <type>String</type>
               </floor>
               <room>
                 <value>Delta</value>
                 <type>String</type>
               </room>
               <problem-priority>
                 <value>1</value>
                 <type>String</type>
               </problem-priority>
               <assignment>
                 <value>Application</value>
                 <type>String</type>
               </assignment>
               <title>
                 <value>Title of the Furnishing</value>
                 <type>String</type>
               </title>
               <environment>
                 <value>Development</value>
                 <type>String</type>
               </environment>
               <owner>
                 <value>D-0001</value>
                 <type>String</type>
               </owner>
               <default-impact>
                 <value>1</value>
                 <type>Decimal</type>
               </default-impact>
             </file-device>
             <sysmodtime>
               <value>2010.02.03 11:48:32</value>
               <type>DateTime</type>
             </sysmodtime>
             <sysmodcount>
               <value>2</value>
               <type>Decimal</type>
             </sysmodcount>
             <sysmoduser>
               <value>falcon</value>
               <type>String</type>
             </sysmoduser>
             <file-computer>
               <type>Structure</type>
             </file-computer>
           </instance>
         </model>
       </create-configuration-request>
     </parameters>
   </request>
 </hp-service-manager-request>

The following figure displays an adapter response for the Create Computer operation.

Sample adapter response for the Create Computer 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>Computer1</value>
               <type>String</type>
             </logical-name>
           </keys>
           <instance>
             <file-device>
               <type>Structure</type>
               <vendor>
                 <value>Compaq</value>
                 <type>String</type>
               </vendor>
               <model>
                 <value>2011</value>
                 <type>String</type>
               </model>
               <serial-no>
                 <value>Sr no</value>
                 <type>String</type>
               </serial-no>
               <location>
                 <value>Asia</value>
                 <type>String</type>
               </location>
               <configuration-item-type>
                 <value>computer</value>
                 <type>String</type>
               </configuration-item-type>
               <id>
                 <value>CI10893</value>
                 <type>String</type>
               </id>
               <updated-by>
                 <value>falcon</value>
                 <type>String</type>
               </updated-by>
               <part-no>
                 <value>1007</value>
                 <type>String</type>
               </part-no>
               <istatus>
                 <value>Received</value>
                 <type>String</type>
               </istatus>
               <version>
                 <value>V 1.1</value>
                 <type>String</type>
               </version>
               <subtype>
                 <value>Computer Desk</value>
                 <type>String</type>
               </subtype>
               <location-code>
                 <value>advantageasia</value>
                 <type>String</type>
               </location-code>
               <vendor-id>
                 <value>CPQ</value>
                 <type>String</type>
               </vendor-id>
               <floor>
                 <value>2</value>
                 <type>String</type>
               </floor>
               <room>
                 <value>Delta</value>
                 <type>String</type>
               </room>
               <sysmodtime>
                 <value>2010.02.04 17:35:29</value>
                 <type>DateTime</type>
               </sysmodtime>
               <sysmodcount>
                 <value>0</value>
                 <type>Decimal</type>
               </sysmodcount>
               <sysmoduser>
                 <value>falcon</value>
                 <type>String</type>
               </sysmoduser>
               <problem-priority>
                 <value>1</value>
                 <type>String</type>
               </problem-priority>
               <assignment>
                 <value>Application</value>
                 <type>String</type>
               </assignment>
               <title>
                 <value>Title of the Furnishing</value>
                 <type>String</type>
               </title>
               <environment>
                 <value>Development</value>
                 <type>String</type>
               </environment>
               <owner>
                 <value>D-0001</value>
                 <type>String</type>
               </owner>
               <default-impact>
                 <value>1</value>
                 <type>Decimal</type>
               </default-impact>
             </file-device>
             <file-computer>
               <type>Structure</type>
               <sysmodtime>
                 <value>2010.02.04 17:35:30</value>
                 <type>DateTime</type>
               </sysmodtime>
               <sysmoduser>
                 <value>falcon</value>
                 <type>String</type>
               </sysmoduser>
               <sysmodcount>
                 <value>0</value>
                 <type>Decimal</type>
               </sysmodcount>
             </file-computer>
             <uniquequery>file.device,logical.name="Computer1"</uniquequery>
           </instance>
         </model>
         <messages>
           <element>
             <value>joincomputer record added.</value>
           </element>
         </messages>
         <status>SUCCESS</status>
         <message>Success</message>
         <schema-revision-date>2010.02.04 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*

(archive) BMC Atrium Orchestrator Content 20.13.01