| 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.
| |||||||||||
Create a notification inside CloudHub for your flow.
| |||||||||||
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://muleion.com/ | Optional. CloudHub URL. | ||||||||||
| Optional. CloudHub username. | |||||||||||
Create a notification inside CloudHub.
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 | */* | |||
| Optional. The application domain. | String | */* | UTF-8 | ||
| #[payload] | Optional. The payload of the message. If it's an exception, it'll get appended to the message. | Object | */* |
| Name | Default Value | Description | Java Type |
|---|---|---|---|
| Optional. A map to represent custom placeholders on the notification template | Map<String, String> |
| Return Type | Description |
|---|---|
| Notification | The notification that was created. |
Create a notification inside CloudHub for your flow. If not running in an CloudHub environment, this will log to the console.
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 | */* | |||
| #[payload] | Optional. The payload of the message. If it's an exception, it'll get appended to the message. | Object | */* | ||
| true | Optional. If the message payload contains an Exception, whether or not to include the stacktrace. True by default. | boolean | */* |
| 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.
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.
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 | */* |
| 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 | */* |