Please note that the contents of this offline web site may be out of date. To access the most recent documentation visit the online version .
Note that links that point to online resources are green in color and will open in a new window.
We would love it if you could give us feedback about this material by filling this form (You have to be online to fill it)



gcloud compute project-info set-usage-bucket

NAME
gcloud-compute-project-info-set-usage-bucket - Set the usage reporting bucket for a project
SYNOPSIS
gcloud compute project-info set-usage-bucket
  --bucket [BUCKET]
  [--format FORMAT]
  [--help]
  [--prefix PREFIX]
  [--project PROJECT]
  [--quiet, -q]
  [-h]
DESCRIPTION
gcloud compute project-info set-usage-bucket is used to configure 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,
$ gcloud compute project-info set-usage-bucket \
    --bucket gs://my-bucket
will cause logs of the form usage_gce_YYYYMMDD.csv to be written daily to the bucket “my-bucket”. To disable this feature, issue the command:
$ gcloud compute project-info set-usage-bucket --bucket
FLAGS
--bucket [BUCKET]
The URI of a Google Cloud Storage bucket where the usage report object should be stored. 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, specify this flag without an argument:
$ gcloud compute project-info set-usage-bucket --bucket
--format FORMAT
Specify a format for printed output. By default, a command-specific human-friendly output format is used. Setting this flag to one of the available options will serialize the result of the command in the chosen format and print it to stdout. Supported formats are: "json", "text", "yaml".
--help
Display detailed help.
--prefix PREFIX
An optional prefix for the name of the usage report object stored in the bucket. If not supplied, then this defaults to “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.
--project PROJECT
Google Cloud Platform project to use for this invocation.
--quiet
Disable all interactive prompts when running gcloud commands. If input is required, defaults will be used, or an error will be raised.
-h
Print a summary help and exit.

Authentication required

You need to be signed in with Google+ to do that.

Signing you in...

Google Developers needs your permission to do that.