The REST API provides the following methods to manage configurations specifically in automated deployment scenarios:
These methods are a straightforward and platform-independent mechanism for loading configurations. However, some of the methods have been designed to replace your existing configuration completely with a new one. For this reason, when partial configuration changes are required, it is recommended you use Rhapsody IDE. It is also recommended you test the new configuration on a staging environment that closely matches the production one before automatically deploying the changes into production.
REST API methods for configuration administration do not handle lookup tables, Rhapsody variables, security objects, the Web Services User Store, custom modules and libraries, or templates. To manage these Rhapsody objects, refer to:
- Lookup Tables Administration
- Variables Administration
- Security Objects Administration
- Web Service User Store Administration
- Custom Modules and Libraries
- Templates Administration
- Filter Testing
GET /admin/config/status/<id>
URI |
|
---|---|
Description |
Returns the status of the current configuration load. |
Request Header |
|
|
|
Request Body |
Empty. |
Response Status |
|
Response Body |
Status of the current load in JSON format. The response body has the following structure:
For example:
COMPLETED Response
{"data":{"state":"COMPLETED","result":{"resultType":"SUCCESS","configErrors":null}},"error":null}
RUNNING Response
{"data":{"state":"RUNNING","result":null},"error":null} |
Access Rights |
'Log in to Rhapsody IDE'. |
GET /admin/config
URI |
|
---|---|
Description |
Returns the configuration in the datastore in a ZIP format (the configuration in this format can only be loaded onto the engine through the As of Rhapsody 6.2.2, the temporary configuration file is located in Rhapsody's |
Request Header |
|
|
|
Accept: application/vnd.orchestral.rhapsody.6_2_2+zip |
|
Request Parameter |
|
compressTestMessages - true (default) or false . When set to false, the test messages will be saved in an expanded format, in other words in plain XML instead of a string of compressed XML. |
|
Request Body |
Empty. |
Response Status |
|
Response Body | The response body has the following structure:
The configuration XML file has the following structure:
Refer to |
Access Rights |
'Log in to Rhapsody IDE'. |
POST /admin/config
Intended Use
Loading a configuration using this REST API method:
- Overwrites your previous Rhapsody configuration (with the exception of lookup tables, Rhapsody variables, security objects, Web Services User Store, custom modules and libraries, and templates), and
- May result in the loss of live messages on deleted communication points and routes.
Therefore, only use this method if you want to replace your existing configuration completely with a new one. For partial configuration changes, it is recommended you use Rhapsody IDE. Furthermore, this method stops all components on successfully loading a new configuration. It then:
- Applies the value in the
startupState
attribute for each route and communication point, and - Restarts all the web services.
URI |
|
---|---|
Description |
Clears the existing configuration and loads the one provided in ZIP format (as created by calling the The configuration will fail to load if you do not have the 'Clear configurations' access right. You can disable this method by setting the It is recommended that Rhapsody variables, lookup tables, security objects and the Web Services User Store are loaded prior to loading the configuration. Any missing Rhapsody variables can result in affected components entering an unconfigured state due to missing dependencies. |
Request Header |
|
|
|
Content-Type: application/vnd.orchestral.rhapsody.6_2_2+zip CSRF Protection Enabled |
|
Request Parameter |
|
Request Body |
The content of the configuration in the data store in ZIP format. |
Response Status |
|
Response Header |
The load status URI: Location: https://localhost:8444/admin/config/status/1 |
Response Body |
Empty when the operation is successful. |
Access Rights |
'Log in to Rhapsody IDE'. You must have the appropriate access rights to modify certain parts of the configuration. For example, to modify web services, you will require the 'Edit web services' access right. |