How to query RQM to get physical vs virtual lab resources
Hello
I'm working with RQM 2.0 (latest ifix level) I need to be able to programmatically (not from WUI) query RQM to list the lab resources it knows and be able to differentiate between physical and virtual resources - what should be the right way to get this data? thanks in advance *piero |
2 answers
For who is interested in - this is the answer to my question:
- There is no way to differentiate among "virtual" or "physical" lab resources when using the REST API (the field "type" for the lab resource is always set to "null" regardless the type of the resource) - The only way to retrieve this info is to query directly the db - After a lot of digging in the rqm log has been necessary, but here it is (it is for a Derby installation . could be you need to adapt it for DB2 schema: SELECT * FROM NAME could be one of the following : "VirtualImage" or "PhysicalMachine" or "VirtualMachine" enjoy *piero |
NOTE: The RQM product team does not support nor advocate direct DB access against RQM data. The RQM Reportable REST API (https://jazz.net/wiki/bin/view/Main/RqmApi#Resources_and_their_Supported_Op) or OSLC QM V2 (http://open-services.net/bin/view/Main/QmSpecificationV2) in RQM 3.0.1+ are the encouraged methods for data interchange with the server.
I would suggest opening a work item (https://jazz.net/jazz02/web/projects/Rational%20Quality%20Manager#action=com.ibm.team.workitem.newWorkItem) to add this property to the labresource resource. |
Your answer
Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.