mirror of
https://github.com/imjasonh/gcloud-help
synced 2026-07-16 12:22:03 +00:00
gcloud: Wed Aug 3 09:18:38 UTC 2022
This commit is contained in:
parent
3513fd1c11
commit
3b2f526372
151 changed files with 4150 additions and 308 deletions
|
|
@ -3,9 +3,12 @@ NAME
|
|||
|
||||
SYNOPSIS
|
||||
gcloud beta logging buckets update BUCKET_ID --location=LOCATION
|
||||
[--add-index=[KEY=VALUE, ...,...]] [--clear-indexes]
|
||||
[--description=DESCRIPTION] [--locked]
|
||||
[--remove-indexes=[FIELD PATH,...]]
|
||||
[--restricted-fields=[RESTRICTED_FIELD,...]]
|
||||
[--retention-days=RETENTION_DAYS] [GCLOUD_WIDE_FLAG ...]
|
||||
[--retention-days=RETENTION_DAYS] [--update-index=[KEY=VALUE, ...,...]]
|
||||
[GCLOUD_WIDE_FLAG ...]
|
||||
|
||||
DESCRIPTION
|
||||
(BETA) Updates the properties of a bucket.
|
||||
|
|
@ -16,6 +19,26 @@ EXAMPLES
|
|||
$ gcloud beta logging buckets update my-bucket --location=global \
|
||||
--description=my-new-description
|
||||
|
||||
To update a bucket in your project and remove all indexes, run:
|
||||
|
||||
$ gcloud beta logging buckets update my-bucket --location=global \
|
||||
--clear-indexes
|
||||
|
||||
To update a bucket in your project and remove an index, run:
|
||||
|
||||
$ gcloud beta logging buckets update my-bucket --location=global \
|
||||
--remove-indexes=jsonPayload.foo2
|
||||
|
||||
To update a bucket in your project and add an index, run:
|
||||
|
||||
$ gcloud beta logging buckets update my-bucket --location=global \
|
||||
--add-index=fieldPath=jsonPayload.foo2,type=INDEX_TYPE_STRING
|
||||
|
||||
To update a bucket in your project and update an existing index, run:
|
||||
|
||||
$ gcloud beta logging buckets update my-bucket --location=global \
|
||||
--update-index=fieldPath=jsonPayload.foo,type=INDEX_TYPE_INTEGER
|
||||
|
||||
POSITIONAL ARGUMENTS
|
||||
BUCKET_ID
|
||||
The id of the bucket to update.
|
||||
|
|
@ -25,6 +48,25 @@ REQUIRED FLAGS
|
|||
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.
|
||||
|
||||
--description=DESCRIPTION
|
||||
A new description for the bucket.
|
||||
|
||||
|
|
@ -32,12 +74,33 @@ OPTIONAL FLAGS
|
|||
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 createTime 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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue