Description of problem: Request new API. listActiveSystemsinGroup -- Parameters string sessionKey int "sgid" - server group id -- Returns Array Struct int "id" - ServerID string "Name" - ServerName string "last_checkin" - last time server successfully checked in with the server
The following API was added in Spacewalk 0.1: systemgroup.listActiveSystemsInGroup -- Parameters string sessionKey string systemGroupName -- Returns array int server_id Unfortunately, we do not currently have a way to retrieve 'last_checkin' information for an individual system; therefore, additional modifications will be needed to complete the enhancement. May add the last_checkin info to the system.getDetails() or to the new method above.
Rather than add name/last_checkin to the listActiveSystemsInGroup, added the following API that can be used to retrieve that additional information, if desired: Description: Get system name and last check in information for the given system ID. Parameters: * string sessionKey * string serverId Returns: * struct - system o int "id" o string "name" o dateTime.iso8601 "last_checkin" - Last time server successfully checked in
commit 9b1e098e7b21bc50634704b62833e388da783e25 Author: Brad Buckingham <bbuckingham> Date: Wed Oct 15 14:36:35 2008 -0400 466023, 466028 - added system.getName api
listActiveSystemsInGroup, listInactiveSystemsInGroup, and getName all appear operational in spacewalk 0.3. Verified.
Spacewalk has been released for some time.