1
0
Fork 0
mirror of https://github.com/imjasonh/gcloud-help synced 2026-07-08 10:35:03 +00:00
gcloud-help/gcloud/scc/bqexports/create
2022-03-01 21:43:54 +00:00

111 lines
4.4 KiB
Text

NAME
gcloud scc bqexports create - create a Cloud Security Command Center
BigQuery export
SYNOPSIS
gcloud scc bqexports create BIG_QUERY_EXPORT --dataset=DATASET
[--description=DESCRIPTION] [--filter=FILTER]
[--folder=FOLDER | --organization=ORGANIZATION | --project=PROJECT]
[GCLOUD_WIDE_FLAG ...]
DESCRIPTION
Create a Cloud Security Command Center BigQuery export.
EXAMPLES
To create a BigQuery export my-bq-export given organization 123 with a
dataset abc in project 234 and filter on category that equals to
XSS_SCRIPTING, run:
$ gcloud scc bqexports create my-bq-export \
--organization=organizations/123 \
--dataset=projects/234/datasets/abc \
--description="This is a test BigQuery export" \
--filter="category=\"XSS_SCRIPTING\""
$ gcloud scc bqexports create my-bq-export --organization=123 \
--dataset=projects/234/datasets/abc \
--description="This is a test BigQuery export" \
--filter="category=\"XSS_SCRIPTING\""
$ gcloud scc bqexports create \
organizations/123/bigQueryExports/my-bq-export \
--dataset=projects/234/datasets/abc \
--description="This is a test BigQuery export" \
--filter="category=\"XSS_SCRIPTING\""
To create a BigQuery export my-bq-export given folder 456 with a dataset
abc in project 234 and filter on category that equals to XSS_SCRIPTING,
run:
$ gcloud scc bqexports create my-bq-export --folder=folders/456 \
--dataset=projects/234/datasets/abc \
--description="This is a test BigQuery export" \
--filter="category=\"XSS_SCRIPTING\""
$ gcloud scc bqexports create my-bq-export --folder=456 \
--dataset=projects/234/datasets/abc \
--description="This is a test BigQuery export" \
--filter="category=\"XSS_SCRIPTING\""
$ gcloud scc bqexports create \
folders/456/bigQueryExports/my-bq-export \
--dataset=projects/234/datasets/abc \
--description="This is a test BigQuery export" \
--filter="category=\"XSS_SCRIPTING\""
To create a BigQuery export my-bq-export given project 789 with a dataset
abc in project 234 and filter on category that equals to XSS_SCRIPTING,
run:
$ gcloud scc bqexports create my-bq-export --project=projects/789 \
--dataset=projects/234/datasets/abc \
--description="This is a test BigQuery export" \
--filter="category=\"XSS_SCRIPTING\""
$ gcloud scc bqexports create my-bq-export --project=789 \
--dataset=projects/234/datasets/abc \
--description="This is a test BigQuery export" \
--filter="category=\"XSS_SCRIPTING\""
$ gcloud scc bqexports create \
projects/789/bigQueryExports/my-bq-export \
--dataset=projects/234/datasets/abc \
--description="This is a test BigQuery export" \
--filter="category=\"XSS_SCRIPTING\""
POSITIONAL ARGUMENTS
BIG_QUERY_EXPORT
ID of the BigQuery export or the full resource name of the BigQuery
export.
REQUIRED FLAGS
--dataset=DATASET
The dataset to write findings updates to.
OPTIONAL FLAGS
--description=DESCRIPTION
The text that will be used to describe a BigQuery export.
--filter=FILTER
The filter string which will applied to findings muted by a BigQuery
export.
At most one of these can be specified:
--folder=FOLDER
Folder where the BigQuery export resides. Formatted as folders/456 or
just 456.
--organization=ORGANIZATION
Organization where the BigQuery export resides. Formatted as
organizations/123 or just 123.
--project=PROJECT
Project (id or number) where the BigQuery export resides. Formatted
as projects/789 or just 789.
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.
API REFERENCE
This command uses the securitycenter/v1 API. The full documentation for
this API can be found at: https://cloud.google.com/security-command-center