mirror of
https://github.com/imjasonh/gcloud-help
synced 2026-07-19 07:15:23 +00:00
gcloud: Wed Nov 19 10:58:36 UTC 2025
This commit is contained in:
parent
e1ec13485a
commit
7b14250313
392 changed files with 17141 additions and 774 deletions
|
|
@ -35,6 +35,9 @@ GROUPS
|
|||
insights
|
||||
Manage Cloud Storage inventory reports.
|
||||
|
||||
intelligence-configs
|
||||
Manage Cloud Storage Intelligence Configurations.
|
||||
|
||||
managed-folders
|
||||
Manage Cloud Storage managed folders.
|
||||
|
||||
|
|
|
|||
152
gcloud/storage/insights/dataset-configs/create
Normal file
152
gcloud/storage/insights/dataset-configs/create
Normal file
|
|
@ -0,0 +1,152 @@
|
|||
NAME
|
||||
gcloud storage insights dataset-configs create - create a new dataset
|
||||
config for Insights
|
||||
|
||||
SYNOPSIS
|
||||
gcloud storage insights dataset-configs create DATASET_CONFIG_NAME
|
||||
--location=LOCATION --organization=SOURCE_ORG_NUMBER
|
||||
--retention-period-days=RETENTION_DAYS
|
||||
(--enable-organization-scope
|
||||
| --source-folders=[SOURCE_FOLDER_NUMBERS,...]
|
||||
| --source-folders-file=SOURCE_FOLDER_NUMBERS_IN_FILE
|
||||
| --source-projects=[SOURCE_PROJECT_NUMBERS,...]
|
||||
| --source-projects-file=SOURCE_PROJECT_NUMBERS_IN_FILE)
|
||||
[--auto-add-new-buckets] [--description=DESCRIPTION]
|
||||
[--identity=IDENTITY_TYPE; default="IDENTITY_TYPE_PER_CONFIG"]
|
||||
[--exclude-bucket-names=[BUCKETS_NAMES,...]
|
||||
--exclude-bucket-prefix-regexes=[BUCKETS_REGEXES,...]
|
||||
| --include-bucket-names=[BUCKETS_NAMES,...]
|
||||
--include-bucket-prefix-regexes=[BUCKETS_REGEXES,...]]
|
||||
[--exclude-source-locations=[LIST_OF_SOURCE_LOCATIONS,...]
|
||||
| --include-source-locations=[LIST_OF_SOURCE_LOCATIONS,...]]
|
||||
[GCLOUD_WIDE_FLAG ...]
|
||||
|
||||
DESCRIPTION
|
||||
Create a new dataset config for Insights.
|
||||
|
||||
EXAMPLES
|
||||
To create a dataset config with config name as "my_config" in location
|
||||
"us-central1" and project numbers "123456" and "456789" belonging to
|
||||
organization number "54321":
|
||||
|
||||
$ gcloud storage insights dataset-configs create my_config \
|
||||
--location=us-central1 --source-projects=123456,456789 \
|
||||
--organization=54321 --retention-period-days=1
|
||||
|
||||
To create a dataset config that automatically adds new buckets into config:
|
||||
|
||||
$ gcloud storage insights dataset-configs create my_config \
|
||||
--location=us-central1 --source-projects=123456,456789 \
|
||||
--organization=54321 --auto-add-new-buckets \
|
||||
--retention-period-days=1
|
||||
|
||||
POSITIONAL ARGUMENTS
|
||||
DATASET_CONFIG_NAME
|
||||
Provide human readable config name.
|
||||
|
||||
REQUIRED FLAGS
|
||||
--location=LOCATION
|
||||
Provide location of the dataset config.
|
||||
|
||||
--organization=SOURCE_ORG_NUMBER
|
||||
Provide the source organization number.
|
||||
|
||||
--retention-period-days=RETENTION_DAYS
|
||||
Provide retention period for the config.
|
||||
|
||||
List of source options either source projects or source folders or enable
|
||||
organization scope. Refer Dataset Configuration Properties
|
||||
(https://cloud.google.com/storage/docs/insights/datasets#dataset-config)
|
||||
for more details.
|
||||
|
||||
Exactly one of these must be specified:
|
||||
|
||||
--enable-organization-scope
|
||||
If passed, the dataset config will be enabled on the organization.
|
||||
|
||||
List of source folder IDs or the file containing list of folder IDs.
|
||||
|
||||
At most one of these can be specified:
|
||||
|
||||
--source-folders=[SOURCE_FOLDER_NUMBERS,...]
|
||||
List of source folder IDs.
|
||||
|
||||
--source-folders-file=SOURCE_FOLDER_NUMBERS_IN_FILE
|
||||
CSV formatted file containing source folder IDs, one per line.
|
||||
|
||||
List of source project numbers or the file containing list of project
|
||||
numbers.
|
||||
|
||||
At most one of these can be specified:
|
||||
|
||||
--source-projects=[SOURCE_PROJECT_NUMBERS,...]
|
||||
List of source project numbers.
|
||||
|
||||
--source-projects-file=SOURCE_PROJECT_NUMBERS_IN_FILE
|
||||
CSV formatted file containing source project numbers, one per line.
|
||||
|
||||
OPTIONAL FLAGS
|
||||
--auto-add-new-buckets
|
||||
Automatically include any new buckets created if they satisfy criteria
|
||||
defined in config settings.
|
||||
|
||||
--description=DESCRIPTION
|
||||
Description for dataset config.
|
||||
|
||||
--identity=IDENTITY_TYPE; default="IDENTITY_TYPE_PER_CONFIG"
|
||||
The type of service account used in the dataset config. IDENTITY_TYPE
|
||||
must be one of: IDENTITY_TYPE_PER_CONFIG, IDENTITY_TYPE_PER_PROJECT.
|
||||
|
||||
Specify the list of buckets to be included or excluded, both a list of
|
||||
bucket names and prefix regexes can be specified for either include or
|
||||
exclude buckets.
|
||||
|
||||
At most one of these can be specified:
|
||||
|
||||
Specify the list of buckets to be excluded.
|
||||
|
||||
--exclude-bucket-names=[BUCKETS_NAMES,...]
|
||||
List of bucket names to be excluded.
|
||||
|
||||
--exclude-bucket-prefix-regexes=[BUCKETS_REGEXES,...]
|
||||
List of bucket prefix regexes to be excluded. Allowed regex
|
||||
patterns are similar to those for the
|
||||
--include-bucket-prefix-regexes flag.
|
||||
|
||||
Specify the list of buckets to be included.
|
||||
|
||||
--include-bucket-names=[BUCKETS_NAMES,...]
|
||||
List of bucket names be included.
|
||||
|
||||
--include-bucket-prefix-regexes=[BUCKETS_REGEXES,...]
|
||||
List of bucket prefix regexes to be included. The dataset config
|
||||
will include all the buckets that match with the prefix regex.
|
||||
Examples of allowed prefix regex patterns can be testbucket*,
|
||||
testbucket.*foo, testb.+foo* . It should follow syntax specified in
|
||||
google/re2 on GitHub.
|
||||
|
||||
Specify the list of locations for source projects to be included or
|
||||
excluded from available locations
|
||||
(https://cloud.google.com/storage/docs/locations#available-locations).
|
||||
|
||||
At most one of these can be specified:
|
||||
|
||||
--exclude-source-locations=[LIST_OF_SOURCE_LOCATIONS,...]
|
||||
List of locations for projects to be excluded.
|
||||
|
||||
--include-source-locations=[LIST_OF_SOURCE_LOCATIONS,...]
|
||||
List of locations for projects to be included.
|
||||
|
||||
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 variant is also available:
|
||||
|
||||
$ gcloud alpha storage insights dataset-configs create
|
||||
|
||||
68
gcloud/storage/insights/dataset-configs/create-link
Normal file
68
gcloud/storage/insights/dataset-configs/create-link
Normal file
|
|
@ -0,0 +1,68 @@
|
|||
NAME
|
||||
gcloud storage insights dataset-configs create-link - create a link to a
|
||||
BigQuery instance
|
||||
|
||||
SYNOPSIS
|
||||
gcloud storage insights dataset-configs create-link
|
||||
(DATASET_CONFIG : --location=LOCATION) [GCLOUD_WIDE_FLAG ...]
|
||||
|
||||
DESCRIPTION
|
||||
Create link to the customer BigQuery instance for Insights dataset config.
|
||||
|
||||
EXAMPLES
|
||||
To create a link to the customer BigQuery instance for config name:
|
||||
"my_config" in location "us-central1":
|
||||
|
||||
$ gcloud storage insights dataset-configs create-link my_config \
|
||||
--location=us-central1
|
||||
|
||||
To create a link for the same dataset config with fully specified name:
|
||||
|
||||
$ gcloud storage insights dataset-configs create-link \
|
||||
projects/foo/locations/us-central1/datasetConfigs/my_config
|
||||
|
||||
POSITIONAL ARGUMENTS
|
||||
Dataset config resource - The Dataset config to create link. The arguments
|
||||
in this group can be used to specify the attributes of this resource.
|
||||
(NOTE) Some attributes are not given arguments in this group but can be
|
||||
set in other ways.
|
||||
|
||||
To set the project attribute:
|
||||
◆ provide the argument dataset_config on the command line with a fully
|
||||
specified name;
|
||||
◆ provide the argument --project on the command line;
|
||||
◆ set the property core/project.
|
||||
|
||||
This must be specified.
|
||||
|
||||
DATASET_CONFIG
|
||||
ID of the dataset-config or fully qualified identifier for the
|
||||
dataset-config.
|
||||
|
||||
To set the dataset-config attribute:
|
||||
▸ provide the argument dataset_config on the command line.
|
||||
|
||||
This positional argument must be specified if any of the other
|
||||
arguments in this group are specified.
|
||||
|
||||
--location=LOCATION
|
||||
Insights supported Google Cloud location for the dataset-config.
|
||||
|
||||
To set the location attribute:
|
||||
▸ provide the argument dataset_config on the command line with a
|
||||
fully specified name;
|
||||
▸ provide the argument --location on the command line.
|
||||
|
||||
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 variant is also available:
|
||||
|
||||
$ gcloud alpha storage insights dataset-configs create-link
|
||||
|
||||
86
gcloud/storage/insights/dataset-configs/delete
Normal file
86
gcloud/storage/insights/dataset-configs/delete
Normal file
|
|
@ -0,0 +1,86 @@
|
|||
NAME
|
||||
gcloud storage insights dataset-configs delete - delete dataset config for
|
||||
Insights
|
||||
|
||||
SYNOPSIS
|
||||
gcloud storage insights dataset-configs delete
|
||||
(DATASET_CONFIG : --location=LOCATION) [--auto-delete-link] [--force]
|
||||
[GCLOUD_WIDE_FLAG ...]
|
||||
|
||||
DESCRIPTION
|
||||
Delete an Insights dataset config.
|
||||
|
||||
EXAMPLES
|
||||
To delete a dataset config with config name "my_config" in location
|
||||
"us-central1":
|
||||
|
||||
$ gcloud storage insights dataset-configs delete my_config \
|
||||
--location=us-central1
|
||||
|
||||
To delete the same dataset config with fully specified name:
|
||||
|
||||
$gcloud storage insights dataset-configs delete projects/foo/locations/us-central1/datasetConfigs/my_config
|
||||
|
||||
To delete the same dataset config and unlink it from the BigQuery instance:
|
||||
|
||||
$ gcloud storage insights dataset-configs delete my_config \
|
||||
--location=us-central1 --auto-delete-link
|
||||
|
||||
To delete the same dataset config without taking user consent:
|
||||
|
||||
$ gcloud storage insights dataset-configs delete my_config \
|
||||
--location=us-central1 --auto-delete-link --force
|
||||
|
||||
POSITIONAL ARGUMENTS
|
||||
Dataset config resource - The Dataset config to delete. The arguments in
|
||||
this group can be used to specify the attributes of this resource. (NOTE)
|
||||
Some attributes are not given arguments in this group but can be set in
|
||||
other ways.
|
||||
|
||||
To set the project attribute:
|
||||
◆ provide the argument dataset_config on the command line with a fully
|
||||
specified name;
|
||||
◆ provide the argument --project on the command line;
|
||||
◆ set the property core/project.
|
||||
|
||||
This must be specified.
|
||||
|
||||
DATASET_CONFIG
|
||||
ID of the dataset-config or fully qualified identifier for the
|
||||
dataset-config.
|
||||
|
||||
To set the dataset-config attribute:
|
||||
▸ provide the argument dataset_config on the command line.
|
||||
|
||||
This positional argument must be specified if any of the other
|
||||
arguments in this group are specified.
|
||||
|
||||
--location=LOCATION
|
||||
Insights supported Google Cloud location for the dataset-config.
|
||||
|
||||
To set the location attribute:
|
||||
▸ provide the argument dataset_config on the command line with a
|
||||
fully specified name;
|
||||
▸ provide the argument --location on the command line.
|
||||
|
||||
FLAGS
|
||||
--auto-delete-link
|
||||
Delete the BigQuery instance links before the config gets deleted
|
||||
explicitly.
|
||||
|
||||
--force
|
||||
Force delete the config by skipping the consent.
|
||||
|
||||
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 variant is also available:
|
||||
|
||||
$ gcloud alpha storage insights dataset-configs delete
|
||||
|
||||
68
gcloud/storage/insights/dataset-configs/delete-link
Normal file
68
gcloud/storage/insights/dataset-configs/delete-link
Normal file
|
|
@ -0,0 +1,68 @@
|
|||
NAME
|
||||
gcloud storage insights dataset-configs delete-link - delete a link to a
|
||||
BigQuery instance
|
||||
|
||||
SYNOPSIS
|
||||
gcloud storage insights dataset-configs delete-link
|
||||
(DATASET_CONFIG : --location=LOCATION) [GCLOUD_WIDE_FLAG ...]
|
||||
|
||||
DESCRIPTION
|
||||
Delete a link to a BigQuery instance.
|
||||
|
||||
EXAMPLES
|
||||
To unlink a dataset config with config name "my_config" in location
|
||||
"us-central1":
|
||||
|
||||
$ gcloud storage insights dataset-configs delete-link my_config \
|
||||
--location=us-central1
|
||||
|
||||
To delete a link for the same dataset config with fully specified name:
|
||||
|
||||
$ gcloud storage insights dataset-configs delete-link \
|
||||
projects/foo/locations/us-central1/datasetConfigs/my_config
|
||||
|
||||
POSITIONAL ARGUMENTS
|
||||
Dataset config resource - The Dataset config to delete link. The arguments
|
||||
in this group can be used to specify the attributes of this resource.
|
||||
(NOTE) Some attributes are not given arguments in this group but can be
|
||||
set in other ways.
|
||||
|
||||
To set the project attribute:
|
||||
◆ provide the argument dataset_config on the command line with a fully
|
||||
specified name;
|
||||
◆ provide the argument --project on the command line;
|
||||
◆ set the property core/project.
|
||||
|
||||
This must be specified.
|
||||
|
||||
DATASET_CONFIG
|
||||
ID of the dataset-config or fully qualified identifier for the
|
||||
dataset-config.
|
||||
|
||||
To set the dataset-config attribute:
|
||||
▸ provide the argument dataset_config on the command line.
|
||||
|
||||
This positional argument must be specified if any of the other
|
||||
arguments in this group are specified.
|
||||
|
||||
--location=LOCATION
|
||||
Insights supported Google Cloud location for the dataset-config.
|
||||
|
||||
To set the location attribute:
|
||||
▸ provide the argument dataset_config on the command line with a
|
||||
fully specified name;
|
||||
▸ provide the argument --location on the command line.
|
||||
|
||||
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 variant is also available:
|
||||
|
||||
$ gcloud alpha storage insights dataset-configs delete-link
|
||||
|
||||
68
gcloud/storage/insights/dataset-configs/describe
Normal file
68
gcloud/storage/insights/dataset-configs/describe
Normal file
|
|
@ -0,0 +1,68 @@
|
|||
NAME
|
||||
gcloud storage insights dataset-configs describe - describe dataset config
|
||||
for Insights
|
||||
|
||||
SYNOPSIS
|
||||
gcloud storage insights dataset-configs describe
|
||||
(DATASET_CONFIG : --location=LOCATION) [GCLOUD_WIDE_FLAG ...]
|
||||
|
||||
DESCRIPTION
|
||||
Describe the Insights dataset config.
|
||||
|
||||
EXAMPLES
|
||||
To describe a dataset config with config name "my_config" in location
|
||||
"us-central1":
|
||||
|
||||
$ gcloud storage insights dataset-configs describe my_config \
|
||||
--location=us-central1
|
||||
|
||||
To describe the same dataset config with fully specified name:
|
||||
|
||||
$ gcloud storage insights dataset-configs describe \
|
||||
projects/foo/locations/us-central1/datasetConfigs/my_config
|
||||
|
||||
POSITIONAL ARGUMENTS
|
||||
Dataset config resource - The Dataset config to describe. The arguments in
|
||||
this group can be used to specify the attributes of this resource. (NOTE)
|
||||
Some attributes are not given arguments in this group but can be set in
|
||||
other ways.
|
||||
|
||||
To set the project attribute:
|
||||
◆ provide the argument dataset_config on the command line with a fully
|
||||
specified name;
|
||||
◆ provide the argument --project on the command line;
|
||||
◆ set the property core/project.
|
||||
|
||||
This must be specified.
|
||||
|
||||
DATASET_CONFIG
|
||||
ID of the dataset-config or fully qualified identifier for the
|
||||
dataset-config.
|
||||
|
||||
To set the dataset-config attribute:
|
||||
▸ provide the argument dataset_config on the command line.
|
||||
|
||||
This positional argument must be specified if any of the other
|
||||
arguments in this group are specified.
|
||||
|
||||
--location=LOCATION
|
||||
Insights supported Google Cloud location for the dataset-config.
|
||||
|
||||
To set the location attribute:
|
||||
▸ provide the argument dataset_config on the command line with a
|
||||
fully specified name;
|
||||
▸ provide the argument --location on the command line.
|
||||
|
||||
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 variant is also available:
|
||||
|
||||
$ gcloud alpha storage insights dataset-configs describe
|
||||
|
||||
44
gcloud/storage/insights/dataset-configs/help
Normal file
44
gcloud/storage/insights/dataset-configs/help
Normal file
|
|
@ -0,0 +1,44 @@
|
|||
NAME
|
||||
gcloud storage insights dataset-configs - manage Cloud Storage Insights
|
||||
dataset configurations
|
||||
|
||||
SYNOPSIS
|
||||
gcloud storage insights dataset-configs COMMAND [GCLOUD_WIDE_FLAG ...]
|
||||
|
||||
DESCRIPTION
|
||||
Manage Cloud Storage Insights dataset configurations.
|
||||
|
||||
GCLOUD WIDE FLAGS
|
||||
These flags are available to all commands: --help.
|
||||
|
||||
Run $ gcloud help for details.
|
||||
|
||||
COMMANDS
|
||||
COMMAND is one of the following:
|
||||
|
||||
create
|
||||
Create a new dataset config for Insights.
|
||||
|
||||
create-link
|
||||
Create a link to a BigQuery instance.
|
||||
|
||||
delete
|
||||
Delete dataset config for Insights.
|
||||
|
||||
delete-link
|
||||
Delete a link to a BigQuery instance.
|
||||
|
||||
describe
|
||||
Describe dataset config for Insights.
|
||||
|
||||
list
|
||||
List returns all the Insights dataset configs for given location.
|
||||
|
||||
update
|
||||
Updates a dataset config for Insights.
|
||||
|
||||
NOTES
|
||||
This variant is also available:
|
||||
|
||||
$ gcloud alpha storage insights dataset-configs
|
||||
|
||||
80
gcloud/storage/insights/dataset-configs/list
Normal file
80
gcloud/storage/insights/dataset-configs/list
Normal file
|
|
@ -0,0 +1,80 @@
|
|||
NAME
|
||||
gcloud storage insights dataset-configs list - list returns all the
|
||||
Insights dataset configs for given location
|
||||
|
||||
SYNOPSIS
|
||||
gcloud storage insights dataset-configs list [--location=LOCATION]
|
||||
[--filter=EXPRESSION] [--limit=LIMIT] [--page-size=PAGE_SIZE]
|
||||
[--sort-by=[FIELD,...]] [--uri] [GCLOUD_WIDE_FLAG ...]
|
||||
|
||||
DESCRIPTION
|
||||
List Cloud storage Insights dataset configs.
|
||||
|
||||
EXAMPLES
|
||||
List all dataset configs in all locations:
|
||||
|
||||
$ gcloud storage insights dataset-configs list
|
||||
|
||||
List all dataset configs for location "us-central1":
|
||||
|
||||
$ gcloud storage insights dataset-configs list --location=us-central1
|
||||
|
||||
List all dataset configs with a page size of "20":
|
||||
|
||||
$ gcloud storage insights dataset-configs list \
|
||||
--location=us-central1 --page-size=20
|
||||
|
||||
List all dataset configs with JSON formatting:
|
||||
|
||||
$ gcloud storage insights dataset-configs list \
|
||||
--location=us-central1 --format=json
|
||||
|
||||
FLAGS
|
||||
--location=LOCATION
|
||||
Provide location of the dataset config.
|
||||
|
||||
LIST COMMAND FLAGS
|
||||
--filter=EXPRESSION
|
||||
Apply a Boolean filter EXPRESSION to each resource item to be listed.
|
||||
If the expression evaluates True, then that item is listed. For more
|
||||
details and examples of filter expressions, run $ gcloud topic filters.
|
||||
This flag interacts with other flags that are applied in this order:
|
||||
--flatten, --sort-by, --filter, --limit.
|
||||
|
||||
--limit=LIMIT
|
||||
Maximum number of resources to list. The default is unlimited. This
|
||||
flag interacts with other flags that are applied in this order:
|
||||
--flatten, --sort-by, --filter, --limit.
|
||||
|
||||
--page-size=PAGE_SIZE
|
||||
Some services group resource list output into pages. This flag
|
||||
specifies the maximum number of resources per page. The default is
|
||||
determined by the service if it supports paging, otherwise it is
|
||||
unlimited (no paging). Paging may be applied before or after --filter
|
||||
and --limit depending on the service.
|
||||
|
||||
--sort-by=[FIELD,...]
|
||||
Comma-separated list of resource field key names to sort by. The
|
||||
default order is ascending. Prefix a field with ``~'' for descending
|
||||
order on that field. This flag interacts with other flags that are
|
||||
applied in this order: --flatten, --sort-by, --filter, --limit.
|
||||
|
||||
--uri
|
||||
Print a list of resource URIs instead of the default output, and change
|
||||
the command output to a list of URIs. If this flag is used with
|
||||
--format, the formatting is applied on this URI list. To display URIs
|
||||
alongside other keys instead, use the uri() transform.
|
||||
|
||||
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 variant is also available:
|
||||
|
||||
$ gcloud alpha storage insights dataset-configs list
|
||||
|
||||
172
gcloud/storage/insights/dataset-configs/update
Normal file
172
gcloud/storage/insights/dataset-configs/update
Normal file
|
|
@ -0,0 +1,172 @@
|
|||
NAME
|
||||
gcloud storage insights dataset-configs update - updates a dataset config
|
||||
for Insights
|
||||
|
||||
SYNOPSIS
|
||||
gcloud storage insights dataset-configs update
|
||||
(DATASET_CONFIG : --location=LOCATION)
|
||||
[--auto-add-new-buckets=AUTO_ADD_NEW_BUCKETS]
|
||||
[--description=DESCRIPTION] [--retention-period-days=RETENTION_DAYS]
|
||||
[--enable-organization-scope
|
||||
| --source-folders=[SOURCE_FOLDER_NUMBERS,...]
|
||||
| --source-folders-file=SOURCE_FOLDER_NUMBERS_IN_FILE
|
||||
| --source-projects=[SOURCE_PROJECT_NUMBERS,...]
|
||||
| --source-projects-file=SOURCE_PROJECT_NUMBERS_IN_FILE]
|
||||
[--exclude-bucket-names=[BUCKETS_NAMES,...]
|
||||
--exclude-bucket-prefix-regexes=[BUCKETS_REGEXES,...]
|
||||
| --include-bucket-names=[BUCKETS_NAMES,...]
|
||||
--include-bucket-prefix-regexes=[BUCKETS_REGEXES,...]]
|
||||
[--exclude-source-locations=[LIST_OF_SOURCE_LOCATIONS,...]
|
||||
| --include-source-locations=[LIST_OF_SOURCE_LOCATIONS,...]]
|
||||
[GCLOUD_WIDE_FLAG ...]
|
||||
|
||||
DESCRIPTION
|
||||
Update a dataset config for Insights.
|
||||
|
||||
EXAMPLES
|
||||
To update the description for a dataset config "my_config" in location
|
||||
"us-central1":
|
||||
|
||||
$ gcloud storage insights dataset-configs update my_config \
|
||||
--location=us-central1 \
|
||||
--description="a user provided description"
|
||||
|
||||
To update the same dataset config with fully specified name:
|
||||
|
||||
$ gcloud storage insights dataset-configs update \
|
||||
projects/foo/locations/us-central1/datasetConfigs/my_config
|
||||
|
||||
To update the retention period days for the dataset config "my_config" in
|
||||
location "us-central1":
|
||||
|
||||
$ gcloud storage insights dataset-configs update my_config \
|
||||
--location=us-central1 --retention-period-days=20
|
||||
|
||||
POSITIONAL ARGUMENTS
|
||||
Dataset config resource - The Dataset config to update. The arguments in
|
||||
this group can be used to specify the attributes of this resource. (NOTE)
|
||||
Some attributes are not given arguments in this group but can be set in
|
||||
other ways.
|
||||
|
||||
To set the project attribute:
|
||||
◆ provide the argument dataset_config on the command line with a fully
|
||||
specified name;
|
||||
◆ provide the argument --project on the command line;
|
||||
◆ set the property core/project.
|
||||
|
||||
This must be specified.
|
||||
|
||||
DATASET_CONFIG
|
||||
ID of the dataset-config or fully qualified identifier for the
|
||||
dataset-config.
|
||||
|
||||
To set the dataset-config attribute:
|
||||
▸ provide the argument dataset_config on the command line.
|
||||
|
||||
This positional argument must be specified if any of the other
|
||||
arguments in this group are specified.
|
||||
|
||||
--location=LOCATION
|
||||
Insights supported Google Cloud location for the dataset-config.
|
||||
|
||||
To set the location attribute:
|
||||
▸ provide the argument dataset_config on the command line with a
|
||||
fully specified name;
|
||||
▸ provide the argument --location on the command line.
|
||||
|
||||
FLAGS
|
||||
--auto-add-new-buckets=AUTO_ADD_NEW_BUCKETS
|
||||
Automatically include any new buckets created if they satisfy criteria
|
||||
defined in config settings. AUTO_ADD_NEW_BUCKETS must be one of: true,
|
||||
false.
|
||||
|
||||
--description=DESCRIPTION
|
||||
Description for dataset config.
|
||||
|
||||
--retention-period-days=RETENTION_DAYS
|
||||
Provide retention period for the config.
|
||||
|
||||
List of source options either source projects or source folders or enable
|
||||
organization scope. Refer Dataset Configuration Properties
|
||||
(https://cloud.google.com/storage/docs/insights/datasets#dataset-config)
|
||||
for more details.
|
||||
|
||||
At most one of these can be specified:
|
||||
|
||||
--enable-organization-scope
|
||||
If passed, the dataset config will be enabled on the organization.
|
||||
|
||||
List of source folder IDs or the file containing list of folder IDs.
|
||||
|
||||
At most one of these can be specified:
|
||||
|
||||
--source-folders=[SOURCE_FOLDER_NUMBERS,...]
|
||||
List of source folder IDs.
|
||||
|
||||
--source-folders-file=SOURCE_FOLDER_NUMBERS_IN_FILE
|
||||
CSV formatted file containing source folder IDs, one per line.
|
||||
|
||||
List of source project numbers or the file containing list of project
|
||||
numbers.
|
||||
|
||||
At most one of these can be specified:
|
||||
|
||||
--source-projects=[SOURCE_PROJECT_NUMBERS,...]
|
||||
List of source project numbers.
|
||||
|
||||
--source-projects-file=SOURCE_PROJECT_NUMBERS_IN_FILE
|
||||
CSV formatted file containing source project numbers, one per line.
|
||||
|
||||
Specify the list of buckets to be included or excluded, both a list of
|
||||
bucket names and prefix regexes can be specified for either include or
|
||||
exclude buckets.
|
||||
|
||||
At most one of these can be specified:
|
||||
|
||||
Specify the list of buckets to be excluded.
|
||||
|
||||
--exclude-bucket-names=[BUCKETS_NAMES,...]
|
||||
List of bucket names to be excluded.
|
||||
|
||||
--exclude-bucket-prefix-regexes=[BUCKETS_REGEXES,...]
|
||||
List of bucket prefix regexes to be excluded. Allowed regex
|
||||
patterns are similar to those for the
|
||||
--include-bucket-prefix-regexes flag.
|
||||
|
||||
Specify the list of buckets to be included.
|
||||
|
||||
--include-bucket-names=[BUCKETS_NAMES,...]
|
||||
List of bucket names be included.
|
||||
|
||||
--include-bucket-prefix-regexes=[BUCKETS_REGEXES,...]
|
||||
List of bucket prefix regexes to be included. The dataset config
|
||||
will include all the buckets that match with the prefix regex.
|
||||
Examples of allowed prefix regex patterns can be testbucket*,
|
||||
testbucket.*foo, testb.+foo* . It should follow syntax specified in
|
||||
google/re2 on GitHub.
|
||||
|
||||
Specify the list of locations for source projects to be included or
|
||||
excluded from available locations
|
||||
(https://cloud.google.com/storage/docs/locations#available-locations).
|
||||
|
||||
At most one of these can be specified:
|
||||
|
||||
--exclude-source-locations=[LIST_OF_SOURCE_LOCATIONS,...]
|
||||
List of locations for projects to be excluded.
|
||||
|
||||
--include-source-locations=[LIST_OF_SOURCE_LOCATIONS,...]
|
||||
List of locations for projects to be included.
|
||||
|
||||
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 variant is also available:
|
||||
|
||||
$ gcloud alpha storage insights dataset-configs update
|
||||
|
||||
|
|
@ -15,6 +15,9 @@ GCLOUD WIDE FLAGS
|
|||
GROUPS
|
||||
GROUP is one of the following:
|
||||
|
||||
dataset-configs
|
||||
Manage Cloud Storage Insights dataset configurations.
|
||||
|
||||
inventory-reports
|
||||
Manage Cloud Storage inventory report configurations.
|
||||
|
||||
|
|
|
|||
44
gcloud/storage/intelligence-configs/describe
Normal file
44
gcloud/storage/intelligence-configs/describe
Normal file
|
|
@ -0,0 +1,44 @@
|
|||
NAME
|
||||
gcloud storage intelligence-configs describe - describes storage
|
||||
intelligence configuration
|
||||
|
||||
SYNOPSIS
|
||||
gcloud storage intelligence-configs describe
|
||||
(--organization=ORGANIZATION | --project=PROJECT
|
||||
| --sub-folder=SUB_FOLDER) [GCLOUD_WIDE_FLAG ...]
|
||||
|
||||
DESCRIPTION
|
||||
Describe storage intelligence config for the organization, sub-folder or
|
||||
project.
|
||||
|
||||
EXAMPLES
|
||||
The following command describes storage intelligence config for the
|
||||
sub-folder with id 123456.
|
||||
|
||||
$ gcloud storage intelligence-configs describe --sub-folder=123456
|
||||
|
||||
REQUIRED FLAGS
|
||||
Exactly one of these must be specified:
|
||||
|
||||
--organization=ORGANIZATION
|
||||
Specifies organization id for the storage intelligence config.
|
||||
|
||||
--project=PROJECT
|
||||
Specifies project for the storage intelligence config.
|
||||
|
||||
--sub-folder=SUB_FOLDER
|
||||
Specifies sub-folder id for the storage intelligence config.
|
||||
|
||||
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 variant is also available:
|
||||
|
||||
$ gcloud alpha storage intelligence-configs describe
|
||||
|
||||
41
gcloud/storage/intelligence-configs/disable
Normal file
41
gcloud/storage/intelligence-configs/disable
Normal file
|
|
@ -0,0 +1,41 @@
|
|||
NAME
|
||||
gcloud storage intelligence-configs disable - disables storage intelligence
|
||||
|
||||
SYNOPSIS
|
||||
gcloud storage intelligence-configs disable
|
||||
(--organization=ORGANIZATION | --project=PROJECT
|
||||
| --sub-folder=SUB_FOLDER) [GCLOUD_WIDE_FLAG ...]
|
||||
|
||||
DESCRIPTION
|
||||
Disable storage intelligence for the organization, sub-folder or project.
|
||||
|
||||
EXAMPLES
|
||||
The following command disables storage intelligence for the project.
|
||||
|
||||
$ gcloud storage intelligence-configs disable --project=my-project
|
||||
|
||||
REQUIRED FLAGS
|
||||
Exactly one of these must be specified:
|
||||
|
||||
--organization=ORGANIZATION
|
||||
Specifies organization id for the storage intelligence config.
|
||||
|
||||
--project=PROJECT
|
||||
Specifies project for the storage intelligence config.
|
||||
|
||||
--sub-folder=SUB_FOLDER
|
||||
Specifies sub-folder id for the storage intelligence config.
|
||||
|
||||
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 variant is also available:
|
||||
|
||||
$ gcloud alpha storage intelligence-configs disable
|
||||
|
||||
104
gcloud/storage/intelligence-configs/enable
Normal file
104
gcloud/storage/intelligence-configs/enable
Normal file
|
|
@ -0,0 +1,104 @@
|
|||
NAME
|
||||
gcloud storage intelligence-configs enable - enables storage intelligence
|
||||
|
||||
SYNOPSIS
|
||||
gcloud storage intelligence-configs enable
|
||||
(--organization=ORGANIZATION | --project=PROJECT
|
||||
| --sub-folder=SUB_FOLDER)
|
||||
[--trial-edition
|
||||
--exclude-bucket-id-regexes=[EXCLUDE_BUCKET_ID_REGEXES,...]
|
||||
| --include-bucket-id-regexes=[INCLUDE_BUCKET_ID_REGEXES,...]
|
||||
--exclude-locations=[EXCLUDE_LOCATIONS,...]
|
||||
| --include-locations=[INCLUDE_LOCATIONS,...]] [GCLOUD_WIDE_FLAG ...]
|
||||
|
||||
DESCRIPTION
|
||||
Enable storage intelligence plan for the organization, sub-folder or
|
||||
project along with filters. The command sets STANDARD edition by default if
|
||||
no other edition flags like ``--trial-edition`` are specified.
|
||||
|
||||
EXAMPLES
|
||||
To remove buckets from the storage intelligence plan, Use the following
|
||||
command with --exclude-bucket-id-regexes flag. to specify list of bucket id
|
||||
regexes.,
|
||||
|
||||
$ gcloud storage intelligence-configs enable --organization=my-org \
|
||||
--exclude-bucket-id-regexes="my-bucket-.*"
|
||||
|
||||
To apply location based filters in the storage intelligence plan, Use
|
||||
--include-locations or --exclude-locations flags to specify allowed list of
|
||||
locations or excluded list of locations. The following command updates
|
||||
storage intelligence plan of sub-folder 123456 with the specified list of
|
||||
included locations.,
|
||||
|
||||
$ gcloud storage intelligence-configs enable --sub-folder=123456 \
|
||||
--include-locations="us-east1","us-west1"
|
||||
|
||||
The following command enables storage intelligence with Trial edition for
|
||||
the given project,
|
||||
|
||||
$ gcloud storage intelligence-configs enable --project=my-project \
|
||||
--trial-edition
|
||||
|
||||
REQUIRED FLAGS
|
||||
Exactly one of these must be specified:
|
||||
|
||||
--organization=ORGANIZATION
|
||||
Specifies organization id for the storage intelligence config.
|
||||
|
||||
--project=PROJECT
|
||||
Specifies project for the storage intelligence config.
|
||||
|
||||
--sub-folder=SUB_FOLDER
|
||||
Specifies sub-folder id for the storage intelligence config.
|
||||
|
||||
SETTINGS FLAGS
|
||||
--trial-edition
|
||||
Enables Storage Intelligence for TRIAL edition.
|
||||
|
||||
At most one of these can be specified:
|
||||
|
||||
--exclude-bucket-id-regexes=[EXCLUDE_BUCKET_ID_REGEXES,...]
|
||||
Sets filter for bucket id regexes to exclude. Accepts list of bucket
|
||||
id regexes in comma separated format. If the regex contains special
|
||||
characters that may have a specific meaning in the shell, escape them
|
||||
using backslashes(\). To clear bucket id regexes list, provide flag
|
||||
with an empty list. e.g --exclude-bucket-id-regexes="" or
|
||||
--exclude-bucket-id-regexes= .
|
||||
|
||||
--include-bucket-id-regexes=[INCLUDE_BUCKET_ID_REGEXES,...]
|
||||
Sets filter for bucket id regexes to include. Accepts list of bucket
|
||||
id regexes in comma separated format. If the regex contains special
|
||||
characters that may have a specific meaning in the shell, escape them
|
||||
using backslashes(\). To clear bucket id regexes list, provide flag
|
||||
with empty list. e.g --include-bucket-id-regexes="" or
|
||||
--include-bucket-id-regexes= .
|
||||
|
||||
At most one of these can be specified:
|
||||
|
||||
--exclude-locations=[EXCLUDE_LOCATIONS,...]
|
||||
Comma separated list of locations
|
||||
(https://cloud.google.com/storage/docs/locations#available-locations)
|
||||
to exclude in storage intelligence filter. To clear excluded
|
||||
locations, provide flag with empty list. e.g --exclude-locations=""
|
||||
or --exclude-locations= .
|
||||
|
||||
--include-locations=[INCLUDE_LOCATIONS,...]
|
||||
Comma separated list of locations
|
||||
(https://cloud.google.com/storage/docs/locations#available-locations)
|
||||
to include in storage intelligence filter. To clear included
|
||||
locations, provide flag with empty list. e.g --include-locations=""
|
||||
or --include-locations= .
|
||||
|
||||
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 variant is also available:
|
||||
|
||||
$ gcloud alpha storage intelligence-configs enable
|
||||
|
||||
35
gcloud/storage/intelligence-configs/help
Normal file
35
gcloud/storage/intelligence-configs/help
Normal file
|
|
@ -0,0 +1,35 @@
|
|||
NAME
|
||||
gcloud storage intelligence-configs - manage Cloud Storage Intelligence
|
||||
Configurations
|
||||
|
||||
SYNOPSIS
|
||||
gcloud storage intelligence-configs COMMAND [GCLOUD_WIDE_FLAG ...]
|
||||
|
||||
DESCRIPTION
|
||||
Manage Cloud Storage Intelligence Configurations.
|
||||
|
||||
GCLOUD WIDE FLAGS
|
||||
These flags are available to all commands: --help.
|
||||
|
||||
Run $ gcloud help for details.
|
||||
|
||||
COMMANDS
|
||||
COMMAND is one of the following:
|
||||
|
||||
describe
|
||||
Describes storage intelligence configuration.
|
||||
|
||||
disable
|
||||
Disables storage intelligence.
|
||||
|
||||
enable
|
||||
Enables storage intelligence.
|
||||
|
||||
update
|
||||
Updates storage intelligence configuration.
|
||||
|
||||
NOTES
|
||||
This variant is also available:
|
||||
|
||||
$ gcloud alpha storage intelligence-configs
|
||||
|
||||
117
gcloud/storage/intelligence-configs/update
Normal file
117
gcloud/storage/intelligence-configs/update
Normal file
|
|
@ -0,0 +1,117 @@
|
|||
NAME
|
||||
gcloud storage intelligence-configs update - updates storage intelligence
|
||||
configuration
|
||||
|
||||
SYNOPSIS
|
||||
gcloud storage intelligence-configs update
|
||||
(--organization=ORGANIZATION | --project=PROJECT
|
||||
| --sub-folder=SUB_FOLDER)
|
||||
(--inherit-from-parent | --trial-edition
|
||||
--exclude-bucket-id-regexes=[EXCLUDE_BUCKET_ID_REGEXES,...]
|
||||
| --include-bucket-id-regexes=[INCLUDE_BUCKET_ID_REGEXES,...]
|
||||
--exclude-locations=[EXCLUDE_LOCATIONS,...]
|
||||
| --include-locations=[INCLUDE_LOCATIONS,...]) [GCLOUD_WIDE_FLAG ...]
|
||||
|
||||
DESCRIPTION
|
||||
Update storage intelligence configuration for the organization, sub-folder
|
||||
or project. The command sets STANDARD edition by default if no other
|
||||
edition flags like ``--trial-edition`` or ``--inherit-from-parent`` are
|
||||
specified.
|
||||
|
||||
EXAMPLES
|
||||
To limit buckets in the storage intelligence configuration, Use the
|
||||
following command with --include-bucket-id-regexes flag. to specify list of
|
||||
bucket ids and bucket id regexes.,
|
||||
|
||||
$ gcloud storage intelligence-configs update --organization=my-org \
|
||||
--include-bucket-id-regexes=my-bucket-.*
|
||||
|
||||
To apply location based filters in the storage intelligence configuration,
|
||||
Use --include-locations or --exclude-locations flags to specify allowed
|
||||
list of locations or excluded list of locations. The following command
|
||||
updates storage intelligence configuration of sub-folder 123456 with the
|
||||
specified list of excluded locations.,
|
||||
|
||||
$ gcloud storage intelligence-configs update --sub-folder=123456 \
|
||||
--exclude-locations=us-east1,us-west1
|
||||
|
||||
The following command updates storage intelligence for the given project by
|
||||
inheriting existing storage intelligence configuration from the
|
||||
hierarchical parent resource.,
|
||||
|
||||
$ gcloud storage intelligence-configs update --project=my-project \
|
||||
--inherit-from-parent
|
||||
|
||||
To clear included locations from the project storage intelligence, Use the
|
||||
following command.,
|
||||
|
||||
$ gcloud storage intelligence-configs update --project=my-project \
|
||||
--include-locations=
|
||||
|
||||
REQUIRED FLAGS
|
||||
Exactly one of these must be specified:
|
||||
|
||||
--organization=ORGANIZATION
|
||||
Specifies organization id for the storage intelligence config.
|
||||
|
||||
--project=PROJECT
|
||||
Specifies project for the storage intelligence config.
|
||||
|
||||
--sub-folder=SUB_FOLDER
|
||||
Specifies sub-folder id for the storage intelligence config.
|
||||
|
||||
Exactly one of these must be specified:
|
||||
|
||||
--inherit-from-parent
|
||||
Specifies storage intelligence config to be inherited from parent.
|
||||
|
||||
--trial-edition
|
||||
Enables Storage Intelligence for TRIAL edition.
|
||||
|
||||
At most one of these can be specified:
|
||||
|
||||
--exclude-bucket-id-regexes=[EXCLUDE_BUCKET_ID_REGEXES,...]
|
||||
Sets filter for bucket id regexes to exclude. Accepts list of
|
||||
bucket id regexes in comma separated format. If the regex contains
|
||||
special characters that may have a specific meaning in the shell,
|
||||
escape them using backslashes(\). To clear bucket id regexes list,
|
||||
provide flag with an empty list. e.g --exclude-bucket-id-regexes=""
|
||||
or --exclude-bucket-id-regexes= .
|
||||
|
||||
--include-bucket-id-regexes=[INCLUDE_BUCKET_ID_REGEXES,...]
|
||||
Sets filter for bucket id regexes to include. Accepts list of
|
||||
bucket id regexes in comma separated format. If the regex contains
|
||||
special characters that may have a specific meaning in the shell,
|
||||
escape them using backslashes(\). To clear bucket id regexes list,
|
||||
provide flag with empty list. e.g --include-bucket-id-regexes="" or
|
||||
--include-bucket-id-regexes= .
|
||||
|
||||
At most one of these can be specified:
|
||||
|
||||
--exclude-locations=[EXCLUDE_LOCATIONS,...]
|
||||
Comma separated list of locations
|
||||
(https://cloud.google.com/storage/docs/locations#available-locations)
|
||||
to exclude in storage intelligence filter. To clear excluded
|
||||
locations, provide flag with empty list. e.g --exclude-locations=""
|
||||
or --exclude-locations= .
|
||||
|
||||
--include-locations=[INCLUDE_LOCATIONS,...]
|
||||
Comma separated list of locations
|
||||
(https://cloud.google.com/storage/docs/locations#available-locations)
|
||||
to include in storage intelligence filter. To clear included
|
||||
locations, provide flag with empty list. e.g --include-locations=""
|
||||
or --include-locations= .
|
||||
|
||||
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 variant is also available:
|
||||
|
||||
$ gcloud alpha storage intelligence-configs update
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue