User Account & Application Management APIs in CloudHub

Author: Manish Prabhu

About cloudhub APIs:

There are several APIs available in cloudhub that can be used for various purposes such as application management, getting information about domain, getting user account information, domain availability etc. 

User account API:

This cloudhub API is used to get information about user accounts, organization, subscription plan, environments etc. This API requires Basic authentication as an authorization mechanism.

API URL: GET https://anypoint.mulesoft.com/cloudhub/api/account

Sample flow:

HTTP Request Basic authentication configuration:

We can verify the output of above using postman request:

Create application:

This cloudhub will create a new application in runtime manager with by default status as undeployed.

API URL: POST https://anypoint.mulesoft.com/cloudhub/api/applications

This API requires Basic authentication as an authorization mechanism and X-ANYPNT-ENV-ID in header to identify id of the environment(for e.g. sandbox environment). This id you can get from get account details API.

Sample flow:

The first transform message component is used to provide the input for creating an app HTTP request.

HTTP Request Basic authentication configuration:

We can verify the output using the postman request.

We can also verify this API using the runtime manager console. You will get a new app created with default status as undeployed.

Get application details:

This API is used to information about the applications present in runtime manager.

API URL: GET https://anypoint.mulesoft.com/cloudhub/api/applications

This API requires Basic authentication as an authorization mechanism and X-ANYPNT-ENV-ID in header to identify id of the environment(for e.g. sandbox environment). This id you can get from get account details API.

Sample flow:

HTTP Request Basic authentication configuration:

We can verify the output using a postman request.

We use cookies on this site to enhance your user experience. For a complete overview of how we use cookies, please see our privacy policy.