mirror of
https://github.com/imjasonh/gcloud-help
synced 2026-07-08 02:25:19 +00:00
gcloud: Thu Feb 29 10:17:22 UTC 2024
This commit is contained in:
parent
8778dcbd7e
commit
37dd57701a
203 changed files with 3473 additions and 5938 deletions
|
|
@ -1,16 +1,22 @@
|
|||
NAME
|
||||
gcloud scc notifications create - create a Cloud Security Command Center
|
||||
gcloud scc notifications create - create a Security Command Center
|
||||
notification config
|
||||
|
||||
SYNOPSIS
|
||||
gcloud scc notifications create NOTIFICATION_CONFIG_ID
|
||||
--pubsub-topic=PUBSUB_TOPIC [--description=DESCRIPTION]
|
||||
[--filter=FILTER]
|
||||
[--filter=FILTER] [--location=LOCATION; default="global"]
|
||||
[--folder=FOLDER | --organization=ORGANIZATION | --project=PROJECT]
|
||||
[GCLOUD_WIDE_FLAG ...]
|
||||
|
||||
DESCRIPTION
|
||||
Create a Cloud Security Command Center notification config.
|
||||
Create a Security Command Center notification config.
|
||||
|
||||
Notification configs that are created with Security Command Center API V2
|
||||
and later include a location attribute. If a location is not specified, the
|
||||
default global location is used. For example, the following Notification
|
||||
config name has location=global attribute:
|
||||
organizations/123/locations/global/notificationConfigs/my-config.
|
||||
|
||||
EXAMPLES
|
||||
Create a notification config test-config under organization 123 for
|
||||
|
|
@ -20,10 +26,6 @@ EXAMPLES
|
|||
$ gcloud scc notifications create test-config --organization=123 \
|
||||
--pubsub-topic=projects/test-project/topics/notification-test \
|
||||
--filter="resource_name: \"a\""
|
||||
$ gcloud scc notifications create \
|
||||
organizations/123/notificationConfigs/test-config \
|
||||
--pubsub-topic=projects/test-project/topics/notification-test \
|
||||
--filter="resource_name: \"a\""
|
||||
|
||||
Create a notification config test-config under folder 456 for findings for
|
||||
pubsub-topic projects/test-project/topics/notification-test with a filter
|
||||
|
|
@ -32,10 +34,6 @@ EXAMPLES
|
|||
$ gcloud scc notifications create test-config --folder=456 \
|
||||
--pubsub-topic=projects/test-project/topics/notification-test \
|
||||
--filter="resource_name: \"a\""
|
||||
$ gcloud scc notifications create \
|
||||
folders/456/notificationConfigs/test-config \
|
||||
--pubsub-topic=projects/test-project/topics/notification-test \
|
||||
--filter="resource_name: \"a\""
|
||||
|
||||
Create a notification config test-config under project 789 for findings for
|
||||
pubsub-topic projects/test-project/topics/notification-test with a filter
|
||||
|
|
@ -44,10 +42,14 @@ EXAMPLES
|
|||
$ gcloud scc notifications create test-config --project=789 \
|
||||
--pubsub-topic=projects/test-project/topics/notification-test \
|
||||
--filter="resource_name: \"a\""
|
||||
$ gcloud scc notifications create \
|
||||
projects/789/notificationConfigs/test-config \
|
||||
|
||||
Create a notification config test-config under organization 123 for
|
||||
findings for pubsub-topic projects/test-project/topics/notification-test
|
||||
with a filter on resource name and location=eu
|
||||
|
||||
$ gcloud scc notifications create test-config --project=789 \
|
||||
--pubsub-topic=projects/test-project/topics/notification-test \
|
||||
--filter="resource_name: \"a\""
|
||||
--filter="resource_name: \"a\"" --location=eu
|
||||
|
||||
POSITIONAL ARGUMENTS
|
||||
NOTIFICATION_CONFIG_ID
|
||||
|
|
@ -66,6 +68,17 @@ OPTIONAL FLAGS
|
|||
--filter=FILTER
|
||||
Filter to be used for notification config.
|
||||
|
||||
--location=LOCATION; default="global"
|
||||
When data residency controls are enabled, this attribute specifies the
|
||||
location in which the resource is located and applicable. The location
|
||||
attribute can be provided as part of the fully specified resource name
|
||||
or with the --location argument on the command line. The default
|
||||
location is global.
|
||||
|
||||
The default location on this command is unrelated to the default
|
||||
location that is specified when data residency controls are enabled for
|
||||
Security Command Center.
|
||||
|
||||
At most one of these can be specified:
|
||||
|
||||
--folder=FOLDER
|
||||
|
|
@ -89,8 +102,9 @@ GCLOUD WIDE FLAGS
|
|||
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
|
||||
This command uses the Security Command Center API. For more information,
|
||||
see Security Command Center API.
|
||||
(https://cloud.google.com/security-command-center/docs/reference/rest)
|
||||
|
||||
NOTES
|
||||
These variants are also available:
|
||||
|
|
|
|||
|
|
@ -1,33 +1,47 @@
|
|||
NAME
|
||||
gcloud scc notifications delete - delete a Cloud Security Command Center
|
||||
gcloud scc notifications delete - delete a Security Command Center
|
||||
notification config
|
||||
|
||||
SYNOPSIS
|
||||
gcloud scc notifications delete NOTIFICATION_CONFIG_ID
|
||||
[--location=LOCATION; default="global"]
|
||||
[--folder=FOLDER | --organization=ORGANIZATION | --project=PROJECT]
|
||||
[GCLOUD_WIDE_FLAG ...]
|
||||
|
||||
DESCRIPTION
|
||||
Delete a Cloud Security Command Center notification config.
|
||||
Delete a Security Command Center notification config.
|
||||
|
||||
Notification configs that are created with Security Command Center API V2
|
||||
and later include a location attribute. If the location attribute is
|
||||
included in the resource name of a Notification configs, you must specify
|
||||
it when referencing the Notification config. For example, the following
|
||||
Notification configs name has location=eu:
|
||||
organizations/123/locations/eu/notificationConfigs/test-config.
|
||||
|
||||
EXAMPLES
|
||||
Delete notification config 'my-config' from organization 123
|
||||
Delete notification config 'test-config' from organization 123
|
||||
|
||||
$ gcloud scc notifications delete my-config --organization=123
|
||||
$ gcloud scc notifications delete \
|
||||
organizations/123/notificationConfigs/my-config
|
||||
$ gcloud scc notifications delete test-config --organization=123
|
||||
|
||||
Delete notification config 'my-config' from folder 456
|
||||
Delete notification config 'test-config' from folder 456
|
||||
|
||||
$ gcloud scc notifications delete my-config --folder=456
|
||||
$ gcloud scc notifications delete \
|
||||
folders/456/notificationConfigs/my-config
|
||||
$ gcloud scc notifications delete test-config --folder=456
|
||||
|
||||
Delete notification config 'my-config' from project 789
|
||||
Delete notification config 'test-config' from project 789
|
||||
|
||||
$ gcloud scc notifications delete my-config --project=789
|
||||
$ gcloud scc notifications delete \
|
||||
projects/789/notificationConfigs/my-config
|
||||
$ gcloud scc notifications delete test-config --project=789
|
||||
|
||||
Delete notification config 'test-config' with location global from
|
||||
organization 123
|
||||
|
||||
$ gcloud scc notifications delete test-config --organization=123 \
|
||||
--location=global
|
||||
|
||||
Delete notification config 'test-config' with location=eu from organization
|
||||
123
|
||||
|
||||
$ gcloud scc notifications delete test-config --organization=123 \
|
||||
--location=eu
|
||||
|
||||
POSITIONAL ARGUMENTS
|
||||
NOTIFICATION_CONFIG_ID
|
||||
|
|
@ -35,6 +49,17 @@ POSITIONAL ARGUMENTS
|
|||
"organizations/123/notificationConfigs/456" or just "456".
|
||||
|
||||
FLAGS
|
||||
--location=LOCATION; default="global"
|
||||
When data residency controls are enabled, this attribute specifies the
|
||||
location in which the resource is located and applicable. The location
|
||||
attribute can be provided as part of the fully specified resource name
|
||||
or with the --location argument on the command line. The default
|
||||
location is global.
|
||||
|
||||
The default location on this command is unrelated to the default
|
||||
location that is specified when data residency controls are enabled for
|
||||
Security Command Center.
|
||||
|
||||
At most one of these can be specified:
|
||||
|
||||
--folder=FOLDER
|
||||
|
|
@ -58,8 +83,9 @@ GCLOUD WIDE FLAGS
|
|||
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
|
||||
This command uses the Security Command Center API. For more information,
|
||||
see Security Command Center API.
|
||||
(https://cloud.google.com/security-command-center/docs/reference/rest)
|
||||
|
||||
NOTES
|
||||
These variants are also available:
|
||||
|
|
|
|||
|
|
@ -1,36 +1,41 @@
|
|||
NAME
|
||||
gcloud scc notifications describe - describe a Cloud Security Command
|
||||
Center notification config
|
||||
gcloud scc notifications describe - describe a Security Command Center
|
||||
notification config
|
||||
|
||||
SYNOPSIS
|
||||
gcloud scc notifications describe NOTIFICATION_CONFIG_ID
|
||||
[--location=LOCATION; default="global"]
|
||||
[--folder=FOLDER | --organization=ORGANIZATION | --project=PROJECT]
|
||||
[GCLOUD_WIDE_FLAG ...]
|
||||
|
||||
DESCRIPTION
|
||||
Describe a Cloud Security Command Center notification config.
|
||||
Describe a Security Command Center notification config.
|
||||
|
||||
Notification configs that are created with Security Command Center API V2
|
||||
and later include a location attribute. If the location attribute is
|
||||
included in the resource name of a Notification configs, you must specify
|
||||
it when referencing the Notification config. For example, the following
|
||||
Notification configs name has location=eu:
|
||||
organizations/123/locations/eu/notificationConfigs/test-config.
|
||||
|
||||
EXAMPLES
|
||||
Describe notification config 'my-config' from organization 123
|
||||
Describe notification config 'test-config' from organization 123
|
||||
|
||||
$ gcloud scc notifications describe notifications describe \
|
||||
my-config --organization=123
|
||||
$ gcloud scc notifications describe notifications describe \
|
||||
organizations/123/notificationConfigs/my-config
|
||||
$ gcloud scc notifications describe test-config --organization=123
|
||||
|
||||
Describe notification config 'my-config' from folder 456
|
||||
Describe notification config 'test-config' from folder 456
|
||||
|
||||
$ gcloud scc notifications describe notifications describe \
|
||||
my-config --folder=456
|
||||
$ gcloud scc notifications describe notifications describe \
|
||||
folders/456/notificationConfigs/my-config
|
||||
$ gcloud scc notifications describe test-config --folder=456
|
||||
|
||||
Describe notification config 'my-config' from project 789
|
||||
Describe notification config 'test-config' from project 789
|
||||
|
||||
$ gcloud scc notifications describe notifications describe \
|
||||
my-config --project=789
|
||||
$ gcloud scc notifications describe notifications describe \
|
||||
projects/789/notificationConfigs/my-config
|
||||
$ gcloud scc notifications describe test-config --project=789
|
||||
|
||||
Describe notification config 'test-config' from organization 123 and
|
||||
location=global
|
||||
|
||||
$ gcloud scc notifications describe test-config --organization=123 \
|
||||
--location=global
|
||||
|
||||
POSITIONAL ARGUMENTS
|
||||
NOTIFICATION_CONFIG_ID
|
||||
|
|
@ -38,6 +43,17 @@ POSITIONAL ARGUMENTS
|
|||
"organizations/123/notificationConfigs/456" or just "456".
|
||||
|
||||
FLAGS
|
||||
--location=LOCATION; default="global"
|
||||
When data residency controls are enabled, this attribute specifies the
|
||||
location in which the resource is located and applicable. The location
|
||||
attribute can be provided as part of the fully specified resource name
|
||||
or with the --location argument on the command line. The default
|
||||
location is global.
|
||||
|
||||
The default location on this command is unrelated to the default
|
||||
location that is specified when data residency controls are enabled for
|
||||
Security Command Center.
|
||||
|
||||
At most one of these can be specified:
|
||||
|
||||
--folder=FOLDER
|
||||
|
|
@ -61,8 +77,9 @@ GCLOUD WIDE FLAGS
|
|||
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
|
||||
This command uses the Security Command Center API. For more information,
|
||||
see Security Command Center API.
|
||||
(https://cloud.google.com/security-command-center/docs/reference/rest)
|
||||
|
||||
NOTES
|
||||
These variants are also available:
|
||||
|
|
|
|||
|
|
@ -17,19 +17,19 @@ COMMANDS
|
|||
COMMAND is one of the following:
|
||||
|
||||
create
|
||||
Create a Cloud Security Command Center notification config.
|
||||
Create a Security Command Center notification config.
|
||||
|
||||
delete
|
||||
Delete a Cloud Security Command Center notification config.
|
||||
Delete a Security Command Center notification config.
|
||||
|
||||
describe
|
||||
Describe a Cloud Security Command Center notification config.
|
||||
Describe a Security Command Center notification config.
|
||||
|
||||
list
|
||||
List Cloud Security Command Center notification configs.
|
||||
List Security Command Center notification configs.
|
||||
|
||||
update
|
||||
Update a Cloud Security Command Center notification config.
|
||||
Update a Security Command Center notification config.
|
||||
|
||||
NOTES
|
||||
These variants are also available:
|
||||
|
|
|
|||
|
|
@ -1,14 +1,19 @@
|
|||
NAME
|
||||
gcloud scc notifications list - list Cloud Security Command Center
|
||||
notification configs
|
||||
gcloud scc notifications list - list Security Command Center notification
|
||||
configs
|
||||
|
||||
SYNOPSIS
|
||||
gcloud scc notifications list [PARENT] [--filter=EXPRESSION]
|
||||
gcloud scc notifications list [PARENT]
|
||||
[--location=LOCATION; default="global"] [--filter=EXPRESSION]
|
||||
[--limit=LIMIT] [--page-size=PAGE_SIZE] [--sort-by=[FIELD,...]]
|
||||
[GCLOUD_WIDE_FLAG ...]
|
||||
|
||||
DESCRIPTION
|
||||
List Cloud Security Command Center notification configs.
|
||||
List Security Command Center notification configs.
|
||||
|
||||
Notification Configs that are created with Security Command Center API V2
|
||||
and later include a `location` attribute. Include the `--location` flag to
|
||||
list Notification Configs with `location` attribute other than `global`.
|
||||
|
||||
EXAMPLES
|
||||
List notification configs from organization 123
|
||||
|
|
@ -24,6 +29,12 @@ EXAMPLES
|
|||
|
||||
$ gcloud scc notifications list projects/789
|
||||
|
||||
List notification configs from organization 123 and location=eu
|
||||
|
||||
$ gcloud scc notifications list 123 --location=eu
|
||||
$ gcloud scc notifications list organizations/123 \
|
||||
--location=locations/eu
|
||||
|
||||
POSITIONAL ARGUMENTS
|
||||
Parent resource - parent organization, folder, or project in the Google
|
||||
Cloud resource hierarchy to be used for the gcloud scc command. Specify
|
||||
|
|
@ -38,6 +49,18 @@ POSITIONAL ARGUMENTS
|
|||
▸ Set the parent property in configuration using gcloud config set
|
||||
scc/parent if it is not specified in command line.
|
||||
|
||||
FLAGS
|
||||
--location=LOCATION; default="global"
|
||||
When data residency controls are enabled, this attribute specifies the
|
||||
location in which the resource is located and applicable. The location
|
||||
attribute can be provided as part of the fully specified resource name
|
||||
or with the --location argument on the command line. The default
|
||||
location is global.
|
||||
|
||||
The default location on this command is unrelated to the default
|
||||
location that is specified when data residency controls are enabled for
|
||||
Security Command Center.
|
||||
|
||||
LIST COMMAND FLAGS
|
||||
--filter=EXPRESSION
|
||||
Apply a Boolean filter EXPRESSION to each resource item to be listed.
|
||||
|
|
@ -73,8 +96,9 @@ GCLOUD WIDE FLAGS
|
|||
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
|
||||
This command uses the Security Command Center API. For more information,
|
||||
see Security Command Center API.
|
||||
(https://cloud.google.com/security-command-center/docs/reference/rest)
|
||||
|
||||
NOTES
|
||||
These variants are also available:
|
||||
|
|
|
|||
|
|
@ -1,80 +1,68 @@
|
|||
NAME
|
||||
gcloud scc notifications update - update a Cloud Security Command Center
|
||||
gcloud scc notifications update - update a Security Command Center
|
||||
notification config
|
||||
|
||||
SYNOPSIS
|
||||
gcloud scc notifications update NOTIFICATION_CONFIG_ID
|
||||
[--description=DESCRIPTION] [--filter=FILTER]
|
||||
[--pubsub-topic=PUBSUB_TOPIC]
|
||||
[--location=LOCATION; default="global"] [--pubsub-topic=PUBSUB_TOPIC]
|
||||
[--folder=FOLDER | --organization=ORGANIZATION | --project=PROJECT]
|
||||
[GCLOUD_WIDE_FLAG ...]
|
||||
|
||||
DESCRIPTION
|
||||
Update a Cloud Security Command Center notification config.
|
||||
Update a Security Command Center notification config.
|
||||
|
||||
Notification configs that are created with Security Command Center API V2
|
||||
and later include a location attribute. If the location attribute is
|
||||
included in the resource name of a Notification configs, you must specify
|
||||
it when referencing the Notification config. For example, the following
|
||||
Notification configs name has location=eu:
|
||||
organizations/123/locations/eu/notificationConfigs/test-config.
|
||||
|
||||
EXAMPLES
|
||||
Update all mutable fields under an organization parent my-config
|
||||
Update all mutable fields under an organization parent test-config
|
||||
(description + pubsub topic + filter):
|
||||
|
||||
$ gcloud scc notifications update scc notifications update \
|
||||
my-config --organization=123 --description="New description" \
|
||||
test-config --organization=123 --description="New description" \
|
||||
--pubsub-topic="projects/22222/topics/newtopic"
|
||||
|
||||
$ gcloud scc notifications update scc notifications update \
|
||||
organizations/123/notificationConfigs/my-config \
|
||||
--description="New description" \
|
||||
--pubsub-topic="projects/22222/topics/newtopic"
|
||||
|
||||
Update all mutable fields under a folder parent my-config (description +
|
||||
Update all mutable fields under a folder parent test-config (description +
|
||||
pubsub topic + filter):
|
||||
|
||||
$ gcloud scc notifications update scc notifications update \
|
||||
my-config --folder=456 --description="New description" \
|
||||
test-config --folder=456 --description="New description" \
|
||||
--pubsub-topic="projects/22222/topics/newtopic"
|
||||
|
||||
$ gcloud scc notifications update scc notifications update \
|
||||
folders/456/notificationConfigs/my-config \
|
||||
--description="New description" \
|
||||
--pubsub-topic="projects/22222/topics/newtopic"
|
||||
|
||||
Update all mutable fields under a project parent my-config (description +
|
||||
Update all mutable fields under a project parent test-config (description +
|
||||
pubsub topic + filter):
|
||||
|
||||
$ gcloud scc notifications update scc notifications update \
|
||||
my-config --project=789 --description="New description" \
|
||||
test-config --project=789 --description="New description" \
|
||||
--pubsub-topic="projects/22222/topics/newtopic"
|
||||
|
||||
Update test-config's description
|
||||
|
||||
$ gcloud scc notifications update test-config --organization=123 \
|
||||
--description="New description"
|
||||
|
||||
Update test-config's pubsub-topic
|
||||
|
||||
$ gcloud scc notifications update test-config --organization=123 \
|
||||
--pubsub-topic="projects/22222/topics/newtopic"
|
||||
|
||||
Update test-config's filter
|
||||
|
||||
$ gcloud scc notifications update test-config --organization=123 \
|
||||
--filter='state = \"ACTIVE\"'
|
||||
|
||||
Update all mutable fields for test-config with location=global under an
|
||||
organization parent (description + pubsub topic + filter):
|
||||
|
||||
$ gcloud scc notifications update scc notifications update \
|
||||
projects/789/notificationConfigs/my-config \
|
||||
--description="New description" \
|
||||
--pubsub-topic="projects/22222/topics/newtopic"
|
||||
|
||||
Update my-config's description
|
||||
|
||||
$ gcloud scc notifications update my-config --organization=123 \
|
||||
--description="New description"
|
||||
|
||||
$ gcloud scc notifications update \
|
||||
organizations/123/notificationConfigs/my-config \
|
||||
--description="New description"
|
||||
|
||||
Update my-config's pubsub-topic
|
||||
|
||||
$ gcloud scc notifications update my-config --organization=123 \
|
||||
--pubsub-topic="projects/22222/topics/newtopic"
|
||||
|
||||
$ gcloud scc notifications update \
|
||||
organizations/123/notificationConfigs/my-config \
|
||||
--pubsub-topic="projects/22222/topics/newtopic"
|
||||
|
||||
Update my-config's filter
|
||||
|
||||
$ gcloud scc notifications update my-config --organization=123 \
|
||||
--filter='state = \"ACTIVE\"'
|
||||
|
||||
$ gcloud scc notifications update \
|
||||
organizations/123/notificationConfigs/my-config \
|
||||
--filter='state = \"ACTIVE\"'
|
||||
test-config --organization=123 --description="New description" \
|
||||
--pubsub-topic="projects/22222/topics/newtopic" \
|
||||
--location=global
|
||||
|
||||
POSITIONAL ARGUMENTS
|
||||
NOTIFICATION_CONFIG_ID
|
||||
|
|
@ -89,6 +77,17 @@ FLAGS
|
|||
The filter string which will applied to events of findings of a
|
||||
notification configuration.
|
||||
|
||||
--location=LOCATION; default="global"
|
||||
When data residency controls are enabled, this attribute specifies the
|
||||
location in which the resource is located and applicable. The location
|
||||
attribute can be provided as part of the fully specified resource name
|
||||
or with the --location argument on the command line. The default
|
||||
location is global.
|
||||
|
||||
The default location on this command is unrelated to the default
|
||||
location that is specified when data residency controls are enabled for
|
||||
Security Command Center.
|
||||
|
||||
--pubsub-topic=PUBSUB_TOPIC
|
||||
The Pub/Sub topic which will receive notifications. Its format is
|
||||
"projects/[project_id]/topics/[topic]".
|
||||
|
|
@ -116,8 +115,9 @@ GCLOUD WIDE FLAGS
|
|||
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
|
||||
This command uses the Security Command Center API. For more information,
|
||||
see Security Command Center API.
|
||||
(https://cloud.google.com/security-command-center/docs/reference/rest)
|
||||
|
||||
NOTES
|
||||
These variants are also available:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue