mirror of
https://github.com/imjasonh/gcloud-help
synced 2026-07-16 12:22:03 +00:00
gcloud: Wed Mar 1 10:23:17 UTC 2023
This commit is contained in:
parent
7664984b79
commit
bdaa0b3cfc
230 changed files with 8963 additions and 242 deletions
|
|
@ -2,9 +2,9 @@ NAME
|
|||
gcloud beta logging buckets create - create a bucket
|
||||
|
||||
SYNOPSIS
|
||||
gcloud beta logging buckets create BUCKET_ID --location=LOCATION
|
||||
gcloud beta logging buckets create BUCKET_ID --location=LOCATION [--async]
|
||||
[--cmek-kms-key-name=CMEK_KMS_KEY_NAME] [--description=DESCRIPTION]
|
||||
[--index=[KEY=VALUE, ...,...]]
|
||||
[--enable-analytics] [--index=[KEY=VALUE, ...,...]]
|
||||
[--restricted-fields=[RESTRICTED_FIELD,...]]
|
||||
[--retention-days=RETENTION_DAYS] [GCLOUD_WIDE_FLAG ...]
|
||||
|
||||
|
|
@ -37,6 +37,11 @@ EXAMPLES
|
|||
$ gcloud beta logging buckets create my-bucket \
|
||||
--location=us-central1 --cmek-kms-key-name=CMEK_KMS_KEY_NAME
|
||||
|
||||
To asynchronously create a bucket enrolled into Log Analytics, run:
|
||||
|
||||
$ gcloud beta logging buckets create my-bucket --location=global \
|
||||
--async --enable-analytics
|
||||
|
||||
POSITIONAL ARGUMENTS
|
||||
BUCKET_ID
|
||||
ID of the bucket to create.
|
||||
|
|
@ -47,12 +52,20 @@ REQUIRED FLAGS
|
|||
location cannot be changed.
|
||||
|
||||
OPTIONAL FLAGS
|
||||
--async
|
||||
Return immediately, without waiting for the operation in progress to
|
||||
complete.
|
||||
|
||||
--cmek-kms-key-name=CMEK_KMS_KEY_NAME
|
||||
A valid kms_key_name will enable CMEK for the bucket.
|
||||
|
||||
--description=DESCRIPTION
|
||||
A textual description for the bucket.
|
||||
|
||||
--enable-analytics
|
||||
Whether to opt the bucket into Log Analytics. Once opted in, the bucket
|
||||
cannot be opted out of Log Analytics.
|
||||
|
||||
--index=[KEY=VALUE, ...,...]
|
||||
Specify an index to be added to the log bucket. This flag can be
|
||||
repeated. The fieldPath and type attributes are required. For example:
|
||||
|
|
|
|||
|
|
@ -3,9 +3,9 @@ NAME
|
|||
|
||||
SYNOPSIS
|
||||
gcloud beta logging buckets update BUCKET_ID --location=LOCATION
|
||||
[--add-index=[KEY=VALUE, ...,...]] [--clear-indexes]
|
||||
[--add-index=[KEY=VALUE, ...,...]] [--async] [--clear-indexes]
|
||||
[--cmek-kms-key-name=CMEK_KMS_KEY_NAME] [--description=DESCRIPTION]
|
||||
[--locked] [--remove-indexes=[FIELD PATH,...]]
|
||||
[--enable-analytics] [--locked] [--remove-indexes=[FIELD PATH,...]]
|
||||
[--restricted-fields=[RESTRICTED_FIELD,...]]
|
||||
[--retention-days=RETENTION_DAYS] [--update-index=[KEY=VALUE, ...,...]]
|
||||
[GCLOUD_WIDE_FLAG ...]
|
||||
|
|
@ -44,6 +44,11 @@ EXAMPLES
|
|||
$ gcloud beta logging buckets update my-bucket --location=global \
|
||||
--cmek-kms-key-name=CMEK_KEY_NAME
|
||||
|
||||
To asynchronously enroll a bucket in your project into Log Analytics, run:
|
||||
|
||||
$ gcloud beta logging buckets update my-bucket --location=global \
|
||||
--async --enable-analytics
|
||||
|
||||
POSITIONAL ARGUMENTS
|
||||
BUCKET_ID
|
||||
The id of the bucket to update.
|
||||
|
|
@ -69,6 +74,10 @@ OPTIONAL FLAGS
|
|||
The type of data in this index. For example: INDEX_TYPE_STRING
|
||||
Supported types are strings and integers.
|
||||
|
||||
--async
|
||||
Return immediately, without waiting for the operation in progress to
|
||||
complete.
|
||||
|
||||
--clear-indexes
|
||||
Remove all logging indexes from the bucket.
|
||||
|
||||
|
|
@ -78,6 +87,10 @@ OPTIONAL FLAGS
|
|||
--description=DESCRIPTION
|
||||
A new description for the bucket.
|
||||
|
||||
--enable-analytics
|
||||
Whether to opt the bucket into Log Analytics. Once opted in, the bucket
|
||||
cannot be opted out of Log Analytics.
|
||||
|
||||
--locked
|
||||
Lock the bucket and prevent it from being modified or deleted (unless
|
||||
it is empty).
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue