1
0
Fork 0
mirror of https://github.com/imjasonh/gcloud-help synced 2026-07-18 14:56:05 +00:00

gcloud: Tue Oct 18 11:38:19 UTC 2022

This commit is contained in:
Automated 2022-10-18 11:38:19 +00:00
parent 389ff42bae
commit 5c08d21169
Failed to extract signature
159 changed files with 4170 additions and 656 deletions

View file

@ -5,23 +5,47 @@ NAME
SYNOPSIS
gcloud scc notifications create NOTIFICATION_CONFIG_ID
--pubsub-topic=PUBSUB_TOPIC [--description=DESCRIPTION]
[--filter=FILTER] [--organization=ORGANIZATION] [GCLOUD_WIDE_FLAG ...]
[--filter=FILTER]
[--folder=FOLDER | --organization=ORGANIZATION | --project=PROJECT]
[GCLOUD_WIDE_FLAG ...]
DESCRIPTION
Create a Cloud Security Command Center notification config.
EXAMPLES
Create a notification config test-config under organization 123456 for
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:
$ gcloud scc notifications create test-config \
--organization=123456 \
$ 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
on resource name:
$ gcloud scc notifications create test-config --folder=456 \
--pubsub-topic=projects/test-project/topics/notification-test \
--filter="resource_name: \"a\""
$ gcloud scc notifications create \
organizations/123456/notificationConfigs/test-config \
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
on resource name:
$ 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 \
--pubsub-topic=projects/test-project/topics/notification-test \
--filter="resource_name: \"a\""
@ -42,10 +66,19 @@ OPTIONAL FLAGS
--filter=FILTER
Filter to be used for notification config.
--organization=ORGANIZATION
The organization where the notification config resides. Formatted as
"organizations/123" or just "123". Required if notificationConfigId
does not contain organization information.
At most one of these can be specified:
--folder=FOLDER
Folder where the notification config resides. Formatted as
folders/456 or just 456.
--organization=ORGANIZATION
Organization where the notification config resides. Formatted as
organizations/123 or just 123.
--project=PROJECT
Project (ID or number) where the notification config resides.
Formatted as projects/789 or just 789.
GCLOUD WIDE FLAGS
These flags are available to all commands: --access-token-file, --account,

View file

@ -4,18 +4,30 @@ NAME
SYNOPSIS
gcloud scc notifications delete NOTIFICATION_CONFIG_ID
[--organization=ORGANIZATION] [GCLOUD_WIDE_FLAG ...]
[--folder=FOLDER | --organization=ORGANIZATION | --project=PROJECT]
[GCLOUD_WIDE_FLAG ...]
DESCRIPTION
Delete a Cloud Security Command Center notification config.
EXAMPLES
Delete notification config 'my-config' from organization 123456
$ gcloud scc notifications delete my-config --organization=123456
Delete notification config 'my-config' from organization 123
$ gcloud scc notifications delete my-config --organization=123
$ gcloud scc notifications delete \
organization/123456/notificationConfigs/my-config
organizations/123/notificationConfigs/my-config
Delete notification config 'my-config' from folder 456
$ gcloud scc notifications delete my-config --folder=456
$ gcloud scc notifications delete \
folders/456/notificationConfigs/my-config
Delete notification config 'my-config' from project 789
$ gcloud scc notifications delete my-config --project=789
$ gcloud scc notifications delete \
projects/789/notificationConfigs/my-config
POSITIONAL ARGUMENTS
NOTIFICATION_CONFIG_ID
@ -23,10 +35,19 @@ POSITIONAL ARGUMENTS
"organizations/123/notificationConfigs/456" or just "456".
FLAGS
--organization=ORGANIZATION
The organization where the notification config resides. Formatted as
"organizations/123" or just "123". Required if notificationConfigId
does not contain organization information.
At most one of these can be specified:
--folder=FOLDER
Folder where the notification config resides. Formatted as
folders/456 or just 456.
--organization=ORGANIZATION
Organization where the notification config resides. Formatted as
organizations/123 or just 123.
--project=PROJECT
Project (ID or number) where the notification config resides.
Formatted as projects/789 or just 789.
GCLOUD WIDE FLAGS
These flags are available to all commands: --access-token-file, --account,

View file

@ -3,7 +3,7 @@ NAME
notification configs
SYNOPSIS
gcloud scc notifications list [ORGANIZATION] [--filter=EXPRESSION]
gcloud scc notifications list [PARENT] [--filter=EXPRESSION]
[--limit=LIMIT] [--page-size=PAGE_SIZE] [--sort-by=[FIELD,...]]
[GCLOUD_WIDE_FLAG ...]
@ -11,23 +11,29 @@ DESCRIPTION
List Cloud Security Command Center notification configs.
EXAMPLES
List notification configs from organization 123456
List notification configs from organization 123
$ gcloud scc notifications list 123456
$ gcloud scc notifications list 123
$ gcloud scc notifications list organizations/123
$ gcloud scc notifications list organizations/123456
List notification configs from folder 456
$ gcloud scc notifications list folders/456
List notification configs from project 789
$ gcloud scc notifications list projects/789
POSITIONAL ARGUMENTS
Organization resource - The organization to be used for the SCC (Security
Command Center) command. This represents a Cloud resource.
Parent resource - The parent to be used for the SCC (Security Command
Center) command. This represents a Cloud resource.
[ORGANIZATION]
ID of the organization or fully qualified identifier for the
organization. To set the organization attribute:
▸ provide the argument organization on the command line;
▸ Set the organization property in configuration using gcloud
config set scc/organization if it is not specified in command
line..
[PARENT]
ID of the parent or fully qualified identifier for the parent. To set
the organization attribute:
▸ provide the argument parent on the command line;
▸ Set the parent property in configuration using gcloud config set
scc/parent if it is not specified in command line..
LIST COMMAND FLAGS
--filter=EXPRESSION

View file

@ -5,50 +5,75 @@ NAME
SYNOPSIS
gcloud scc notifications update NOTIFICATION_CONFIG_ID
[--description=DESCRIPTION] [--filter=FILTER]
[--organization=ORGANIZATION] [--pubsub-topic=PUBSUB_TOPIC]
[--pubsub-topic=PUBSUB_TOPIC]
[--folder=FOLDER | --organization=ORGANIZATION | --project=PROJECT]
[GCLOUD_WIDE_FLAG ...]
DESCRIPTION
Update a Cloud Security Command Center notification config.
EXAMPLES
Update all mutable fields in my-config (description + pubsub topic +
filter):
Update all mutable fields under an organization parent my-config
(description + pubsub topic + filter):
$ gcloud scc notifications update my-config --organization=123456 \
$ gcloud scc notifications update scc notifications update \
my-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"
$ gcloud scc notifications update \
organizations/123456/notificationConfigs/my-config \
Update all mutable fields under a folder parent my-config (description +
pubsub topic + filter):
$ gcloud scc notifications update scc notifications update \
my-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 +
pubsub topic + filter):
$ gcloud scc notifications update scc notifications update \
my-config --project=789 --description="New description" \
--pubsub-topic="projects/22222/topics/newtopic"
$ 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=123456 \
$ gcloud scc notifications update my-config --organization=123 \
--description="New description"
$ gcloud scc notifications update \
organizations/123456/notificationConfigs/my-config \
organizations/123/notificationConfigs/my-config \
--description="New description"
Update my-config's pubsub-topic
$ gcloud scc notifications update my-config --organization=123456 \
$ gcloud scc notifications update my-config --organization=123 \
--pubsub-topic="projects/22222/topics/newtopic"
$ gcloud scc notifications update \
organizations/123456/notificationConfigs/my-config \
organizations/123/notificationConfigs/my-config \
--pubsub-topic="projects/22222/topics/newtopic"
Update my-config's filter
$ gcloud scc notifications update my-config --organization=123456 \
$ gcloud scc notifications update my-config --organization=123 \
--filter='state = \"ACTIVE\"'
$ gcloud scc notifications update \
organizations/123456/notificationConfigs/my-config \
organizations/123/notificationConfigs/my-config \
--filter='state = \"ACTIVE\"'
POSITIONAL ARGUMENTS
@ -64,15 +89,24 @@ FLAGS
The filter string which will applied to events of findings of a
notification configuration.
--organization=ORGANIZATION
The organization where the notification config resides. Formatted as
"organizations/123" or just "123". Required if notificationConfigId
does not contain organization information.
--pubsub-topic=PUBSUB_TOPIC
The Pub/Sub topic which will receive notifications. Its format is
"projects/[project_id]/topics/[topic]".
At most one of these can be specified:
--folder=FOLDER
Folder where the notification config resides. Formatted as
folders/456 or just 456.
--organization=ORGANIZATION
Organization where the notification config resides. Formatted as
organizations/123 or just 123.
--project=PROJECT
Project (ID or number) where the notification config 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,