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

111 lines
4.1 KiB
Text

NAME
gcloud alpha logging buckets update - updates a bucket
SYNOPSIS
gcloud alpha logging buckets update BUCKET_ID --location=LOCATION
[--add-index=[KEY=VALUE, ...,...]] [--clear-indexes]
[--cmek-kms-key-name=CMEK_KMS_KEY_NAME] [--description=DESCRIPTION]
[--enable-loglink] [--locked] [--remove-indexes=[FIELD PATH,...]]
[--restricted-fields=[RESTRICTED_FIELD,...]]
[--retention-days=RETENTION_DAYS] [--update-index=[KEY=VALUE, ...,...]]
[GCLOUD_WIDE_FLAG ...]
DESCRIPTION
(ALPHA) Updates the properties of a bucket.
EXAMPLES
To update a bucket in your project, run:
$ gcloud alpha 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
--add-index=[KEY=VALUE, ...,...]
Add an index to be added to the log bucket. This flag can be repeated.
The fieldPath and type attributes are required. For example
--index=fieldPath=jsonPayload.foo,type=INDEX_TYPE_STRING. The following
keys are accepted:
fieldPath
The LogEntry field path to index.For example:
jsonPayload.request.status. Paths are limited to 800 characters and
can include only letters, digits, underscores, hyphens, and
periods.
type
The type of data in this index.For example: INDEX_TYPE_STRING
Supported types are Strings and Integers.
--clear-indexes
Remove all logging indexes from the bucket.
--cmek-kms-key-name=CMEK_KMS_KEY_NAME
A valid kms_key_name will enable CMEK for the bucket.
--description=DESCRIPTION
A new description for the bucket.
--enable-loglink
Enables a linked dataset in BigQuery corresponding to this log bucket.
The linked dataset contains authorized views which give a ready-only
access to logs in BigQuery. This option can only be enabled in a log
bucket with advanced log analytics enabled. Use --no-enable-loglink to
disable the linked dataset.
--locked
Lock the bucket and prevent it from being modified or deleted (unless
it is empty).
--remove-indexes=[FIELD PATH,...]
Specify the field path of the Logging index(es) to delete.
--restricted-fields=[RESTRICTED_FIELD,...]
A new set of restricted fields for the bucket.
--retention-days=RETENTION_DAYS
A new retention period for the bucket.
--update-index=[KEY=VALUE, ...,...]
Update an index to be added to the log bucket. This will update the
type of the index, and also update its create time to the new update
time.This flag can be repeated. The fieldPath and type attributes are
required. For example
--index=fieldPath=jsonPayload.foo,type=INDEX_TYPE_STRING. The following
keys are accepted:
fieldPath
The LogEntry field path to index. For example:
jsonPayload.request.status. Paths are limited to 800 characters and
can include only letters, digits, underscores, hyphens, and
periods.
type
The type of data in this index. For example: INDEX_TYPE_STRING
Supported types are Strings and Integers.
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
This command is currently in alpha and might change without notice. If this
command fails with API permission errors despite specifying the correct
project, you might be trying to access an API with an invitation-only early
access allowlist. These variants are also available:
$ gcloud logging buckets update
$ gcloud beta logging buckets update