Bug 141333

Summary: script access to RedHat Network operations
Product: Red Hat Satellite 5 Reporter: Thomas Sippel - Dau <vulture>
Component: OtherAssignee: Joe deBlaquiere <jadb>
Status: CLOSED CURRENTRELEASE QA Contact: Red Hat Satellite QA List <satqe-list>
Severity: medium Docs Contact:
Priority: medium    
Version: unspecifiedCC: rhn-bugs
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2004-11-30 15:58:36 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Thomas Sippel - Dau 2004-11-30 15:21:10 UTC
Hello,

Is there a scriptable access the operations we can do to manipulate
machine attributes through the RedHat Network Web site. Something
along the lines of rhnreg_ks, for example:

   rhnedit --machinename=fred.ic.ac.uk --addtochannel=edhat-extras \
           --activationkey=............

In particular for the following operations:

   o  delete a machine profile

   o  delete all profiles for that name (when machines are 
      re-installed, they acquire a new system-id. The old one 
      lives on a and RHN zombie)

   o  adding a machine to a channel

   o  adding a channel to an activationkey

   o  deleting an activation key

Preferably those operations would run if only the activation
key was quoted that subscribed the machine (apart from the key
deletion, obviously).

                                Thomas

*   email: vulture.uk
*   voice: +44 20 7594 6912     fax: +44 20 7594 6958
*   snail: ICSTM, Computing Services, Kensington SW7 2BX, Great Britain

Comment 1 Joe deBlaquiere 2004-11-30 15:58:36 UTC
There is an existing API available to script actions. You can find the
documentation on that API at:

https://rhn.redhat.com/help/reference/ap-rhn-api-access.html

There is a list of available APIs at:

https://rhn.redhat.com/rpc/api/

If you have specific APIs which are not included in the current set,
please submit a feature request for each one individually and we will
prioritize these according to customer demand and implement as
engineering time permits.