Contact Free trial Login

Configure the Mule Runtime to Connect to the Government Cloud

To use Mule Runtime within the Government Cloud, you must redefine the configuration properties that enable Mule Runtime to point to the Government Cloud. You must also provide the client ID and client secret of the environment belonging to your organization.

By default, the Mule Runtime is configured to point to the US control plane. If you do not override these properties, the API Gateway capability of the Mule Runtime is disabled in the Government Cloud.

The properties you must override depend on the version of the Mule Runtime you are using, as described in the following sections.

Configuring Mule Runtime 4

wrapper.conf

To configure Mule Runtime using the wrapper.conf file, modify the following properties:

wrapper.java.additional.<n>=-Danypoint.platform.client_id=<environment client ID>
wrapper.java.additional.<n>=-Danypoint.platform.client_secret=<environment client secret>
wrapper.java.additional.<n>=-Danypoint.platform.base_uri=https://gov.anypoint.mulesoft.com
wrapper.java.additional.<n>=-Danypoint.platform.analytics_base_uri=https://analytics-ingest.gov.anypoint.mulesoft.com

In the previous example, replace <n> with an integer value that is unique within the wrapper.conf file.

Command Line

To configure Mule Runtime from the command line, use the following options when starting the Mule Runtime. Note that ./ only applies to Unix environments.

./mule -M-Danypoint.platform.client_id=<environment client ID> -M-Danypoint.platform.client_secret=<environment client secret> -M-Danypoint.platform.base_uri=https://eu1.anypoint.mulesoft.com
-M-Danypoint.platform.analytics_base_uri=https://analytics-ingest.gov.anypoint.mulesoft.com

CloudHub

When deploying to CloudHub, include the following information in the Properties tab:

anypoint.platform.client_id=<environment client ID>
anypoint.platform.client_secret=<environment client secret>
anypoint.platform.base_uri=https://gov.anypoint.mulesoft.com
anypoint.platform.analytics_base_uri=https://analytics-ingest.gov.anypoint.mulesoft.com

Configuring Mule Runtime 3.x

wrapper.conf

To configure wrapper.conf file, modify the following properties:

wrapper.java.additional.<n>=-Danypoint.platform.client_id=<environment client ID>
wrapper.java.additional.<n>=-Danypoint.platform.client_secret=<environment client secret>
wrapper.java.additional.<n>=-Danypoint.platform.platform_base_uri=https://gov.anypoint.mulesoft.com/apiplatform
wrapper.java.additional.<n>=-Danypoint.platform.coreservice_base_uri=https://gov.anypoint.mulesoft.com/accounts
wrapper.java.additional.<n>=-Danypoint.platform.contracts_base_uri=https://gov.anypoint.mulesoft.com/apigateway/ccs
wrapper.java.additional.<n>=-Danypoint.platform.analytics_base_uri=https://analytics-ingest.gov.anypoint.mulesoft.com

In the previous example, replace <n> with an integer value that is unique within the wrapper.conf file.

Command Line

To configure Mule Runtime from the command line, use the following options when starting the Mule Runtime. Note that ./ only applies to Unix environments.

./mule -M-Danypoint.platform.client_id=<environment client ID> -M-Danypoint.platform.client_secret=<environment client secret> -M-Danypoint.platform.platform_base_uri=https://eu1.anypoint.mulesoft.com/apiplatform -M-Danypoint.platform.coreservice_base_uri=https://eu1.anypoint.mulesoft.com/accounts -M-Danypoint.platform.contracts_base_uri=https://eu1.anypoint.mulesoft.com/apigateway/ccs -M-Danypoint.platform.analytics_base_uri=https://analytics-ingest.eu1.anypoint.mulesoft.com

CloudHub

When deploying to CloudHub, you must add the following information and enable the autodiscovery feature in the Properties tab.

anypoint.platform.client_id=<environment client ID>
anypoint.platform.client_secret=<environment client secret>
anypoint.platform.platform_base_uri=https://gov.anypoint.mulesoft.com/apiplatform
anypoint.platform.coreservice_base_uri=https://gov.anypoint.mulesoft.com/accounts
anypoint.platform.contracts_base_uri=https://gov.anypoint.mulesoft.com/apigateway/ccs
anypoint.platform.analytics_base_uri=https://analytics-ingest.gov.anypoint.mulesoft.com

We use cookies to make interactions with our websites and services easy and meaningful, to better understand how they are used and to tailor advertising. You can read more and make your cookie choices here. By continuing to use this site you are giving us your consent to do this.