Find Problem operation
The Find Problem operation retrieves a problem 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 Find Problem 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 a unique record |
Yes |
|
Specifies the ID of the problem record |
No |
|
Specifies the product type of the problem record |
No |
|
Specifies the subcategory of the problem record |
No |
|
Specifies the type of the problem record |
No |
|
Specifies the initial impact of the problem record
|
No |
|
Specifies the severity of the problem record
|
No |
|
Specifies a description of the problem record; is an array-type element |
No |
|
Specifies the assignment of the problem record |
No |
|
Specifies the category of the problem record |
No |
|
Specifies the status of the problem record
|
No |
|
Specifies a brief description of the problem record |
No |
|
Specifies the root cause for the problem record; is an array-type element |
No |
|
Specifies the update status of the problem record; is an array-type element |
No |
|
Specifies whether the change record is in an open state
|
No |
|
Specifies the time when the problem record was opened |
No |
|
Specifies the person who opened the problem record |
No |
|
Specifies the person who last updated the problem record |
No |
|
Specifies the time when the record was updated |
No |
|
Specifies the person who closed the problem record |
No |
|
Specifies the date and time when the record was closed |
No |
|
Specifies the person who reopened the problem record |
No |
|
Specifies the time when the record was reopened |
No |
|
Specifies the priority code of the problem record |
No |
|
Specifies the system time when the record was last modified |
No |
|
Specifies the number of times the record was modified |
No |
|
Specifies the user name that last modified the record |
No |
|
Specifies the name of the person to whom the problem record is assigned |
No |
|
Specifies the solution for the problem; is an array-type element |
No |
The following figure displays a sample adapter request for the Find Problem operation.
Sample adapter request for the Find Problem operation
<hp-service-manager-request>
<entity>problem</entity>
<entity-type />
<request>
<operation-name>retrieve-problem</operation-name>
<parameters>
<retrieve-problem-request>
<model>
<keys>
<id>
<value>PM10034</value>
<type>String</type>
</id>
</keys>
<instance></instance>
</model>
</retrieve-problem-request>
</parameters>
</request>
</hp-service-manager-request>
The following figure describes an adapter response for the Find Problem operation.
Sample adapter response for the Find Problem 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>
<id>
<value>PM10034</value>
<type>String</type>
</id>
</keys>
<instance>
<id>
<value>PM10034</value>
<type>String</type>
</id>
<category>
<value>BPPM</value>
<type>String</type>
</category>
<assignment>
<value>Field Support (Europe)</value>
<type>String</type>
</assignment>
<status>
<value>Closed</value>
<type>String</type>
</status>
<brief-description>
<value>test-title</value>
<type>String</type>
</brief-description>
<description>
<type>Array</type>
<description>
<element>
<value>test-desc</value>
<type>String</type>
</element>
</description>
</description>
<open-time>
<value>2010.01.29 15:28:18</value>
<type>DateTime</type>
</open-time>
<priority-code>
<value>3</value>
<type>String</type>
</priority-code>
<severity>
<value>3</value>
<type>String</type>
</severity>
<subcategory>
<value>hardware</value>
<type>String</type>
</subcategory>
<product-type>
<value>hardware failure</value>
<type>String</type>
</product-type>
<problem-type>
<value>problem</value>
<type>String</type>
</problem-type>
<incident-category>
<value>problem</value>
<type>String</type>
</incident-category>
<initial-impact>
<value>4</value>
<type>String</type>
</initial-impact>
<affected-item>
<value>Intranet / Internet (Europe)</value>
<type>String</type>
</affected-item>
<uniquequery>id="PM10034"</uniquequery>
<recordid>PM10034 - BPPM - Closed - test-title</recordid>
</instance>
</model>
<status>SUCCESS</status>
<message>Success</message>
<schema-revision-date>2010.02.02 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>
Comments
Log in or register to comment.