The REST API provides the following methods for monitoring components:
- Components
- Communication Points
- GET /api/commpoint/<id>
- GET /api/commpoint/<id>/state
- PUT /api/commpoint/<id>/state
- GET /api/commpoint/<id>/messagecount
- POST /api/commpoint/<id>/messagecount
- GET /api/commpoint/<id>/supportnotes
- GET /api/commpoint/<id>/alerts/customsettings
- PUT /api/commpoint/<id>/alerts/customsettings
- DELETE/api/commpoint/<id>/alerts/customsettings
- PUT /api/commpoint/<id>/alerts/suspend
- Routes
- GET /api/route/<id>
- GET /api/route/<id>/state
- PUT /api/route/<id>/state
- GET /api/route/<id>/messagecount
- POST /api/route/<id>/messagecount
- GET /api/route/<id>/supportnotes
- GET /api/route/<id>/filter/<id>/supportnotes
- GET /api/route/<id>/alerts/customsettings
- PUT /api/route/<id>/alerts/customsettings
- DELETE/api/route/<id>/alerts/customsettings
- PUT /api/route/<id>/alerts/suspend
- Web Services
- GET /api/webservice
- POST /api/webservice/find
- GET /api/webservice/<id>
- GET /api/webservice/<id>/state
- PUT /api/webservice/<id>/state
- GET /api/webservice/<id>/messagecount
- POST /api/webservice/<id>/messagecount
- GET /api/webservice/<id>/alerts/customsettings
- PUT /api/webservice/<id>/alerts/customsettings
- DELETE/api/webservice/<id>/alerts/customsettings
- PUT /api/webservice/<id>/alerts/suspend
- Folders and Lockers
- Watchlists
Components
GET /api/components
URI |
|
---|---|
Description |
Retrieves the identifiers of the communication points, filters and routes in all lockers that the user has view permissions for. Returns the identifier, UUID, name and current state. |
Request Header | Accept: application/json |
Accept: application/vnd.orchestral.rhapsody.6_1+json |
|
Accept: application/vnd.orchestral.rhapsody.6_4+json |
|
Request Body |
Empty. |
Response Status | 200 OK - operation successful. |
Response Body |
The response body has the following structure: |
Access Rights |
'View components REST API'. |
GET /api/components/status
URI |
|
---|---|
Description |
Retrieves the identifiers of the communication points and routes in all lockers that the user has view permissions for. Returns the identifier, UUID, name and current state, and the inbound, outbound and failed queue sizes for communication points. |
Request Header |
|
Accept: application/vnd.orchestral.rhapsody.6_1+json |
|
Accept: application/vnd.orchestral.rhapsody.6_4+json |
|
Accept: application/vnd.orchestral.rhapsody.6_5+json |
|
Request Body |
Empty. |
Response Status | 200 OK - operation successful. |
Response Body |
The response body has the following structure: |
Access Rights |
'View components REST API'. |
POST /api/components/find
URI |
|
---|---|
Description |
Retrieves the identifier of a locker, folder, communication point, filter or route that is identified by the given |
Request Header |
|
Request Body |
The full path to the locker, folder, communication point, filter or route with lockers and folders separated using a forward slash, for example |
Response Status |
|
Response Body |
The identifier of the locker, folder, communication point, filter or route. |
Access Rights |
'View components REST API'. |
GET api/components/registeredports
URI |
|
---|---|
Description |
Retrieves a list of the ports in use by standard components in the engine. Only ports used by components that have a configurable port number are displayed. |
Request Header | Accept: application/json |
Accept: application/vnd.orchestral.rhapsody.6_3+json |
|
|
|
Request Parameter | type - remote , local , or all . This parameter is optional and defaults to all . |
Request Body |
Empty. |
Response Status | 200 OK - operation successful. |
Response Body |
The response body has the following structure: |
Access Rights |
'View components REST API'. |
Communication Points
GET /api/commpoint/<id>
URI |
|
---|---|
Description |
Retrieves the information for a communication point with the given identifier or UUID. Returns the identifier, UUID, name, mode, type, path, state, inbound queue size, outbound queue size, failed queue size, received count, sent count, failed count, input idle time, output idle time, and schedule. |
Request Header |
|
Accept: application/vnd.orchestral.rhapsody.6_1+json |
|
Accept: application/vnd.orchestral.rhapsody.6_2_4+json |
|
Accept: application/vnd.orchestral.rhapsody.6_4+json |
|
Accept: application/vnd.orchestral.rhapsody.6_5+json |
|
Request Body |
Empty. |
Response Status | 200 OK - operation successful. |
Response Body |
The response body has the following structure: |
Access Rights |
'View communication points REST API'. |
GET /api/commpoint/<id>/state
URI |
|
---|---|
Description |
Retrieves the state of the communication point with the given identifier. This state may be started, stopped, not configured and so forth. |
Request Header |
|
Accept: text/vnd.orchestral.rhapsody.6_0+plain |
|
Request Body |
Empty. |
Response Status |
|
Response Body |
The state of the communication point (for example |
Access Rights |
'View communication points REST API'. |
PUT /api/commpoint/<id>/state
URI |
|
---|---|
Description |
Accepts the new state of the communication point with the given identifier. |
Request Header |
|
Content-Type: text/vnd.orchestral.rhapsody.6_0+plain CSRF Protection Enabled |
|
Request Body |
The action to perform on the state of the communication point (for example |
Response Status |
|
Response Body |
Empty. |
Access Rights |
'View communication points REST API'. |
GET /api/commpoint/<id>/messagecount
URI |
|
---|---|
Description |
Retrieves the number of sent, received and failed messages on the given communication point. |
Request Header |
|
Accept: application/vnd.orchestral.rhapsody.6_0+json |
|
|
|
Request Body |
Empty. |
Response Status | 200 OK - operation successful. |
Response Body |
The response body has the following structure: |
Access Rights |
'View communication points REST API'. |
POST /api/commpoint/<id>/messagecount
URI |
|
||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Description |
Retrieves the number of sent, received or failed messages on the given communication point in a specified time period as per the specified sampling resolution. This method can only provide those statistics for any specified time period and sampling resolution that are available in the statistics store. Rhapsody deletes statistics records in the statistics store over time in accordance with a statistics retention policy. |
||||||||||
Request Header |
|
||||||||||
Content-Type: application/vnd.orchestral.rhapsody.6_1+json Accept: application/vnd.orchestral.rhapsody.6_1+json |
|||||||||||
Content-Type: application/vnd.orchestral.rhapsody.6_5+json Accept: application/vnd.orchestral.rhapsody.6_5+json |
|||||||||||
Request Body |
The request body has the following structure:
{ "messageCountType":"SENT", "startTime":"2017-06-28T10:42:00.10", "endTime":"2017-06-28T10:52:00.10", "samplingResolution":"PT2M" } |
||||||||||
Response Status | 200 OK - operation successful. |
||||||||||
Response Body |
The response body has the following structure: |
||||||||||
Access Rights |
'View communication points REST API'. |
GET /api/commpoint/<id>/supportnotes
URI |
|
Description | Retrieves the support notes for the communication point with a given identifier. |
Request Header | Accept: text/html |
Accept: application/vnd.orchestral.rhapsody.6_2+html |
|
Request Body | Empty. |
Response Status |
|
Response Body | The support notes for the communication point. |
Access Rights | 'View support notes REST API'. |
GET /api/commpoint/<id>/alerts/customsettings
URI | GET /api/commpoint/<id>/alerts/customsettings |
---|---|
Description |
Retrieves the custom communication point alert settings. This method replaces GET /api/commpoint/<id>/alerts/settings which has been deprecated as of Rhapsody 6.5. |
Request Header | Accept: application/json |
Accept: application/vnd.orchestral.rhapsody.6_5+json |
|
Request Body | Empty. |
Response Status | 200 OK - operation successful. |
Response Body |
The response body has the following structure: |
Access Rights | 'View communication points REST API'. 'View locker'. 'View notification settings REST API'. |
PUT /api/commpoint/<id>/alerts/customsettings
URI |
|
---|---|
Description |
Modifies the custom communication point alert settings. Replaces all settings with the ones provided in the API call. This method replaces PUT /api/commpoint/<id>/alerts/settings which has been deprecated as of Rhapsody 6.5. |
Request Header | Content-Type: application/json CSRF Protection Enabled |
Content-Type: application/vnd.orchestral.rhapsody.6_5+json CSRF Protection Enabled |
|
Request Body |
The issues to update settings for:
|
Response Status | 204 No Content - operation successful. |
Response Body | No value is returned. |
Access Rights | 'View communication points REST API'. 'View locker'. 'Change notification settings REST API'. |
DELETE/api/commpoint/<id>/alerts/customsettings
URI | DELETE /api/commpoint/<id>/alerts/customsettings |
---|---|
Description |
Removes the custom communication point alert settings and all time period settings. This method replaces DELETE /api/commpoint/<id>/alerts/settings which has been deprecated as of Rhapsody 6.5. |
Request Header | CSRF Protection Enabled |
Request Body | Empty. |
Response Status | 204 No Content - operation successful. |
Response Body | No value is returned. |
Access Rights | 'View communication points REST API'. 'View locker'. 'Change notification settings REST API'. |
PUT /api/commpoint/<id>/alerts/suspend
URI | PUT /api/commpoint/alerts/<id>/suspend |
---|---|
Description | Suspends or resumes the notifications for the specified communication point. |
Request Header | Content-Type: application/json CSRF Protection Enabled |
Content-Type: application/vnd.orchestral.rhapsody.6_4+json CSRF Protection Enabled |
|
Request Body |
The response body has the following structure:
|
Response Status | 204 No Content - operation successful. |
Response Body | Empty. |
Access Rights | 'View communication points REST API'. 'View locker'. 'Suspend/resume component and issue notifications REST API'. |
Routes
GET /api/route/<id>
URI |
|
---|---|
Description |
Retrieves the information for a route with the given identifier or UUID. Returns the identifier, UUID, name, path, state, processing queue size, waiting queue size, processed count, idle time. You can use this method to retrieve the information for a filter with a given UUID. Due to the way filter UUIDs are determined, a filter with the UUID |
Request Header |
Accept: application/json |
|
|
|
|
Request Body |
Empty. |
Response Status | 200 OK - operation successful. |
Response Body |
The response body has the following structure: |
Access Rights |
'View routes REST API'. |
GET /api/route/<id>/state
URI |
|
---|---|
Description |
Retrieves the state of the route with the given identifier. This state may be started, stopped, not configured and so on. |
Request Header |
|
Accept: text/vnd.orchestral.rhapsody.6_0+plain |
|
Request Body |
Empty. |
Response Status |
|
Response Body |
The state of the route (for example |
Access Rights |
'View routes REST API'. |
PUT /api/route/<id>/state
URI |
|
---|---|
Description |
Accepts the new state of the route with the given identifier. |
Request Header |
|
Content-Type: text/vnd.orchestral.rhapsody.6_0+plain CSRF Protection Enabled |
|
Request Body |
The action to perform on the state of the route (for example |
Response Status | 204 No Content - new state of the route accepted. 400 Bad Request - state of an invalid type. 500 Internal Server Error - the route could not be changed to the new type. |
Response Body |
Empty. |
Access Rights |
'View routes REST API'. |
GET /api/route/<id>/messagecount
URI |
|
---|---|
Description |
Retrieves the number of processed messages on the given route. |
Request Header |
|
Accept: application/vnd.orchestral.rhapsody.6_0+json |
|
Request Body |
Empty. |
Response Status | 200 OK - operation successful. |
Response Body |
The number of processed messages: |
Access Rights |
'View routes REST API'. |
POST /api/route/<id>/messagecount
URI |
|
||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Description |
Retrieves the number of processed messages on the given route in a specified time period as per the specified sampling resolution. This method can only provide those statistics for any specified time period and sampling resolution that are available in the statistics store. Rhapsody deletes statistics records in the statistics store over time in accordance with a statistics retention policy. |
||||||||||
Request Header |
|
||||||||||
Content-Type: application/vnd.orchestral.rhapsody.6_1+json Accept: application/vnd.orchestral.rhapsody.6_1+json |
|||||||||||
Request Body |
The request body has the following structure:
{ "messageCountType":"PROCESSED", "startTime":"2017-06-28T10:42:00.10", "endTime":"2017-06-28T10:52:00.10", "samplingResolution":"PT2M" } |
||||||||||
Response Status | 200 OK - operation successful. |
||||||||||
Response Body |
The response body has the following structure: |
||||||||||
Access Rights |
'View routes REST API'. |
GET /api/route/<id>/supportnotes
URI |
|
Description | Retrieves the support notes for the route with a given identifier. |
Request Header | Accept: text/html |
Accept: application/vnd.orchestral.rhapsody.6_2+html |
|
Request Body | Empty. |
Response Status |
|
Response Body | Support notes for the route. |
Access Rights | 'View support notes REST API'. |
GET /api/route/<id>/filter/<id>/supportnotes
URI |
|
Description | Retrieves the support notes for the filter in the route with given identifiers. |
Request Header | Accept: text/html |
Accept: application/vnd.orchestral.rhapsody.6_2+html |
|
Request Body | Empty. |
Response Status |
|
Response Body | Support notes for the filter. |
Access Rights | 'View support notes REST API'. |
GET /api/route/<id>/alerts/customsettings
URI | GET /api/route/<id>/alerts/customsettings |
---|---|
Description |
Retrieves the custom route alert settings. This method replaces GET /api/route/<id>/alerts/settings which has been deprecated as of Rhapsody 6.5. |
Request Header | Accept: application/json |
Accept: application/vnd.orchestral.rhapsody.6_5+json |
|
Request Body | Empty. |
Response Status | 200 OK - operation successful. |
Response Body |
The response body has the following structure: |
Access Rights | 'View routes REST API'. 'View locker'. 'View notification settings REST API'. |
PUT /api/route/<id>/alerts/customsettings
URI | PUT /api/route/<id>/alerts/customsettings |
---|---|
Description |
Modifies the custom route alert settings. Replaces all settings with the ones provided in the API call. This method replaces PUT /api/route/<id>/alerts/settings which has been deprecated as of Rhapsody 6.5. |
Request Header | Content-Type: application/json CSRF Protection Enabled |
Content-Type: application/vnd.orchestral.rhapsody.6_5+json CSRF Protection Enabled |
|
Request Body |
The issues to update settings for:
|
Response Status | 204 No Content - operation successful. |
Response Body | No value is returned. |
Access Rights | 'View routes REST API'. 'View locker'. 'Change notification settings REST API'. |
DELETE/api/route/<id>/alerts/customsettings
URI | DELETE /api/route/<id>/alerts/customsettings |
---|---|
Description |
Removes the custom route alert settings and all time period settings. This method replaces DELETE /api/route/<id>/alerts/settings which has been deprecated as of Rhapsody 6.5. |
Request Header | CSRF Protection Enabled |
Request Body | Empty. |
Response Status | 204 No Content - operation successful. |
Response Body | No value is returned. |
Access Rights | 'View routes REST API'. 'View locker'. 'Change notification settings REST API'. |
PUT /api/route/<id>/alerts/suspend
URI | PUT /api/route/<id>/suspend |
---|---|
Description | Suspends or resumes the notifications for the specified route. |
Request Header | Content-Type: application/json CSRF Protection Enabled |
Content-Type: application/vnd.orchestral.rhapsody.6_4+json CSRF Protection Enabled |
|
Request Body |
|
Response Status | 204 No Content - operation successful. |
Response Body | Empty. |
Access Rights | 'View routes REST API'. 'View locker'. 'Suspend/resume component and issue notifications REST API'. |
Web Services
GET /api/webservice
URI |
|
---|---|
Description |
Retrieves the identifiers of the web services. Returns the identifier, UUID, name and current state. |
Request Header |
|
Accept: application/vnd.orchestral.rhapsody.6_1+json |
|
|
|
Request Body |
Empty. |
Response Status | 200 OK - operation successful. |
Response Body |
The response body has the following structure: |
Access Rights |
'View web services REST API'. |
POST /api/webservice/find
URI |
|
---|---|
Description |
Retrieves the identifier of a web service that is identified by the given <name> parameter. |
Request Header |
|
Request Body |
The name of the web service, for example: |
Response Status | 200 OK - operation successful. |
Response Body |
The identifier of the web service or route. |
Access Rights |
'View web services REST API'. |
GET /api/webservice/<id>
URI |
|
---|---|
Description |
Retrieves the information for a web service with the given identifier or UUID. Returns the identifier, UUID, name, state, input idle time, output idle time, uptime, received count, sent count, WSDL location. |
Request Header |
|
Accept: application/vnd.orchestral.rhapsody.6_1+json |
|
|
|
Request Body |
Empty. |
Response Status | 200 OK - operation successful. |
Response Body |
The response body has the following structure: |
Access Rights |
'View web services REST API'. |
GET /api/webservice/<id>/state
URI |
|
---|---|
Description |
Retrieves the state of the web service with the given identifier. This state may be started, stopped, not configured and so on. |
Request Header |
|
Accept: text/vnd.orchestral.rhapsody.6_0+plain |
|
Request Body |
Empty. |
Response Status |
|
Response Body |
The state of the web service (for example |
Access Rights |
'View web services REST API'. |
PUT /api/webservice/<id>/state
URI |
|
---|---|
Description |
Restarts the web service with the given identifier. |
Request Header |
|
Content-Type: text/vnd.orchestral.rhapsody.6_0+plain CSRF Protection Enabled |
|
Request Body |
The action to perform on the state of the web service. The action can only be |
Response Status | 204 No Content - new state of the web service accepted. |
Response Body |
Empty. |
Access Rights |
'Restart web services REST API'. |
GET /api/webservice/<id>/messagecount
URI |
|
---|---|
Description |
Retrieves the number of sent and received messages on the given web service. |
Request Header |
|
Accept: application/vnd.orchestral.rhapsody.6_0+json |
|
Request Body |
Empty. |
Response Status | 200 OK - operation successful. |
Response Body |
The number of sent and received messages:
|
Access Rights |
'View web services REST API'. |
POST /api/webservice/<id>/messagecount
URI |
|
||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Description |
Retrieves the number of sent or received messages on the given web service in a specified time period as per the specified sampling resolution. This method can only provide those statistics for any specified time period and sampling resolution that are available in the statistics store. Rhapsody deletes statistics records in the statistics store over time in accordance with a statistics retention policy. |
||||||||||
Request Header |
|
||||||||||
Content-Type: application/vnd.orchestral.rhapsody.6_1+json Accept: application/vnd.orchestral.rhapsody.6_1+json |
|||||||||||
Request Body |
The request body has the following structure:
{ "messageCountType":"SENT", "startTime":"2016-09-22T17:01:00.000", "endTime": "2016-09-22T17:03:00.000", "samplingResolution":"PT2M" } |
||||||||||
Response Status | 200 OK - operation successful. |
||||||||||
Response Body |
The response body has the following structure: |
||||||||||
Access Rights |
'View web services REST API'. |
GET /api/webservice/<id>/alerts/customsettings
URI | GET /api/webservice/<id>/alerts/customsettings |
---|---|
Description |
Retrieves the custom web service alert settings. This method replaces GET /api/webservice/<id>/alerts/settings which has been deprecated as of Rhapsody 6.5. |
Request Header | Accept: application/json |
Accept: application/vnd.orchestral.rhapsody.6_5+json |
|
Request Body | Empty. |
Response Status | 200 OK - operation successful. |
Response Body |
The response body has the following structure: |
Access Rights | 'View web services REST API'. 'View notification settings REST API'. |
PUT /api/webservice/<id>/alerts/customsettings
URI | PUT /api/webservice/<id>/alerts/customsettings |
---|---|
Description |
Modifies the custom web service alert settings. Replaces all settings with the ones provided in the API call. This method replaces PUT /api/webservice/<id>/alerts/settings which has been deprecated as of Rhapsody 6.5. |
Request Header | Content-Type: application/json CSRF Protection Enabled |
Content-Type: application/vnd.orchestral.rhapsody.6_5+json CSRF Protection Enabled |
|
Request Body |
The issues to update settings for:
|
Response Status | 204 No Content - operation successful. |
Response Body | No value is returned. |
Access Rights | 'View web services REST API'. 'View notification settings REST API'. |
DELETE/api/webservice/<id>/alerts/customsettings
URI | DELETE /api/webservice/<id>/alerts/customsettings |
---|---|
Description |
Removes the custom web service alert settings and all time period settings. This method replaces DELETE /api/webservice/<id>/alerts/settings which has been deprecated as of Rhapsody 6.5. |
Request Header | CSRF Protection Enabled |
Request Body | Empty. |
Response Status | 204 No Content - operation successful. |
Response Body | No value is returned. |
Access Rights | 'View web services REST API'. 'Change notification settings REST API'. |
PUT /api/webservice/<id>/alerts/suspend
URI | PUT /api/webservice/<id>/alerts/suspend |
---|---|
Description | Suspends or resumes the notifications for the specified web service. |
Request Header | Content-Type: application/json CSRF Protection Enabled |
Content-Type: application/vnd.orchestral.rhapsody.6_4+json CSRF Protection Enabled |
|
Request Body |
The response body has the following structure:
|
Response Status | 204 No Content - operation successful. |
Response Body | No value is returned. |
Access Rights | 'Suspend/resume component and issue notifications REST API'. |
Folders and Lockers
PUT /api/folder/<id>/state
URI | PUT /api/folder/<id>/state |
Description | Accepts the new state of the communication points and routes in the folder. Applies the state to all sub-folders. Can be called on the root folder. |
Request Header |
|
Content-Type: text/vnd.orchestral.rhapsody.6_2+plain CSRF Protection Enabled |
|
Request Body | The action to perform on the state of the folder's components (for example: START , STOP or RESTART ). |
Response Status | 204 No Content - new state accepted for all communication points and routes.403 Forbidden - missing the required access rights on the folder.500 Internal Server Error - one or more communication points or routes did not accept the new state. |
Response Body |
A list of all components which did not accept the new state and an error message explaining the reason the new state was not accepted. If this is called on the root folder, the response may also include a list of lockers that were skipped due to missing access rights. |
Access Rights | 'Start/stop communication points REST API'. 'Start/stop routes REST API'. 'View locker' (for the folder). 'Start/stop communication points' (for the folder). 'Start/stop routes' (for the folder). |
PUT /api/locker/<id>/state
URI | PUT /api/locker/<id>/state |
Description | Accepts the new state of the communication points and routes in the locker. Applies the state to all sub-folders. |
Request Header | Content-Type: text/plain CSRF Protection Enabled |
Content-Type: text/vnd.orchestral.rhapsody.6_2+plain CSRF Protection Enabled |
|
Request Body | The action to perform on the state of the locker's components (for example START , STOP or RESTART ). |
Response Status | 204 No Content - new state accepted for all communication points and routes.403 Forbidden - missing the required access rights on the locker.500 Internal Server Error - one or more communication points or routes did not accept the new state. |
Response Body |
A list of all components which did not accept the new state and an error message explaining the reason the new state was not accepted. |
Access Rights | 'Start/stop communication points REST API'. 'Start/stop routes REST API'. 'View locker' (for the folder). 'Start/stop communication points' (for the folder). 'Start/stop routes' (for the folder). |
Watchlists
GET /api/watchlists/<name>/alerts/active
URI |
The |
---|---|
Description |
Retrieves a list of all active alerts that are associated with components on the specified watchlist. This allows the system administrator to group components as required, and so report the alerts separately. The response body is in the same format as when retrieving alerts for the entire engine. |
Request Header |
|
Accept: application/vnd.orchestral.rhapsody.6_0+json |
|
Request Body |
Empty. |
Response Status |
|
Response Body |
The response body has the same JSON format as when retrieving all alerts. Refer to GET /api/alerts/active for details. |
Access Rights |
'View notifications REST API'. |