| Namespace | http://www.mulesoft.org/schema/mule/cloudhub |
|---|---|
| Schema Location | http://www.mulesoft.org/schema/mule/cloudhub/current/mule-cloudhub.xsd (View Schema) |
| Schema Version | 1.0 |
| Minimum Mule Version | 3.2 |
Provides the ability to interact with Mule CloudHub from within a Mule application. There are operations to deploy, start, stop, and update applications as well as send notifications from your application to CloudHub.
When running this connector in an application inside CloudHub, it will use token based authentication to access the API. This will allow access and usage of the CloudHub APIs without the need to specify your username and password.
| Configuration | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
Configure an instance of this module
| |||||||||||
| Message Processors | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
Create a notification inside CloudHub. | |||||||||||
Delete an application. | |||||||||||
Deploy specified application.
| |||||||||||
Dismiss an individual notification. | |||||||||||
Get an application.
| |||||||||||
List applications.
| |||||||||||
List a user's notifications. | |||||||||||
Start an application.
| |||||||||||
Stop an application.
| |||||||||||
Update an application.
| |||||||||||
To use the this module within a flow the namespace to the module must be included. The resulting flow will look similar to the following:
<mule xmlns="http://www.mulesoft.org/schema/mule/core"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:cloudhub="http://www.mulesoft.org/schema/mule/cloudhub"
xsi:schemaLocation="
http://www.mulesoft.org/schema/mule/core
http://www.mulesoft.org/schema/mule/core/current/mule.xsd
http://www.mulesoft.org/schema/mule/cloudhub
http://www.mulesoft.org/schema/mule/cloudhub/current/mule-cloudhub.xsd">
<!-- here goes your flows and configuration elements -->
</mule>
This module is configured using the config element. This element must be placed outside of your flows and at the root of your Mule application. You can create as many configurations as you deem necessary as long as each carries its own name.
Each message processor, message source or transformer carries a config-ref attribute that allows the invoker to specify which configuration to use.
| Attributes | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Type | Name | Default Value | Description | Java Type | MIME Type | Encoding | Optional. Give a name to this configuration so it can be later referenced. | ||||
| 0 | Optional. Maximum time allowed to deplpoy/undeploy. | ||||||||||
| Optional. CloudHub password. | |||||||||||
| https://cloudhub.io/ | Optional. CloudHub URL. | ||||||||||
| Optional. CloudHub username. | |||||||||||
Create a notification inside CloudHub.
If the notification is sent after an exception, it attaches the exception.message and exception.stacktrace as as custom properties of the notification. Those custom properties can be accessed from Cloudhub console with the names 'exception.message' and 'exception.stacktrace'
In the case of multitenant applications the connector will create a notification for a particular tenant. (the one that is executing the flow)
INCLUDE_ERROR
| Name | Default Value | Description | Java Type | MIME Type | Encoding |
|---|---|---|---|---|---|
| Optional. Specify which configuration to use. | |||||
The contents of the notification. |
String | */* | UTF-8 | ||
The notification priority. |
Notification.Priority | */* | |||
Processed mule event |
MuleEvent | */* |
| Name | Default Value | Description | Java Type |
|---|---|---|---|
| Optional. a map to represent custom placeholders on the notification template |
Map<String, String> |
Delete an application.
INCLUDE_ERROR
| Name | Default Value | Description | Java Type | MIME Type | Encoding |
|---|---|---|---|---|---|
| Optional. Specify which configuration to use. | |||||
The application domain. |
String | */* | UTF-8 |
Deploy specified application.
INCLUDE_ERROR
| Name | Default Value | Description | Java Type | MIME Type | Encoding |
|---|---|---|---|---|---|
| Optional. Specify which configuration to use. | |||||
| #[payload] | Optional. Mule application to deploy, Input Object type: java.io.InputStream | InputStream | */* | ||
| The application domain. | String | */* | UTF-8 | ||
| 3.2.2 | Optional. The version of Mule, e.g. 3.2.2. | String | */* | UTF-8 | |
| 1 | Optional. The number of workers to deploy. | int | */* |
| Name | Default Value | Description | Java Type |
|---|---|---|---|
| Optional. Environment variables for you application. | Map<String, String> |
Dismiss an individual notification.
This operation does not depend on the tenant environment.
INCLUDE_ERROR
| Name | Default Value | Description | Java Type | MIME Type | Encoding |
|---|---|---|---|---|---|
| Optional. Specify which configuration to use. | |||||
The href property of the Notification object. |
String | */* | UTF-8 |
Get an application.
INCLUDE_ERROR
| Name | Default Value | Description | Java Type | MIME Type | Encoding |
|---|---|---|---|---|---|
| Optional. Specify which configuration to use. | |||||
| The application domain. | String | */* | UTF-8 |
| Return Type | Description |
|---|---|
| Application | An application. |
List applications.
INCLUDE_ERROR
| Name | Default Value | Description | Java Type | MIME Type | Encoding |
|---|---|---|---|---|---|
| Optional. Specify which configuration to use. |
| Return Type | Description |
|---|---|
| List<Application> | A list of applications. |
List a user's notifications.
In the case of a multitenant application it searches for the notifications registered for the current tenant.
INCLUDE_ERROR
| Name | Default Value | Description | Java Type | MIME Type | Encoding |
|---|---|---|---|---|---|
| Optional. Specify which configuration to use. | |||||
| Optional. The maximum number of results to retrieve. |
Integer | */* | |||
| Optional. The offset to start listing alerts from. |
Integer | */* | |||
Processed mule event |
MuleEvent | */* |
| Return Type | Description |
|---|---|
| NotificationResults | A List of notifications. |
Start an application.
INCLUDE_ERROR
| Name | Default Value | Description | Java Type | MIME Type | Encoding |
|---|---|---|---|---|---|
| Optional. Specify which configuration to use. | |||||
| The application domain. | String | */* | UTF-8 |
Stop an application.
INCLUDE_ERROR
| Name | Default Value | Description | Java Type | MIME Type | Encoding |
|---|---|---|---|---|---|
| Optional. Specify which configuration to use. | |||||
| The application domain. | String | */* | UTF-8 |
Update an application.
INCLUDE_ERROR
| Name | Default Value | Description | Java Type | MIME Type | Encoding |
|---|---|---|---|---|---|
| Optional. Specify which configuration to use. | |||||
| #[payload] | Optional. The application to update. | Application | */* |