---
schema_version: "1"
id: 36aa25632616c5a3fe9c838989c63e1f3d0402353c613030be5a7867aafbd663
title: Google Pub/Sub Connector 1.0 の例
collection: mulesoft
version: current
locale: ja-jp
portal_url: https://docs.salesforce.com/mulesoft/current/ja-jp/google-pubsub-connector/1.0/google-pubsub-connector-examples.md
canonical_url: https://docs.mulesoft.com/jp/google-pubsub-connector/1.0/google-pubsub-connector-examples
source_site: docs.mulesoft.com
content_type: documentation
content_hash: e1155835e91edf0eff3ae0f6a438569b1d4f228f28747a06e8a80f690db89cd4
description: MuleSoft Documentation Site
release: "1.0"
latest: true
---
# Google Pub/Sub Connector 1.0 の例

これらの例では、Google Pub/Sub Connector を使用して次のアクションを実行する方法を示しています。

- [スナップショットの作成](#create-snapshot)
- [スナップショットへのパッチ適用](#patch-snapshot)
- [スナップショットの取得](#get-snapshot)
- [スナップショットの削除](#delete-snapshot)
- [メッセージのパブリッシュ](#publish-message)

## [](#始める前に)始める前に

- Java 8、11、または 17
- Anypoint Studio 7.5 以降
- Mule Runtime Engine (Mule) 4.3.0 以降
- DataWeave

## [](#pubsub-接続の設定)PubSub 接続の設定

このコネクタでは、PubSub を使用して接続を保護するため、\[PubSub Connection (PubSub 接続)\] 項目値を指定する必要があります。次の手順を実行します。

- [PubSub 接続の設定ファイルを作成します。](#create-config-file)
- [PubSub 接続のグローバル要素を設定します。](#configure-pubsub-global)
- [プロパティファイルのグローバル要素を設定する](#configure-global)​。

### [](#create-config-file)PubSub 接続の設定ファイルを作成する

PubSub 接続のプロパティが含まれる設定ファイルを作成します。

1. `/src/main/resources/`​ フォルダー内に ​`mule-app.properties`​ という名前のファイルを作成します。
2. `mule-app.properties`​ ファイルに、次のような ​`PubSub Connection`​ の一連のプロパティを作成します。括弧で囲まれたテキスト (括弧を含む) を各自の設定の適切な値に置き換えます。
    
    config.private\_key\_id=<privatekeyid>
    config.private\_key=<privatekey>
    config.client\_id=<clientid>
    config.client\_email=<clientemail>
    config.default\_project\_id=<defaultprojectid>
    
    プロパティファイルの作成についての詳細は、​[「プロパティプレースホルダーの設定」](https://docs.mulesoft.com/mule-runtime/latest/mule-app-properties-to-configure)​を参照してください。

### [](#configure-pubsub-global)PubSub 接続のグローバル要素を設定する

`PubSub Connection`​ ファイルのグローバル要素を設定します。

1. 新しい Mule プロジェクトを作成します。
2. **\[Mule Palette (Mule パレット)\]**​ ビューで、​**\[Search in Exchange (Exchange 内を検索)\]**​ をクリックして「​`google pubsub`​」と入力します。
3. **\[Google Pub/Sub Connector\]**​ を ​**\[Selected modules (選択済みモジュール)\]**​ セクションに追加し、​**\[Finish (完了)\]**​ をクリックします。
4. **\[Global Elements (グローバル要素)\]**​ タブをクリックし、​**\[Create (作成)\]**​ をクリックします。
5. **\[Connector Configuration (コネクタ設定)\] > \[Google PubSub Configuration (Google PubSub 設定)\]**​ を選択し、​**\[OK\]**​ をクリックします。
6. 次の値を入力します。
    
    <table class="tableblock frame-all grid-all fit-content spread">
<colgroup>
<col>
<col>
</colgroup>
<thead>
<tr>
<th class="tableblock halign-left valign-top">項目</th>
<th class="tableblock halign-left valign-top">値</th>
</tr>
</thead>
<tbody>
<tr>
<td class="tableblock halign-left valign-top"><p class="tableblock">名前</p></td>
<td class="tableblock halign-left valign-top"><p class="tableblock"><code>Google_Pub_Sub_Configuration</code></p></td>
</tr>
<tr>
<td class="tableblock halign-left valign-top"><p class="tableblock">Private key id (非公開キー ID)</p></td>
<td class="tableblock halign-left valign-top"><p class="tableblock"><code>${config.private_key_id}</code></p></td>
</tr>
<tr>
<td class="tableblock halign-left valign-top"><p class="tableblock">Private key (非公開キー)</p></td>
<td class="tableblock halign-left valign-top"><p class="tableblock"><code>${config.private_key}</code></p></td>
</tr>
<tr>
<td class="tableblock halign-left valign-top"><p class="tableblock">Client id (クライアント ID)</p></td>
<td class="tableblock halign-left valign-top"><p class="tableblock"><code>${config.client_id}</code></p></td>
</tr>
<tr>
<td class="tableblock halign-left valign-top"><p class="tableblock">Client email (クライアントメール)</p></td>
<td class="tableblock halign-left valign-top"><p class="tableblock"><code>${config.client_email}</code></p></td>
</tr>
<tr>
<td class="tableblock halign-left valign-top"><p class="tableblock">Default Project Id (デフォルトのプロジェクト ID)</p></td>
<td class="tableblock halign-left valign-top"><p class="tableblock"><code>${config.default_project_id}</code></p></td>
</tr>
<tr>
<td class="tableblock halign-left valign-top"><p class="tableblock">Default Subscription Name (デフォルトのサブスクリプション名)</p></td>
<td class="tableblock halign-left valign-top"><p class="tableblock"><code>orders-subscription</code></p></td>
</tr>
<tr>
<td class="tableblock halign-left valign-top"><p class="tableblock">Default Topic Name (デフォルトのトピック名)</p></td>
<td class="tableblock halign-left valign-top"><p class="tableblock"><code>orders-topic</code></p></td>
</tr>
</tbody>
</table>
7. **\[OK\]**​ をクリックします。

### [](#configure-global)プロパティファイルのグローバル要素を設定する

`mule-app.properties`​ ファイルのグローバル要素を設定して、Mule がその場所を認識できるようにします。

1. **\[Global Elements (グローバル要素)\]**​ タブをクリックし、​**\[Create (作成)\]**​ をクリックします。
2. **\[Choose Global Type (グローバル種別の選択)\]**​ ダイアログで、​**\[Configuration properties (設定プロパティ)\]**​ を選択し、​**\[OK\]**​ をクリックします。
3. **\[File (ファイル)\]**​ 項目に「​`mule.app.properties`​」と入力します。
4. **\[OK\]**​ をクリックします。

## [](#create-snapshot)スナップショットの作成

この Mule フローでは要求されたサブスクリプションからスナップショットを作成します。

この例では、次の操作を使用します。

- **HTTP Listener**​  
    HTTP 要求からデータを受け入れる
- **Create snapshot**​  
    スナップショットの作成
- **Logger**​  
    **Create snapshot**​ 操作からの HTTP 応答を表示する
- **Transform Message**​  
    **Create snapshot**​ 操作の結果を JSON 形式で出力する

![Create Snapshot 操作の Studio フロー](/mulesoft/current/ja-jp/google-pubsub-connector/1.0/_images/create-snapshot-flow.png)

### [](#この例の-xml)この例の XML

この例のフローをすばやく Mule アプリケーションに読み込むには、次のコードを Studio XML エディターに貼り付けます。

```xml
<?xml version="1.0" encoding="UTF-8"?>

<mule xmlns:ee="http://www.mulesoft.org/schema/mule/ee/core"
      xmlns:pubsub="http://www.mulesoft.org/schema/mule/pubsub"
      xmlns:http="http://www.mulesoft.org/schema/mule/http"
      xmlns="http://www.mulesoft.org/schema/mule/core"
      xmlns:doc="http://www.mulesoft.org/schema/mule/documentation"
      xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
      xsi:schemaLocation="http://www.mulesoft.org/schema/mule/core http://www.mulesoft.org/schema/mule/core/current/mule.xsd
                          http://www.mulesoft.org/schema/mule/http http://www.mulesoft.org/schema/mule/http/current/mule-http.xsd
                          http://www.mulesoft.org/schema/mule/pubsub http://www.mulesoft.org/schema/mule/pubsub/current/mule-pubsub.xsd
                          http://www.mulesoft.org/schema/mule/ee/core http://www.mulesoft.org/schema/mule/ee/core/current/mule-ee.xsd">

    <http:listener-config name="HTTP_Listener_config" doc:name="HTTP Listener config">
        <http:listener-connection host="0.0.0.0" port="8081" />
    </http:listener-config>

    <pubsub:config name="Google_Pub_Sub_Configuration" doc:name="Google Pub Sub Configuration" projectId="${config.default_project_id}">
        <pubsub:connection privateKeyId="${config.private_key_id}" privateKey="${config.private_key}" clientId="${config.client_id}" clientEmail="${config.client_email}" />
    </pubsub:config>

    <configuration-properties doc:name="Configuration properties" file="mule-app.properties" />

    <flow name="create-snapshot-flow">
        <http:listener doc:name="Listener" config-ref="HTTP_Listener_config" path="/createSnapshot"/>
        <pubsub:create-snapshot
                doc:name="Create snapshot"
                config-ref="Google_Pub_Sub_Configuration"
                snapshotName="#[attributes.queryParams.snapshot]"
                subscriptionName="#[attributes.queryParams.sub]">
            <pubsub:labels ><![CDATA[#[output application/java
---
{
	"label1" : "test-snapshot-demo"
}]]]></pubsub:labels>
        </pubsub:create-snapshot>
        <logger level="INFO" doc:name="Logger" message="Created Snapshot with name: #[payload.name]"/>
        <ee:transform doc:name="Transform Message">
            <ee:message >
                <ee:set-payload ><![CDATA[%dw 2.0
output application/json
---
payload]]></ee:set-payload>
            </ee:message>
        </ee:transform>
    </flow>
</mule>
```

### [](#この例の実行手順)この例の実行手順

1. コネクタが設定されていることを確認します。
2. プロジェクトを保存します。
3. Web ブラウザーから「​ `[http://localhost:8081/](http://localhost:8081/)` ​」と入力してアプリケーションをテストします。​ **\[Create Snapshot (スナップショットを作成)\]**​ フォームが表示されます。​ **\[Snapshot Name (スナップショット名)\]**​ 項目と ​**\[Subscription Name (サブスクリプション名)\]**​ 項目は事前入力されています。
    
    ![\[Create Snapshot (スナップショットを作成)\] フォーム](_images/create-snapshot.png)
4. **\[Create Snapshot (スナップショットを作成)\]**​ をクリックします。スナップショットが正常に作成されたというアラートが表示されます。

## [](#patch-snapshot)スナップショットへのパッチ適用

この Mule フローでは、既存のスナップショットを更新します。

この例では、次の操作を使用します。

- **HTTP Listener**​  
    HTTP 要求からデータを受け取ります。
- **Patch snapshot**​  
    スナップショットを更新する
- **Transform Message**​  
    **Patch snapshot**​ 操作の結果を JSON 形式で出力する
- **Logger**​  
    **PATCH snapshot**​ 操作からの HTTP 応答を表示する

![PATCH Snapshot 操作の Studio フロー](/mulesoft/current/ja-jp/google-pubsub-connector/1.0/_images/patch-snapshot-flow.png)

### [](#この例の-xml-2)この例の XML

この例のフローをすばやく Mule アプリケーションに読み込むには、次のコードを Studio XML エディターに貼り付けます。

```xml
<?xml version="1.0" encoding="UTF-8"?>

<mule xmlns:ee="http://www.mulesoft.org/schema/mule/ee/core"
      xmlns:pubsub="http://www.mulesoft.org/schema/mule/pubsub"
      xmlns:http="http://www.mulesoft.org/schema/mule/http"
      xmlns="http://www.mulesoft.org/schema/mule/core"
      xmlns:doc="http://www.mulesoft.org/schema/mule/documentation"
      xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
      xsi:schemaLocation="http://www.mulesoft.org/schema/mule/core http://www.mulesoft.org/schema/mule/core/current/mule.xsd
                          http://www.mulesoft.org/schema/mule/http http://www.mulesoft.org/schema/mule/http/current/mule-http.xsd
                          http://www.mulesoft.org/schema/mule/pubsub http://www.mulesoft.org/schema/mule/pubsub/current/mule-pubsub.xsd
                          http://www.mulesoft.org/schema/mule/ee/core http://www.mulesoft.org/schema/mule/ee/core/current/mule-ee.xsd">

    <http:listener-config name="HTTP_Listener_config" doc:name="HTTP Listener config">
        <http:listener-connection host="0.0.0.0" port="8081" />
    </http:listener-config>

    <pubsub:config name="Google_Pub_Sub_Configuration" doc:name="Google Pub Sub Configuration" projectId="${config.default_project_id}">
        <pubsub:connection privateKeyId="${config.private_key_id}" privateKey="${config.private_key}" clientId="${config.client_id}" clientEmail="${config.client_email}" />
    </pubsub:config>

    <configuration-properties doc:name="Configuration properties" file="mule-app.properties" />

     <flow name="patch-snapshot-flow">
        <http:listener doc:name="Listener" config-ref="HTTP_Listener_config" path="/patch-snapshot"/>
        <pubsub:patch-snapshot doc:name="Patch snapshot" config-ref="Google_Pub_Sub_Configuration" updateMask="labels">
            <pubsub:snapshot><![CDATA[#[%dw 2.0
output application/json
 ---
{
  "name": "projects/<<project-name>>/snapshots/<<snapshot-name>>",
    "topic": "projects/<<project-name>>/topic/<<topic-name>>"
    "expireTime": "2099-01-01T00:00:00Z",
    "labels": {
      "label1": "test-patch-snapshot"
    }
}]]]></pubsub:snapshot>
        </pubsub:patch-snapshot>
        <ee:transform doc:name="Transform Message">
            <ee:message>
                <ee:set-payload><![CDATA[%dw 2.0
output application/json
---
payload]]></ee:set-payload>
            </ee:message>
        </ee:transform>
        <logger level="INFO" doc:name="Logger" message="Updated Snapshot: #[payload]"/>
    </flow>
</mule>
```

## [](#get-snapshot)スナップショットの取得

この Mule フローでは、既存のスナップショットを取得します。

この例では、次の操作を使用します。

- **HTTP Listener**​  
    HTTP 要求からデータを受け取ります。
- **Get snapshot**​  
    スナップショットを取得する
- **Logger**​  
    **Get snapshot**​ 操作からの HTTP 応答を表示する
- **Transform Message**​  
    **Get snapshot**​ 操作の結果を JSON 形式で出力する

![Get snapshot 操作の Studio フロー](/mulesoft/current/ja-jp/google-pubsub-connector/1.0/_images/get-snapshot-flow.png)

### [](#この例の-xml-3)この例の XML

この例のフローをすばやく Mule アプリケーションに読み込むには、次のコードを Studio XML エディターに貼り付けます。

```xml
<?xml version="1.0" encoding="UTF-8"?>

<mule xmlns:ee="http://www.mulesoft.org/schema/mule/ee/core"
      xmlns:pubsub="http://www.mulesoft.org/schema/mule/pubsub"
      xmlns:http="http://www.mulesoft.org/schema/mule/http"
      xmlns="http://www.mulesoft.org/schema/mule/core"
      xmlns:doc="http://www.mulesoft.org/schema/mule/documentation"
      xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
      xsi:schemaLocation="http://www.mulesoft.org/schema/mule/core http://www.mulesoft.org/schema/mule/core/current/mule.xsd
                          http://www.mulesoft.org/schema/mule/http http://www.mulesoft.org/schema/mule/http/current/mule-http.xsd
                          http://www.mulesoft.org/schema/mule/pubsub http://www.mulesoft.org/schema/mule/pubsub/current/mule-pubsub.xsd
                          http://www.mulesoft.org/schema/mule/ee/core http://www.mulesoft.org/schema/mule/ee/core/current/mule-ee.xsd">

    <http:listener-config name="HTTP_Listener_config" doc:name="HTTP Listener config">
        <http:listener-connection host="0.0.0.0" port="8081" />
    </http:listener-config>

    <pubsub:config name="Google_Pub_Sub_Configuration" doc:name="Google Pub Sub Configuration" projectId="${config.default_project_id}">
        <pubsub:connection privateKeyId="${config.private_key_id}" privateKey="${config.private_key}" clientId="${config.client_id}" clientEmail="${config.client_email}" />
    </pubsub:config>

    <configuration-properties doc:name="Configuration properties" file="mule-app.properties" />

    <flow name="get-snapshot-flow">
        <http:listener doc:name="Listener" config-ref="HTTP_Listener_config" path="/getSnapshot"/>
        <pubsub:get-snapshot doc:name="Get snapshot" config-ref="Google_Pub_Sub_Configuration" snapshotName="#[attributes.queryParams.getsnapshot]"/>
        <logger level="INFO" doc:name="Logger" message="Received Snapshot Topic: #[payload.topic]"/>
        <ee:transform doc:name="Transform Message">
            <ee:message >
                <ee:set-payload ><![CDATA[%dw 2.0
output application/json
---
payload]]></ee:set-payload>
            </ee:message>
        </ee:transform>
    </flow>
</mule>
```

### [](#この例の実行手順-2)この例の実行手順

1. コネクタが設定されていることを確認します。
2. プロジェクトを保存します。
3. Web ブラウザーから「​ `[http://localhost:8081/](http://localhost:8081/)`​ 」と入力してアプリケーションをテストします。​ **\[GET Snapshot (スナップショットを取得)\]**​ フォームが表示されます。​ **\[Snapshot Name (スナップショット名)\]**​ 項目は事前入力されています。
    
    ![\[GET Snapshot (スナップショットを取得)\] フォーム](_images/get-snapshot.png)
4. **\[GET Snapshot (スナップショットを取得)\]**​ をクリックします。スナップショットが正常に取得されたというアラートが表示されます。

## [](#delete-snapshot)スナップショットの削除

この Mule フローでは、既存のスナップショットを削除します。

この例では、次の操作を使用します。

- **HTTP Listener**​  
    HTTP 要求からデータを受け取ります。
- **Delete snapshot**​  
    スナップショットを削除する

![Delete Snapshot 操作の Studio フロー](/mulesoft/current/ja-jp/google-pubsub-connector/1.0/_images/delete-snapshot-flow.png)

### [](#この例の-xml-4)この例の XML

この例のフローをすばやく Mule アプリケーションに読み込むには、次のコードを Studio XML エディターに貼り付けます。

```xml
<?xml version="1.0" encoding="UTF-8"?>

<mule xmlns:ee="http://www.mulesoft.org/schema/mule/ee/core"
      xmlns:pubsub="http://www.mulesoft.org/schema/mule/pubsub"
      xmlns:http="http://www.mulesoft.org/schema/mule/http"
      xmlns="http://www.mulesoft.org/schema/mule/core"
      xmlns:doc="http://www.mulesoft.org/schema/mule/documentation"
      xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
      xsi:schemaLocation="http://www.mulesoft.org/schema/mule/core http://www.mulesoft.org/schema/mule/core/current/mule.xsd
                          http://www.mulesoft.org/schema/mule/http http://www.mulesoft.org/schema/mule/http/current/mule-http.xsd
                          http://www.mulesoft.org/schema/mule/pubsub http://www.mulesoft.org/schema/mule/pubsub/current/mule-pubsub.xsd
                          http://www.mulesoft.org/schema/mule/ee/core http://www.mulesoft.org/schema/mule/ee/core/current/mule-ee.xsd">

    <http:listener-config name="HTTP_Listener_config" doc:name="HTTP Listener config">
        <http:listener-connection host="0.0.0.0" port="8081" />
    </http:listener-config>

    <pubsub:config name="Google_Pub_Sub_Configuration" doc:name="Google Pub Sub Configuration" projectId="${config.default_project_id}">
        <pubsub:connection privateKeyId="${config.private_key_id}" privateKey="${config.private_key}" clientId="${config.client_id}" clientEmail="${config.client_email}" />
    </pubsub:config>

    <configuration-properties doc:name="Configuration properties" file="mule-app.properties" />

    <flow name="delete-snapshot-flow">
        <http:listener doc:name="Listener" config-ref="HTTP_Listener_config" path="/deleteSnapshot"/>
        <pubsub:delete-snapshot doc:name="Delete snapshot" config-ref="Google_Pub_Sub_Configuration" snapshotName="#[attributes.queryParams.deletesnapshot]"/>
    </flow>
</mule>
```

### [](#この例の実行手順-3)この例の実行手順

1. コネクタが設定されていることを確認します。
2. プロジェクトを保存します。
3. Web ブラウザーから「​ `[http://localhost:8081/](http://localhost:8081/)`​ 」と入力してアプリケーションをテストします。​ **\[Delete Snapshot (スナップショットを削除)\]**​ フォームが表示されます。​ **\[Snapshot Name (スナップショット名)\]**​ 項目は事前入力されています。
    
    ![\[Delete Snapshot (スナップショットを削除)\] フォーム](_images/delete-snapshot.png)
4. **\[Delete Snapshot (スナップショットを削除)\]**​ をクリックします。スナップショットが正常に削除されたというアラートが表示されます。

## [](#publish-message)メッセージのパブリッシュ

この Mule フローでは、1 つのメッセージを選択されたトピックにパブリッシュします。

この例では、次の操作を使用します。

- **HTTP Listener**​  
    HTTP 要求からデータを受け取ります。
- **Publish Message**​  
    メッセージをパブリッシュする

![Publish Message 操作の Studio フロー](/mulesoft/current/ja-jp/google-pubsub-connector/1.0/_images/publish-message-flow.png)

### [](#この例の-xml-5)この例の XML

この例のフローをすばやく Mule アプリケーションに読み込むには、次のコードを Studio XML エディターに貼り付けます。

```xml
<?xml version="1.0" encoding="UTF-8"?>

<mule xmlns:ee="http://www.mulesoft.org/schema/mule/ee/core"
      xmlns:pubsub="http://www.mulesoft.org/schema/mule/pubsub"
      xmlns:http="http://www.mulesoft.org/schema/mule/http"
      xmlns="http://www.mulesoft.org/schema/mule/core"
      xmlns:doc="http://www.mulesoft.org/schema/mule/documentation"
      xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
      xsi:schemaLocation="http://www.mulesoft.org/schema/mule/core http://www.mulesoft.org/schema/mule/core/current/mule.xsd
                          http://www.mulesoft.org/schema/mule/http http://www.mulesoft.org/schema/mule/http/current/mule-http.xsd
                          http://www.mulesoft.org/schema/mule/pubsub http://www.mulesoft.org/schema/mule/pubsub/current/mule-pubsub.xsd
                          http://www.mulesoft.org/schema/mule/ee/core http://www.mulesoft.org/schema/mule/ee/core/current/mule-ee.xsd">

    <http:listener-config name="HTTP_Listener_config" doc:name="HTTP Listener config">
        <http:listener-connection host="0.0.0.0" port="8081" />
    </http:listener-config>

    <pubsub:config name="Google_Pub_Sub_Configuration" doc:name="Google Pub Sub Configuration" projectId="${config.default_project_id}">
        <pubsub:connection privateKeyId="${config.private_key_id}" privateKey="${config.private_key}" clientId="${config.client_id}" clientEmail="${config.client_email}" />
    </pubsub:config>

    <configuration-properties doc:name="Configuration properties" file="mule-app.properties" />

    <flow name="publish-message-flow">
        <http:listener doc:name="Listener" config-ref="HTTP_Listener_config" path="/message"/>
        <pubsub:publish-message
                doc:name="Publish Message"
                config-ref="Google_Pub_Sub_Configuration"
                topicName="#[attributes.queryParams.topicname]"
                orderingKey="#[attributes.queryParams.orderkey]">
            <pubsub:message ><![CDATA[#[attributes.queryParams.message]]]></pubsub:message>
        </pubsub:publish-message>
    </flow>
</mule>
```

### [](#この例の実行手順-4)この例の実行手順

1. コネクタが設定されていることを確認します。
2. プロジェクトを保存します。
3. Web ブラウザーから「​ `[http://localhost:8081/](http://localhost:8081/)`​ 」と入力してアプリケーションをテストします。​**\[Publish Message (メッセージをパブリッシュ)\]**​ フォームが表示されます。​**\[Topic Name (トピック名)\]**​、​**\[Ordering Key (順序キー)\]**​、および ​**\[Message (メッセージ)\]**​ 項目は事前入力されています。
    
    ![\[Publish Message (メッセージをパブリッシュ)\] フォーム](_images/publish-message.png)
4. **\[Publish Message (メッセージをパブリッシュ)\]**​ をクリックします。スナップショットが正常にパブリッシュされたというアラートが表示されます。

## [](#関連情報)関連情報

- [Anypoint Connector の概要](https://docs.mulesoft.com/connectors/introduction/introduction-to-anypoint-connectors)
- [MuleSoft ヘルプセンター](https://help.mulesoft.com)