Stay organized with collections Save and categorize content based on your preferences.
gcloud alpha compute project-info set-usage-bucket
(--bucket
=BUCKET
| --no-bucket
) [--prefix
=PREFIX
] [GCLOUD_WIDE_FLAG …
]
(ALPHA)
gcloud alpha compute project-info set-usage-bucket
configures usage reporting for projects.
Setting usage reporting will cause a log of usage per resource to be written to a specified Google Cloud Storage bucket daily.
For example, to write daily logs of the form usage_gce_YYYYMMDD.csv to the bucket my-bucket
, run:
gcloud compute project-info set-usage-bucket --bucket=gs://my-bucket
To disable this feature, issue the command:
gcloud compute project-info set-usage-bucket --no-bucket
--bucket
=BUCKET
my-bucket
, or the bucket name with gs://
or https://storage.googleapis.com/
in front of it, such as gs://my-bucket
. The Google Service Account for performing usage reporting is granted write access to this bucket. The user running this command must be an owner of the bucket.
To clear the usage bucket, use --no-bucket
.
--no-bucket
--prefix
=PREFIX
usage
. The report is stored as a CSV file named PREFIX_gce_YYYYMMDD.csv where YYYYMMDD is the day of the usage according to Pacific Time. The prefix should conform to Google Cloud Storage object naming conventions. This flag must not be provided when clearing the usage bucket.
--access-token-file
, --account
, --billing-project
, --configuration
, --flags-file
, --flatten
, --format
, --help
, --impersonate-service-account
, --log-http
, --project
, --quiet
, --trace-token
, --user-output-enabled
, --verbosity
.
Run $ gcloud help
for details.
gcloud compute project-info set-usage-bucket
gcloud beta compute project-info set-usage-bucket
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 2025-05-07 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-05-07 UTC."],[],[]]
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4