Contact Free trial Login

Calling the CloudHub API

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

For instructions on how to perform these same tasks more easily using 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:

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:

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 API Portal, search among other Mule APIs for the CloudHub API and enter its latest version.