REST API administration

WebSphere® Application Server Liberty includes a RESTful management interface to manage your batch jobs. The basic operations that are associated with a batch job are to submit, stop, restart, and view status. You can perform these operations by using any HTTP REST client. Any data that is submitted as part of a request or returned as part of a response is JSON formatted.

Procedure

  1. Add the following features to your server.xml:
    <featureManager>
    	<feature>batch-1.0</feature>
    	<feature>batchManagement-1.0</feature>
    </featureManager>
  2. The batchManagement-1.0 feature automatically enables the SSL feature. The RESTful interface is only available by using secure SSL, so you must create an SSL certificate and users. Add the following to your server.xml.
    <keyStore id="defaultKeyStore" password="Liberty"/>
    			
    <basicRegistry id="basic" realm="ibm/api">
    	<user name="bob" password="bobpwd" />
    	<user name="jane" password="janepwd" />
    </basicRegistry>
    
    <administrator-role>
    	<user>bob</user>
    </administrator-role>
    Note: The default self-signed SSL certificate is only intended for development use and not for production.

Results

The RESTful interface is now configured for Liberty.


Icon that indicates the type of topic Task topic

File name: twlp_batch_administer_rest.html