1
0
Fork 0
mirror of https://github.com/imjasonh/gcloud-help synced 2026-07-08 18:45:13 +00:00
gcloud-help/gcloud/logging/buckets/update
2022-03-01 04:29:52 +00:00

55 lines
1.5 KiB
Text

NAME
gcloud logging buckets update - updates a bucket
SYNOPSIS
gcloud logging buckets update BUCKET_ID --location=LOCATION
[--description=DESCRIPTION] [--locked]
[--restricted-fields=[RESTRICTED_FIELD,...]]
[--retention-days=RETENTION_DAYS] [GCLOUD_WIDE_FLAG ...]
DESCRIPTION
Updates the properties of a bucket.
EXAMPLES
To update a bucket in your project, run:
$ gcloud logging buckets update my-bucket --location=global \
--description=my-new-description
POSITIONAL ARGUMENTS
BUCKET_ID
The id of the bucket to update.
REQUIRED FLAGS
--location=LOCATION
Location of the bucket.
OPTIONAL FLAGS
--description=DESCRIPTION
A new description for the bucket.
--locked
Lock the bucket and prevent it from being modified or deleted (unless
it is empty).
--restricted-fields=[RESTRICTED_FIELD,...]
A new set of restricted fields for the bucket.
--retention-days=RETENTION_DAYS
A new retention period for the bucket.
GCLOUD WIDE FLAGS
These flags are available to all commands: --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.
NOTES
These variants are also available:
$ gcloud alpha logging buckets update
$ gcloud beta logging buckets update