ステップ 4: プロキシをデプロイする
前のステップで、API プロキシに ExtensionCallout ポリシーを追加しました。次は、プロキシをデプロイしてテストできるようにします。
プロキシをデプロイするには:
- [Deployment] プルダウンをクリックして、API プロキシを「test」環境にデプロイします。
- [Trace] タブをクリックします。
- [Trace] タブで、[Start Trace Session] をクリックします。
- プロキシ URL の横にある [Send] をクリックして、API プロキシにリクエストを送信します。
- テストが成功して、プロキシから 200 が返されたことを確認します。
- [Trace] で、ExtensionCallout ポリシーの実行ステップまで移動します。
- [Phase Details] で
ConnectorCallout.request
プロパティを見つけて、その値が <Input>
要素の内容であることを確認します。

- GCP Console を開き、GCP プロジェクトに移動します。
- メインのナビゲーション メニューから、[Stackdriver] > [Logging] > [ログ] を選択します。
- ログページの左側にある [リソース] プルダウンを選択し、[グローバル] をクリックします。
- 右側にあるログのプルダウンから [example-log] を選択します。
- 次の例に示すように、ログリストにログエントリが表示されます。

次のステップ
ステップ 1
ステップ 2
ステップ 3
ステップ 4
ステップ 5: メッセージ フロー変数をログに記録する
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2020-07-09 UTC.
[{
"type": "thumb-down",
"id": "missingTheInformationINeed",
"label":"必要な情報がない"
},{
"type": "thumb-down",
"id": "tooComplicatedTooManySteps",
"label":"複雑すぎる / 手順が多すぎる"
},{
"type": "thumb-down",
"id": "outOfDate",
"label":"最新ではない"
},{
"type": "thumb-down",
"id": "translationIssue",
"label":"翻訳に関する問題"
},{
"type": "thumb-down",
"id": "samplesCodeIssue",
"label":"サンプル / コードに問題がある"
},{
"type": "thumb-down",
"id": "otherDown",
"label":"その他"
}]
[{
"type": "thumb-up",
"id": "easyToUnderstand",
"label":"わかりやすい"
},{
"type": "thumb-up",
"id": "solvedMyProblem",
"label":"問題の解決に役立った"
},{
"type": "thumb-up",
"id": "otherUp",
"label":"その他"
}]