Personal tools

rPath Appliance Platform Agent:XML-RPC Exposed Methods

From rPath Wiki

Jump to: navigation, search
rPath Appliance Platform --> Agent --> XML-RPC --> Exposed Methods

Contents

Use this page to reference XML-RPC methods provided by rPath Appliance Platform Agent (rAPA) version 3.0. Each item listed links to the appropriate location in the rAPA 3.0 API documentation. Upon future rAPA releases, this page will link to version-specific rAPA documentation so that each supported version will continue to have a dedicated resource.

Previous Documentation Available:


How to Locate Exposed Methods in Version 3.0

Throughout the rAPA 3.0 API documentation, exposed methods can be identified by locating decorators that indicate the method is available using XML-RPC. Such decorators have the following features:

  1. Start with @raa.web.expose
  2. Include allow_xmlrpc=True as an argument to @raa.web.expose.
@raa.web.expose(allow_xmlrpc= True, allow_json= False)

If the method indicates LocalhostOnly()as an argument to @raa.web.require, it is not available for public XML-RPC; the only thing that should call those methods is the service backend on the same system as rAPA.

@raa.web.require(raa.authorization.LocalhostOnly())

On the rAPA 3.0 API documentation main page, there is a series of modules listed in the Table of Contents frame in the upper left browser frame. Exposed methods can be located in classes under the following modules:

raa.controllers
Select this module, then, in the pane below the Table of Contents, select Root under Classes.
raaplugins.<plugin>.web.<plugin>
In the module name, "plugin" is the name of one of the rAPA standard plugins. In the case of configure plugins, the last part is the name of that portion of the configuration plugin (such as network, which would be in raaplugins.configure.web.network).
Select this module, then, in pane below the Table of Contents, select the plugin name under Classes. This represents the web component for that plugin, as described in rAPA Plugin Structure.

How to Locate Exposed Methods in Version 2.1

Throughout the rAPA 2.1 API documentation, exposed methods can be identified by locating decorators that indicate the method is available using XML-RPC. Such decorators have the following features:

  1. Start with @raa.web.expose
  2. Include allow_xmlrpc=True as an argument to @raa.web.expose.

If the method indicates localhost_only()as an argument to @raa.web.require, it is not available for public XML-RPC; the only thing that should call those methods is the service backend on the same system as rAPA.

The method should include information about how it should be called. Note that XML-RPC uses positional parameters, requiring an XML-RPC call to pass arguments in the same order as they are positioned in the method. This is in contrast to Python, in which rAPA is written, which uses named parameters and does not require a specific order for arguments.


Classes with XML-RPC Exposed Methods

The following is a list of classes in the rAPA API where XML-RPC exposed methods can be found. Each class is linked to the its page where exposed methods can be found.

Class rAPA Features
raa.controllers.Root 2.1
raa.controllers.Root 3.0
Variety of methods to query and control rAPA tasks, such as getting the status of a running task or to list all scheduled jobs
raaplugins.backup.web.backup.Backup 2.1
raaplugins.backup.web.backup.Backup 3.0
rAPA Backup plugin functions: configure backups and perform backup and restore operations
raaplugins.configure.web.conaryconf.ConaryConf 2.1
not included in 3.0
rAPA Configure Conary plugin functions: configure Conary, primarily the installLabelPath value in Conary configuration
raaplugins.collectiontool.web.collectiontool.CollectionTool 2.1
raaplugins.collectiontool.web.collectiontool.CollectionTool 3.0
rAPA Collection Tool plugin allows a rAPA user to run an operation that gathers important information from the appliance into a compressed archive file which, in turn, can be downloaded from the appliance
raaplugins.configure.web.entitlements.Entitlements 2.1
raaplugins.configure.web.entitlements.Entitlements 3.0
rAPA Entitlements plugin functions: upload an entitlement for the appliance, used to authenticate the appliance with the upstream repository during system updates
not included in 2.1
raaplugins.rollbacks.web.rollbacks.Rollbacks 3.0
rAPA Rollbacks plugin provides the View and Apply Rollbacks page in the rAPA web interface. The Rollbacks plugin allows a rAPA user to roll back system updates.
raaplugins.configure.web.network.Network 2.1
raaplugins.configure.web.network.Network 3.0
rAPA Configure Network plugin functions: configure networking for the appliance, including the hostname, DHCP, and network interfaces
raaplugins.configure.web.notify.Notify 2.1
raaplugins.configure.web.notify.Notify 3.0
rAPA Configure Notification plugin functions: configure what email addresses should receive alert notifications from the appliance
not included in 2.1
raaplugins.changepassword.web.changepassword.ChangePassword 3.0
rAPA Change Password plugin provides a way for Appliance Agent users to manage their passwords for accessing the rAPA interface.
raaplugins.configure.web.proxy.Proxy 2.1
raaplugins.configure.web.proxy.Proxy 3.0
rAPA Configure Proxy plugin functions: configure the HTTP and HTTPS proxy settings required for the appliance
raaplugins.configure.web.rootpw.RootPw 2.1
raaplugins.configure.web.rootpw.RootPw 3.0
rAPA Configure Root Password plugin functions: set or reset the root user password for the underlying Linux system
raaplugins.configure.web.settimezone.SetTimeZone 2.1
raaplugins.configure.web.settimezone.SetTimeZone 3.0
rAPA Configure Time Zone and Time plugin functions: set the time zone and time of the appliance, including indicating NTP servers
raaplugins.configure.web.smtpconf.SmtpConf 2.1
raaplugins.configure.web.smtpconf.SmtpConf 3.0
rAPA Configure SMTP plugin functions: set the smtp mail relay and the email address to use as the originating address
raaplugins.configure.web.sslcert.SSLCert 2.1
raaplugins.configure.web.sslcert.SSLCert 3.0
rAPA Upload SSL Certificate plugin functions: upload the SSL certificate for the appliance
raaplugins.diskusage.web.diskusage.DiskUsage 2.1
not included in 3.0
rAPA Disk Usage plugin functions: check the disk usage on the appliance, including used and available space
raaplugins.logs.web.logs.Logs 2.1
raaplugins.logs.web.logs.Logs 3.0
rAPA Appliance Logs plugin functions: view system and service logs on the appliance
raaplugins.reboot.web.reboot.Reboot 2.1
raaplugins.reboot.web.reboot.Reboot 3.0
rAPA Reboot plugin functions: schedule a one-time reboot of the appliance
raaplugins.services.web.services.Services 2.1
raaplugins.services.web.services.Services 3.0
rAPA Services plugin functions: manage services on the appliance, including setting services to start on boot and restarting services that are running
raaplugins.updatetroves.web.updatetroves.UpdateTroves 2.1
raaplugins.updatetroves.web.updatetroves.UpdateTroves 3.0
rAPA System Updates plugin functions: schedule update checks and perform an appliance update automatically or manually when an update is available
raaplugins.usermanagement.web.usermanagement.UserInterface 2.1
raaplugins.usermanagement.web.usermanagement.UserInterface 3.0
rAPA User Management plugin functions: manage rAPA users, user groups, and the roles assigned to user groups
not included in 2.1
raaplugins.configure.web.entitlements.Entitlements 3.0
rAPA Entitlement plugin allows a rAPA user to add an entitlement for the appliance to provide access to upstream repositories from which the appliance obtains updates.