Nav

Create Application

logo cloud active logo hybrid disabled logo server active logo pcf disabled

This document deals with calling the CloudHub API. For instructions on how to perform these same tasks more easily via the Runtime Manager UI, see CloudHub and its child pages.

The POST operation specified with the /api/applications resource creates a new application on CloudHub.

Example Request:


         
      
1
2
3
4
5
6
7
8
9
10
11
12
POST https://anypoint.mulesoft.com/cloudhub/api/applications
Content-Type: application/json
 
{
  "domain" : "yourdomain",
  "workers" : 1,
  "muleVersion":"3.7.0",
  "properties" : {
     "your.system.property" : "some.value",
     "your.system.property.2" : "some.value.2"
  }
}

Example Response:


         
      
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
201
Content-Type: application/json
Location: https://anypoint.mulesoft.com/cloudhub/api/applications/yourdomain
 
{
  "workers":1,
  "domain":"yourdomain",
  "fullDomain":"yourdomain.cloudhub.io",
  "hasFile":false,
  "muleVersion":"3.7.0",
  "properties" : {
     "your.system.property" : "some.value"
  },
  "status":"UNDEPLOYED"
}

Check out the API Portal of the CloudHub API to see an interactive reference of all the supported resources, methods, required properties and expected responses.

In the link above, search among other Mule APIs for the "CloudHub" API and click on its latest version.

In this topic: