IAM データを含む Cloud Audit Log イベントを受信して処理するイベント ハンドラを作成する
コレクションでコンテンツを整理
必要に応じて、コンテンツの保存と分類を行います。
HTTP POST リクエスト内で Cloud Audit Logs 受信イベントを CloudEvent として受け取るイベント ハンドラを作成します。
コードサンプル
Go
Eventarc に対する認証を行うには、アプリケーションのデフォルト認証情報を設定します。詳細については、ローカル開発環境の認証の設定をご覧ください。
Python
Eventarc に対する認証を行うには、アプリケーションのデフォルト認証情報を設定します。詳細については、ローカル開発環境の認証の設定をご覧ください。
特に記載のない限り、このページのコンテンツはクリエイティブ・コモンズの表示 4.0 ライセンスにより使用許諾されます。コードサンプルは Apache 2.0 ライセンスにより使用許諾されます。詳しくは、Google Developers サイトのポリシーをご覧ください。Java は Oracle および関連会社の登録商標です。
[[["わかりやすい","easyToUnderstand","thumb-up"],["問題の解決に役立った","solvedMyProblem","thumb-up"],["その他","otherUp","thumb-up"]],[["わかりにくい","hardToUnderstand","thumb-down"],["情報またはサンプルコードが不正確","incorrectInformationOrSampleCode","thumb-down"],["必要な情報 / サンプルがない","missingTheInformationSamplesINeed","thumb-down"],["翻訳に関する問題","translationIssue","thumb-down"],["その他","otherDown","thumb-down"]],[],[[["This content demonstrates how to create an event handler that processes incoming Cloud Audit Log events received as CloudEvents via an HTTP POST request."],["The code examples, provided in both Go and Python, illustrate how to transform an HTTP request into a CloudEvent and extract the LogEntryData from it."],["The examples show how to identify the user that requested a service account key creation, as well as the key's resource name and the key path that can be used with gcloud to disable or delete it."],["The content highlights the use of Application Default Credentials for authentication to Eventarc, along with a link to setup instructions for a local development environment."]]],[]]