EU コントロールプレーンに接続するための Mule の設定

EU コントロールプレーン内で Mule Runtime Engine を使用するには、Mule Runtime Engine から EU コントロールプレーンを参照できるようにする設定プロパティを再定義する必要があります。組織に属する環境のクライアント ID とクライアントシークレットも提供する必要があります。

デフォルトでは、Mule Runtime Engine は US コントロールプレーンを参照するように設定されています。これらのプロパティを上書きしない場合、EU コントロールプレーンで Mule Runtime Engine の API ゲートウェイ機能が無効になります。

上書きする必要のあるプロパティは、使用している Mule Runtime Engine のバージョン (Mule 4.0 または Mule 3.x) によって異なります。

Mule 4.0 の設定

wrapper.conf​、コマンドライン、CloudHub を使用して、Mule Runtime Engine (Mule) を設定できます。

wrapper.conf

wrapper.conf​ ファイルを使用して Mule Runtime Engine を設定するには、次のプロパティを変更して、​<n>​ を ​wrapper.conf​ 内で一意の整数に置き換えます。

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://eu1.anypoint.mulesoft.com
wrapper.java.additional.<n>=-Danypoint.platform.analytics_base_uri=https://analytics-ingest.eu1.anypoint.mulesoft.com

コマンドライン

コマンドラインから Mule Runtime Engine を設定するには、Mule Runtime Engine を開始するときに次のオプションを使用します。​./​ は、Unix 環境にのみ適用されます。

./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.eu1.anypoint.mulesoft.com

CloudHub

CloudHub にデプロイする場合、[Properties (プロパティ)] タブで次のプロパティを含めます。

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

Mule 3.x の設定

wrapper.conf​、コマンドライン、CloudHub を使用して、Mule Runtime Engine (Mule) を設定できます。

wrapper.conf

wrapper.conf​ ファイルを設定するには、次のプロパティを変更して、​<n>​ を ​wrapper.conf​ 内で一意の整数に置き換えます。

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://eu1.anypoint.mulesoft.com/apiplatform
wrapper.java.additional.<n>=-Danypoint.platform.coreservice_base_uri=https://eu1.anypoint.mulesoft.com/accounts
wrapper.java.additional.<n>=-Danypoint.platform.contracts_base_uri=https://eu1.anypoint.mulesoft.com/apigateway/ccs
wrapper.java.additional.<n>=-Danypoint.platform.analytics_base_uri=https://analytics-ingest.eu1.anypoint.mulesoft.com

コマンドライン

コマンドラインから Mule Runtime Engine を設定するには、Mule Runtime Engine を開始するときに次のオプションを使用します。​./​ は、Unix 環境にのみ適用されます。

./mule -M-Danypoint.platform.client_id=<org client ID> -M-
Danypoint.platform.client_secret=<org 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

CloudHub にデプロイする場合、[Properties (プロパティ)] タブで次の情報を追加して、自動検出機能を有効にする必要があります。

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