File: //lib/google-cloud-sdk/lib/surface/scc/notifications/update.yaml
- release_tracks: [ALPHA, BETA, GA]
help_text:
brief: Update a Cloud Security Command Center notification config.
description: Update a Cloud Security Command Center notification config.
examples: |
Update all mutable fields in ``my-config'' (description + pubsub topic + filter):
$ {command} my-config --organization=123456 --description "New description" --pubsub_topic "projects/22222/topics/newtopic"
$ {command} organizations/123456/notificationConfigs/my-config --description "New description" --pubsub_topic "projects/22222/topics/newtopic"
Update my-config's description
$ {command} my-config --organization=123456 --description "New description"
$ {command} organizations/123456/notificationConfigs/my-config --description "New description"
Update my-config's pubsub-topic
$ {command} my-config --organization=123456 --pubsub_topic "projects/22222/topics/newtopic"
$ {command} organizations/123456/notificationConfigs/my-config --pubsub_topic "projects/22222/topics/newtopic"
Update my-config's filter
$ {command} my-config --organization=123456 --filter='state = \"ACTIVE\"'
$ {command} organizations/123456/notificationConfigs/my-config --filter='state = \"ACTIVE\"'
request:
collection: securitycenter.organizations.notificationConfigs
disable_resource_check: true
api_version: v1
method: patch
modify_request_hooks:
- googlecloudsdk.command_lib.scc.notifications.request_hooks:UpdateNotificationReqHook
arguments:
params:
- arg_name: notificationConfigId
api_field: name
is_positional: true
required: true
help_text: |
The ID of the notification config. Formatted as "organizations/123/notificationConfigs/456" or just "456".
- arg_name: organization
required: false
help_text: |
The organization where the notification config resides. Formatted as "organizations/123" or just "123". Required if notificationConfigId does not contain organization information.
- !REF googlecloudsdk.command_lib.scc.notifications.flags:description
- !REF googlecloudsdk.command_lib.scc.notifications.flags:pubsub_topic
- !REF googlecloudsdk.command_lib.scc.notifications.flags:filter