gcloud compute project-info set-usage-bucket
--bucket
BUCKET
]--format
FORMAT
]--help
]--prefix
PREFIX
]--project
PROJECT_ID
]--quiet
, -q
]--trace-token
TRACE_TOKEN
]-h
]gcloud compute project-info set-usage-bucket
is used to configure usage reporting for projects.$ gcloud compute project-info set-usage-bucket --bucket gs://my-bucket
my-bucket
. To disable this feature, issue the command:$ gcloud compute project-info set-usage-bucket --bucket
--bucket
[BUCKET
]
$ gcloud compute project-info set-usage-bucket --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.
--format
FORMAT
json
, text
, yaml
.
--help
--project
PROJECT_ID
--quiet
, -q
--trace-token
TRACE_TOKEN
-h
compute
component. See
installing components
if it is not installed.