History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: QB-3111
Type: Improvement Improvement
Status: Closed Closed
Resolution: Fixed
Priority: Major Major
Assignee: Robin Shen
Reporter: Pawel Xj
Votes: 2
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
QuickBuild

get list of aqents/servers via REST API

Created: 03/Jan/18 09:28 AM   Updated: 13/Jan/18 01:23 AM
Component/s: None
Affects Version/s: 6.1.2
Fix Version/s: None

Original Estimate: Unknown Remaining Estimate: Unknown Time Spent: Unknown


 Description  « Hide
Le't say I've got xml like below ( the interesting part ).
I want to know which aqents/servers are connected to this resource. Exactly like in grid, but using API.

<com.pmease.quickbuild.model.Resource>
<id>17</id>
<name>Linux</name>
<providers>
<com.pmease.quickbuild.resource.ResourceProvider>
<nodeSelection class="com.pmease.quickbuild.resource.nodeselection.HashAttributeValueSelection">
<attribute>Project</attribute>
<operator>equals_ignore_case</operator>
<value>Linux</value>
</nodeSelection>
<resourceCount>1</resourceCount>
</com.pmease.quickbuild.resource.ResourceProvider>
</providers>
</com.pmease.quickbuild.model.Resource>

 All   Comments   Work Log   Change History      Sort Order:
Robin Shen [13/Jan/18 01:23 AM]
This is already possible via resource api. For details, please check section "get total resource count across nodes" and "get available resource count across nodes" here:
https://wiki.pmease.com/display/QB70/Interact+with+Resources