関数のトリガーを指定することで、さまざまなシナリオに対応して実行されるように Cloud Run functions を設定できます。トリガーは、HTTP(S) リクエストまたはサポートされている複数のイベントのいずれかです。このページでは、Cloud Run functions でサポートされているトリガーの概要について説明します。
Cloud Run functions は Pub/Sub トピックのメッセージによってトリガーできるため、Cloud Run functions をイベントバスとして Pub/Sub をサポートする他の Google サービスと統合できます。また、HTTP トリガーを使用して、HTTP コールバックを提供するサービス(Webhook)と統合することもできます。以下のセクションでは、統合の例について説明します。
[[["わかりやすい","easyToUnderstand","thumb-up"],["問題の解決に役立った","solvedMyProblem","thumb-up"],["その他","otherUp","thumb-up"]],[["わかりにくい","hardToUnderstand","thumb-down"],["情報またはサンプルコードが不正確","incorrectInformationOrSampleCode","thumb-down"],["必要な情報 / サンプルがない","missingTheInformationSamplesINeed","thumb-down"],["翻訳に関する問題","translationIssue","thumb-down"],["その他","otherDown","thumb-down"]],["最終更新日 2025-04-10 UTC。"],[[["Cloud Run functions can be triggered by HTTP(S) requests or various events within your Google Cloud project."],["Triggers are categorized into HTTP triggers for HTTP(S) requests and event triggers for events within the Google Cloud project."],["You can only bind one trigger to a single function at a time, but you can deploy multiple functions with the same trigger settings for parallel execution."],["Cloud Run functions support a variety of event triggers, including Pub/Sub, Cloud Storage, Firestore, and several Firebase-related triggers."],["Functions can be integrated with any Google service that supports Pub/Sub or any external service with HTTP callbacks by using Pub/Sub or HTTP triggers, respectively."]]],[]]