Delete Mainframe operation
The Delete Mainframe operation deletes the details of a mainframe item.
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 Mainframe operation
Element |
Definition |
Required |
---|---|---|
|
Specifies the name of the operation: |
Yes |
|
Contains the other elements in the request |
Yes |
|
Contains elements that uniquely identify a record |
Yes |
|
Specifies the unique name for identifying a mainframe item |
Yes |
|
Specifies a unique mainframe item record |
Yes |
|
Specifies the attributes for a mainframe item |
Yes |
|
Specifies the status of the mainframe item
|
No |
|
Specifies the assignment group for the mainframe item |
No |
|
Specifies the name of the vendor for the mainframe item |
No |
|
Specifies the serial number of the mainframe item |
No |
|
Specifies the location of the mainframe item |
No |
|
Specifies the type of configuration item |
No |
|
Specifies the part number related to the mainframe item |
No |
|
Specifies the version of the mainframe item |
No |
|
Specifies the model of the mainframe item |
No |
|
Specifies the name of the person who updated the record |
No |
|
Specifies the subtype for a selected type for a configuration item
|
No |
|
Specifies the building for the mainframe item |
No |
|
Specifies the floor related to the location |
No |
|
Specifies information about the room |
No |
|
Specifies whether the system is down
|
No |
|
Specifies the asset for the record |
No |
|
Specifies the name of the company |
No |
|
Specifies the system time when the record was last modified |
No |
|
Specifies the user name that last modified the record |
No |
|
Specifies the number of times the record was modified |
No |
|
Specifies the environment of the mainframe item
|
No |
|
Specifies the department that owns the mainframe item |
No |
|
Specifies the default impact of the mainframe item
|
No |
|
Specifies the title for the mainframe item |
No |
|
Specifies the priority of the mainframe item
|
No |
|
Specifies the ID of the computer item |
No |
|
Contains child elements for describing the mainframe item; is a structure-type element |
Yes |
The following figure displays a sample adapter request for the Delete Mainframe operation.
Sample adapter request for the Delete Mainframe operation
<hp-service-manager-request>
<entity>configurationitem</entity>
<entity-type>mainframe</entity-type>
<request>
<operation-name>delete-main-frame</operation-name>
<parameters>
<delete-main-frame-request>
<model>
<keys>
<logical-name>
<value>MF-001</value>
<type>String</type>
</logical-name>
</keys>
<instance>
<file-device>
<type>Structure</type>
<vendor>
<value>Casio</value>
<type>String</type>
</vendor>
<serial-no>
<value>Sr No 1234</value>
<type>String</type>
</serial-no>
<location>
<value>Asia</value>
<type>String</type>
</location>
<configuration-item-type>
<value>mainframe</value>
<type>String</type>
</configuration-item-type>
<id>
<value>CI10916</value>
<type>String</type>
</id>
<updated-by>
<value>falcon</value>
<type>String</type>
</updated-by>
<part-no>
<value>PartNumber 1234</value>
<type>String</type>
</part-no>
<istatus>
<value>In Stock</value>
<type>String</type>
</istatus>
<version>
<value>Version 1.0</value>
<type>String</type>
</version>
<subtype>
<value>Controller</value>
<type>String</type>
</subtype>
<location-code>
<value>advantageasia</value>
<type>String</type>
</location-code>
<vendor-id>
<value>CASIO</value>
<type>String</type>
</vendor-id>
<building>
<value>Building Del4</value>
<type>String</type>
</building>
<floor>
<value>Floor LG</value>
<type>String</type>
</floor>
<room>
<value>Room Beta</value>
<type>String</type>
</room>
<sysmodcount>
<value>0</value>
<type>Decimal</type>
</sysmodcount>
<sysmoduser>
<value>falcon</value>
<type>String</type>
</sysmoduser>
<assignment>
<value>Application</value>
<type>String</type>
</assignment>
<title>
<value>Title</value>
<type>String</type>
</title>
</file-device>
<file-mainframe>
</file-mainframe>
</instance>
</model>
</delete-main-frame-request>
</parameters>
</request>
</hp-service-manager-request>
The following figure displays an adapter response for the Delete Mainframe operation.
Sample adapter response for Delete Mainframe 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>MF-001</value>
<type>String</type>
</logical-name>
</keys>
<instance>
<file-device>
<type>Structure</type>
<vendor>
<value>Casio</value>
<type>String</type>
</vendor>
<serial-no>
<value>Sr No 1234</value>
<type>String</type>
</serial-no>
<location>
<value>Asia</value>
<type>String</type>
</location>
<configuration-item-type>
<value>mainframe</value>
<type>String</type>
</configuration-item-type>
<id>
<value>CI10916</value>
<type>String</type>
</id>
<updated-by>
<value>falcon</value>
<type>String</type>
</updated-by>
<part-no>
<value>PartNumber 1234</value>
<type>String</type>
</part-no>
<istatus>
<value>In Stock</value>
<type>String</type>
</istatus>
<version>
<value>Version 1.0</value>
<type>String</type>
</version>
<subtype>
<value>Controller</value>
<type>String</type>
</subtype>
<location-code>
<value>advantageasia</value>
<type>String</type>
</location-code>
<vendor-id>
<value>CASIO</value>
<type>String</type>
</vendor-id>
<building>
<value>Building Del4</value>
<type>String</type>
</building>
<floor>
<value>Floor LG</value>
<type>String</type>
</floor>
<room>
<value>Room Beta</value>
<type>String</type>
</room>
<sysmodtime>
<value>2010.02.19 12:14:37</value>
<type>DateTime</type>
</sysmodtime>
<sysmodcount>
<value>0</value>
<type>Decimal</type>
</sysmodcount>
<sysmoduser>
<value>falcon</value>
<type>String</type>
</sysmoduser>
<assignment>
<value>Application</value>
<type>String</type>
</assignment>
<title>
<value>Title</value>
<type>String</type>
</title>
</file-device>
<file-mainframe>
<type>Structure</type>
<sysmodtime>
<value>2010.02.19 12:14:37</value>
<type>DateTime</type>
</sysmodtime>
<sysmoduser>
<value>falcon</value>
<type>String</type>
</sysmoduser>
<sysmodcount>
<value>0</value>
<type>Decimal</type>
</sysmodcount>
</file-mainframe>
<uniquequery>file.device,logical.name="MF-001"</uniquequery>
</instance>
</model>
<messages>
<element>
<value>joinmainframe 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>
Comments
Log in or register to comment.