HEX
Server: Apache/2.4.59 (Debian)
System: Linux keymana 4.19.0-21-cloud-amd64 #1 SMP Debian 4.19.249-2 (2022-06-30) x86_64
User: lijunjie (1003)
PHP: 7.4.33
Disabled: pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare,
Upload Files
File: //lib/google-cloud-sdk/lib/surface/scc/notifications/create.yaml
- release_tracks: [ALPHA, BETA, GA]

  help_text:
    brief: Create a Cloud Security Command Center notification config.
    description: Create a Cloud Security Command Center notification config.
    examples: |
      Create a notification config test-config under organization 123456 for findings for pubsub-topic projects/test-project/topics/notification-test with a filter on resource name:

        $ {command} test-config --organization=123456 --pubsub-topic=projects/test-project/topics/notification-test --filter="resource_name: \"a\""

        $ {command} organizations/123456/notificationConfigs/test-config --pubsub-topic=projects/test-project/topics/notification-test --filter="resource_name: \"a\""

  request:
    collection: securitycenter.organizations.notificationConfigs
    disable_resource_check: true
    api_version: v1
    modify_request_hooks:
    - googlecloudsdk.command_lib.scc.notifications.request_hooks:CreateNotificationReqHook

  arguments:

    params:
    - arg_name: notificationConfigId
      is_positional: true
      required: true
      api_field: notificationConfig.name
      help_text: |
        The ID of the notification config. Formatted as "organizations/123/notificationConfigs/456" or just "456".

    - arg_name: organization
      required: false
      api_field: parent
      help_text: |
        The organization where the notification config resides. Formatted as "organizations/123" or just "123". Required if notificationConfigId does not contain organization information.

    - arg_name: filter
      required: false
      api_field: notificationConfig.streamingConfig.filter
      help_text: |
        Filter to be used for notification config.

    - arg_name: pubsub-topic
      api_field: notificationConfig.pubsubTopic
      required: true
      help_text: |
        The Pub/Sub topic which will receive notifications. Its format is
        "projects/[project_id]/topics/[topic]".

    - !REF googlecloudsdk.command_lib.scc.notifications.flags:description