Bug 966381

Summary: Allow to import servers from discovery queue via rest api
Product: [Other] RHQ Project Reporter: Heiko W. Rupp <hrupp>
Component: RESTAssignee: Heiko W. Rupp <hrupp>
Status: CLOSED CURRENTRELEASE QA Contact: Mike Foley <mfoley>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 4.7   
Target Milestone: ---   
Target Release: RHQ 4.8   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-09-11 09:53:58 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Heiko W. Rupp 2013-05-23 08:20:45 UTC
The rest api already allows to find resources in inventory queue (see below)

It should be possible to take them into inventory via PUT call on their URI with a status changed to COMMITTED


$ curl -i -u rhqadmin:rhqadmin http://localhost:7080/rest/resource.json\?category=server\&status=new
HTTP/1.1 200 OK
Server: Apache-Coyote/1.1
Pragma: No-cache
Cache-Control: no-cache
Expires: Thu, 01 Jan 1970 01:00:00 CET
Link: http://localhost:7080/rest/resource.json?category=server&status=new&page=0; rel='last'
Link: http://localhost:7080/rest/resource.json?category=server&status=new; rel='current'
X-collection-size: 2
Content-Type: application/json
Transfer-Encoding: chunked
Date: Thu, 23 May 2013 08:19:17 GMT

[{"resourceName":"snert","resourceId":10033,"typeName":"Samba Server","typeId":10630,"pluginName":"Samba","parentId":10031,"status":"NEW","links":[{"operationDefinitions":{"href":"http://localhost:7080/rest/

Comment 1 Heiko W. Rupp 2013-06-03 14:19:08 UTC
master 581a5b0

Comment 2 Heiko W. Rupp 2013-09-11 09:53:58 UTC
Bulk closing of old issues now that HRQ 4.9 is in front of the door.

If you think the issue has not been solved, then please open a new bug and mention this one in the description.