Compute Engine 使用状況データのエクスポート バケットを設定および取得する
bookmark_borderbookmark
コレクションでコンテンツを整理
必要に応じて、コンテンツの保存と分類を行います。
このサンプルでは、プロジェクトの Compute Engine 使用状況データのエクスポート バケットを設定および取得する方法を説明します。使用状況データのエクスポート バケットは、Compute Engine の使用状況レポートが保存される Google Cloud Storage バケットです。使用状況レポートは、請求と費用の管理のために使用できます。
コードサンプル
特に記載のない限り、このページのコンテンツはクリエイティブ・コモンズの表示 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 sample demonstrates how to configure a Google Cloud Storage bucket to store Compute Engine usage reports."],["Usage reports stored in the designated bucket can be used to manage billing and costs related to Compute Engine."],["The `set_usage_export_bucket` function allows you to specify the bucket and an optional report name prefix, which defaults to \"usage_gce\" if not specified."],["The `get_usage_export_bucket` function retrieves the current usage export settings, automatically replacing an empty report name prefix with the default \"usage_gce\"."],["Authentication to Compute Engine uses Application Default Credentials."]]],[]]