Bug 966381 - Allow to import servers from discovery queue via rest api
Summary: Allow to import servers from discovery queue via rest api
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: RHQ Project
Classification: Other
Component: REST
Version: 4.7
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
: RHQ 4.8
Assignee: Heiko W. Rupp
QA Contact: Mike Foley
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-05-23 08:20 UTC by Heiko W. Rupp
Modified: 2013-09-11 09:53 UTC (History)
0 users

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2013-09-11 09:53:58 UTC
Embargoed:


Attachments (Terms of Use)

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.


Note You need to log in before you can comment on or make changes to this bug.