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

67 lines
2.2 KiB
Text

NAME
gcloud beta logging buckets create - creates a bucket
SYNOPSIS
gcloud beta logging buckets create BUCKET_ID --location=LOCATION
[--description=DESCRIPTION]
[--restricted-fields=[RESTRICTED_FIELD,...]]
[--retention-days=RETENTION_DAYS] [GCLOUD_WIDE_FLAG ...]
DESCRIPTION
(BETA) After creating a bucket, use a log sink to route logs into the
bucket.
EXAMPLES
To create a bucket 'my-bucket' in location 'global', run:
$ gcloud beta logging buckets create my-bucket --location=global \
--description="my custom bucket"
To create a bucket with extended retention, run:
$ gcloud beta logging buckets create my-bucket --location=global \
--retention-days=365
To create a bucket in cloud region 'us-central1', run:
$ gcloud beta logging buckets create my-bucket --location=us-central1
POSITIONAL ARGUMENTS
BUCKET_ID
ID of the bucket to create.
REQUIRED FLAGS
--location=LOCATION
Location in which to create the bucket. Once the bucket is created, the
location cannot be changed.
OPTIONAL FLAGS
--description=DESCRIPTION
A textual description for the bucket.
--restricted-fields=[RESTRICTED_FIELD,...]
Comma-separated list of field paths that require permission checks in
this bucket. The following fields and their children are eligible:
textPayload, jsonPayload, protoPayload, httpRequest, labels,
sourceLocation.
--retention-days=RETENTION_DAYS
The period logs will be retained, after which logs will automatically
be deleted. The default is 30 days.
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 beta and might change without notice. These
variants are also available:
$ gcloud logging buckets create
$ gcloud alpha logging buckets create