| <html><body> |
| <style> |
| |
| body, h1, h2, h3, div, span, p, pre, a { |
| margin: 0; |
| padding: 0; |
| border: 0; |
| font-weight: inherit; |
| font-style: inherit; |
| font-size: 100%; |
| font-family: inherit; |
| vertical-align: baseline; |
| } |
| |
| body { |
| font-size: 13px; |
| padding: 1em; |
| } |
| |
| h1 { |
| font-size: 26px; |
| margin-bottom: 1em; |
| } |
| |
| h2 { |
| font-size: 24px; |
| margin-bottom: 1em; |
| } |
| |
| h3 { |
| font-size: 20px; |
| margin-bottom: 1em; |
| margin-top: 1em; |
| } |
| |
| pre, code { |
| line-height: 1.5; |
| font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace; |
| } |
| |
| pre { |
| margin-top: 0.5em; |
| } |
| |
| h1, h2, h3, p { |
| font-family: Arial, sans serif; |
| } |
| |
| h1, h2, h3 { |
| border-bottom: solid #CCC 1px; |
| } |
| |
| .toc_element { |
| margin-top: 0.5em; |
| } |
| |
| .firstline { |
| margin-left: 2 em; |
| } |
| |
| .method { |
| margin-top: 1em; |
| border: solid 1px #CCC; |
| padding: 1em; |
| background: #EEE; |
| } |
| |
| .details { |
| font-weight: bold; |
| font-size: 14px; |
| } |
| |
| </style> |
| |
| <h1><a href="securitycenter_v1.html">Security Command Center API</a> . <a href="securitycenter_v1.organizations.html">organizations</a> . <a href="securitycenter_v1.organizations.notificationConfigs.html">notificationConfigs</a></h1> |
| <h2>Instance Methods</h2> |
| <p class="toc_element"> |
| <code><a href="#create">create(parent, body=None, configId=None, x__xgafv=None)</a></code></p> |
| <p class="firstline">Creates a notification config.</p> |
| <p class="toc_element"> |
| <code><a href="#delete">delete(name, x__xgafv=None)</a></code></p> |
| <p class="firstline">Deletes a notification config.</p> |
| <p class="toc_element"> |
| <code><a href="#get">get(name, x__xgafv=None)</a></code></p> |
| <p class="firstline">Gets a notification config.</p> |
| <p class="toc_element"> |
| <code><a href="#list">list(parent, pageSize=None, pageToken=None, x__xgafv=None)</a></code></p> |
| <p class="firstline">Lists notification configs.</p> |
| <p class="toc_element"> |
| <code><a href="#list_next">list_next(previous_request, previous_response)</a></code></p> |
| <p class="firstline">Retrieves the next page of results.</p> |
| <p class="toc_element"> |
| <code><a href="#patch">patch(name, body=None, updateMask=None, x__xgafv=None)</a></code></p> |
| <p class="firstline"></p> |
| <h3>Method Details</h3> |
| <div class="method"> |
| <code class="details" id="create">create(parent, body=None, configId=None, x__xgafv=None)</code> |
| <pre>Creates a notification config. |
| |
| Args: |
| parent: string, Required. Resource name of the new notification config's parent. Its format is |
| "organizations/[organization_id]". (required) |
| body: object, The request body. |
| The object takes the form of: |
| |
| { # Cloud Security Command Center (Cloud SCC) notification configs. |
| # |
| # A notification config is a Cloud SCC resource that contains the configuration |
| # to send notifications for create/update events of findings, assets and etc. |
| "pubsubTopic": "A String", # The PubSub topic to send notifications to. Its format is |
| # "projects/[project_id]/topics/[topic]". |
| "name": "A String", # The relative resource name of this notification config. See: |
| # https://cloud.google.com/apis/design/resource_names#relative_resource_name |
| # Example: |
| # "organizations/{organization_id}/notificationConfigs/notify_public_bucket". |
| "streamingConfig": { # The config for streaming-based notifications, which send each event as soon # The config for triggering streaming-based notifications. |
| # as it is detected. |
| "filter": "A String", # Expression that defines the filter to apply across create/update events |
| # of assets or findings as specified by the event type. The expression is a |
| # list of zero or more restrictions combined via logical operators `AND` |
| # and `OR`. Parentheses are supported, and `OR` has higher precedence than |
| # `AND`. |
| # |
| # Restrictions have the form `<field> <operator> <value>` and may have a |
| # `-` character in front of them to indicate negation. The fields map to |
| # those defined in the corresponding resource. |
| # |
| # The supported operators are: |
| # |
| # * `=` for all value types. |
| # * `>`, `<`, `>=`, `<=` for integer values. |
| # * `:`, meaning substring matching, for strings. |
| # |
| # The supported value types are: |
| # |
| # * string literals in quotes. |
| # * integer literals without quotes. |
| # * boolean literals `true` and `false` without quotes. |
| }, |
| "serviceAccount": "A String", # Output only. The service account that needs "pubsub.topics.publish" |
| # permission to publish to the PubSub topic. |
| "description": "A String", # The description of the notification config (max of 1024 characters). |
| } |
| |
| configId: string, Required. |
| Unique identifier provided by the client within the parent scope. |
| It must be between 1 and 128 characters, and contains alphanumeric |
| characters, underscores or hyphens only. |
| x__xgafv: string, V1 error format. |
| Allowed values |
| 1 - v1 error format |
| 2 - v2 error format |
| |
| Returns: |
| An object of the form: |
| |
| { # Cloud Security Command Center (Cloud SCC) notification configs. |
| # |
| # A notification config is a Cloud SCC resource that contains the configuration |
| # to send notifications for create/update events of findings, assets and etc. |
| "pubsubTopic": "A String", # The PubSub topic to send notifications to. Its format is |
| # "projects/[project_id]/topics/[topic]". |
| "name": "A String", # The relative resource name of this notification config. See: |
| # https://cloud.google.com/apis/design/resource_names#relative_resource_name |
| # Example: |
| # "organizations/{organization_id}/notificationConfigs/notify_public_bucket". |
| "streamingConfig": { # The config for streaming-based notifications, which send each event as soon # The config for triggering streaming-based notifications. |
| # as it is detected. |
| "filter": "A String", # Expression that defines the filter to apply across create/update events |
| # of assets or findings as specified by the event type. The expression is a |
| # list of zero or more restrictions combined via logical operators `AND` |
| # and `OR`. Parentheses are supported, and `OR` has higher precedence than |
| # `AND`. |
| # |
| # Restrictions have the form `<field> <operator> <value>` and may have a |
| # `-` character in front of them to indicate negation. The fields map to |
| # those defined in the corresponding resource. |
| # |
| # The supported operators are: |
| # |
| # * `=` for all value types. |
| # * `>`, `<`, `>=`, `<=` for integer values. |
| # * `:`, meaning substring matching, for strings. |
| # |
| # The supported value types are: |
| # |
| # * string literals in quotes. |
| # * integer literals without quotes. |
| # * boolean literals `true` and `false` without quotes. |
| }, |
| "serviceAccount": "A String", # Output only. The service account that needs "pubsub.topics.publish" |
| # permission to publish to the PubSub topic. |
| "description": "A String", # The description of the notification config (max of 1024 characters). |
| }</pre> |
| </div> |
| |
| <div class="method"> |
| <code class="details" id="delete">delete(name, x__xgafv=None)</code> |
| <pre>Deletes a notification config. |
| |
| Args: |
| name: string, Required. Name of the notification config to delete. Its format is |
| "organizations/[organization_id]/notificationConfigs/[config_id]". (required) |
| x__xgafv: string, V1 error format. |
| Allowed values |
| 1 - v1 error format |
| 2 - v2 error format |
| |
| Returns: |
| An object of the form: |
| |
| { # A generic empty message that you can re-use to avoid defining duplicated |
| # empty messages in your APIs. A typical example is to use it as the request |
| # or the response type of an API method. For instance: |
| # |
| # service Foo { |
| # rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); |
| # } |
| # |
| # The JSON representation for `Empty` is empty JSON object `{}`. |
| }</pre> |
| </div> |
| |
| <div class="method"> |
| <code class="details" id="get">get(name, x__xgafv=None)</code> |
| <pre>Gets a notification config. |
| |
| Args: |
| name: string, Required. Name of the notification config to get. Its format is |
| "organizations/[organization_id]/notificationConfigs/[config_id]". (required) |
| x__xgafv: string, V1 error format. |
| Allowed values |
| 1 - v1 error format |
| 2 - v2 error format |
| |
| Returns: |
| An object of the form: |
| |
| { # Cloud Security Command Center (Cloud SCC) notification configs. |
| # |
| # A notification config is a Cloud SCC resource that contains the configuration |
| # to send notifications for create/update events of findings, assets and etc. |
| "pubsubTopic": "A String", # The PubSub topic to send notifications to. Its format is |
| # "projects/[project_id]/topics/[topic]". |
| "name": "A String", # The relative resource name of this notification config. See: |
| # https://cloud.google.com/apis/design/resource_names#relative_resource_name |
| # Example: |
| # "organizations/{organization_id}/notificationConfigs/notify_public_bucket". |
| "streamingConfig": { # The config for streaming-based notifications, which send each event as soon # The config for triggering streaming-based notifications. |
| # as it is detected. |
| "filter": "A String", # Expression that defines the filter to apply across create/update events |
| # of assets or findings as specified by the event type. The expression is a |
| # list of zero or more restrictions combined via logical operators `AND` |
| # and `OR`. Parentheses are supported, and `OR` has higher precedence than |
| # `AND`. |
| # |
| # Restrictions have the form `<field> <operator> <value>` and may have a |
| # `-` character in front of them to indicate negation. The fields map to |
| # those defined in the corresponding resource. |
| # |
| # The supported operators are: |
| # |
| # * `=` for all value types. |
| # * `>`, `<`, `>=`, `<=` for integer values. |
| # * `:`, meaning substring matching, for strings. |
| # |
| # The supported value types are: |
| # |
| # * string literals in quotes. |
| # * integer literals without quotes. |
| # * boolean literals `true` and `false` without quotes. |
| }, |
| "serviceAccount": "A String", # Output only. The service account that needs "pubsub.topics.publish" |
| # permission to publish to the PubSub topic. |
| "description": "A String", # The description of the notification config (max of 1024 characters). |
| }</pre> |
| </div> |
| |
| <div class="method"> |
| <code class="details" id="list">list(parent, pageSize=None, pageToken=None, x__xgafv=None)</code> |
| <pre>Lists notification configs. |
| |
| Args: |
| parent: string, Required. Name of the organization to list notification configs. |
| Its format is "organizations/[organization_id]". (required) |
| pageSize: integer, The maximum number of results to return in a single response. Default is |
| 10, minimum is 1, maximum is 1000. |
| pageToken: string, The value returned by the last `ListNotificationConfigsResponse`; indicates |
| that this is a continuation of a prior `ListNotificationConfigs` call, and |
| that the system should return the next page of data. |
| x__xgafv: string, V1 error format. |
| Allowed values |
| 1 - v1 error format |
| 2 - v2 error format |
| |
| Returns: |
| An object of the form: |
| |
| { # Response message for listing notification configs. |
| "nextPageToken": "A String", # Token to retrieve the next page of results, or empty if there are no more |
| # results. |
| "notificationConfigs": [ # Notification configs belonging to the requested parent. |
| { # Cloud Security Command Center (Cloud SCC) notification configs. |
| # |
| # A notification config is a Cloud SCC resource that contains the configuration |
| # to send notifications for create/update events of findings, assets and etc. |
| "pubsubTopic": "A String", # The PubSub topic to send notifications to. Its format is |
| # "projects/[project_id]/topics/[topic]". |
| "name": "A String", # The relative resource name of this notification config. See: |
| # https://cloud.google.com/apis/design/resource_names#relative_resource_name |
| # Example: |
| # "organizations/{organization_id}/notificationConfigs/notify_public_bucket". |
| "streamingConfig": { # The config for streaming-based notifications, which send each event as soon # The config for triggering streaming-based notifications. |
| # as it is detected. |
| "filter": "A String", # Expression that defines the filter to apply across create/update events |
| # of assets or findings as specified by the event type. The expression is a |
| # list of zero or more restrictions combined via logical operators `AND` |
| # and `OR`. Parentheses are supported, and `OR` has higher precedence than |
| # `AND`. |
| # |
| # Restrictions have the form `<field> <operator> <value>` and may have a |
| # `-` character in front of them to indicate negation. The fields map to |
| # those defined in the corresponding resource. |
| # |
| # The supported operators are: |
| # |
| # * `=` for all value types. |
| # * `>`, `<`, `>=`, `<=` for integer values. |
| # * `:`, meaning substring matching, for strings. |
| # |
| # The supported value types are: |
| # |
| # * string literals in quotes. |
| # * integer literals without quotes. |
| # * boolean literals `true` and `false` without quotes. |
| }, |
| "serviceAccount": "A String", # Output only. The service account that needs "pubsub.topics.publish" |
| # permission to publish to the PubSub topic. |
| "description": "A String", # The description of the notification config (max of 1024 characters). |
| }, |
| ], |
| }</pre> |
| </div> |
| |
| <div class="method"> |
| <code class="details" id="list_next">list_next(previous_request, previous_response)</code> |
| <pre>Retrieves the next page of results. |
| |
| Args: |
| previous_request: The request for the previous page. (required) |
| previous_response: The response from the request for the previous page. (required) |
| |
| Returns: |
| A request object that you can call 'execute()' on to request the next |
| page. Returns None if there are no more items in the collection. |
| </pre> |
| </div> |
| |
| <div class="method"> |
| <code class="details" id="patch">patch(name, body=None, updateMask=None, x__xgafv=None)</code> |
| <pre> |
| Updates a notification config. The following update |
| fields are allowed: description, pubsub_topic, streaming_config.filter |
| |
| Args: |
| name: string, The relative resource name of this notification config. See: |
| https://cloud.google.com/apis/design/resource_names#relative_resource_name |
| Example: |
| "organizations/{organization_id}/notificationConfigs/notify_public_bucket". (required) |
| body: object, The request body. |
| The object takes the form of: |
| |
| { # Cloud Security Command Center (Cloud SCC) notification configs. |
| # |
| # A notification config is a Cloud SCC resource that contains the configuration |
| # to send notifications for create/update events of findings, assets and etc. |
| "pubsubTopic": "A String", # The PubSub topic to send notifications to. Its format is |
| # "projects/[project_id]/topics/[topic]". |
| "name": "A String", # The relative resource name of this notification config. See: |
| # https://cloud.google.com/apis/design/resource_names#relative_resource_name |
| # Example: |
| # "organizations/{organization_id}/notificationConfigs/notify_public_bucket". |
| "streamingConfig": { # The config for streaming-based notifications, which send each event as soon # The config for triggering streaming-based notifications. |
| # as it is detected. |
| "filter": "A String", # Expression that defines the filter to apply across create/update events |
| # of assets or findings as specified by the event type. The expression is a |
| # list of zero or more restrictions combined via logical operators `AND` |
| # and `OR`. Parentheses are supported, and `OR` has higher precedence than |
| # `AND`. |
| # |
| # Restrictions have the form `<field> <operator> <value>` and may have a |
| # `-` character in front of them to indicate negation. The fields map to |
| # those defined in the corresponding resource. |
| # |
| # The supported operators are: |
| # |
| # * `=` for all value types. |
| # * `>`, `<`, `>=`, `<=` for integer values. |
| # * `:`, meaning substring matching, for strings. |
| # |
| # The supported value types are: |
| # |
| # * string literals in quotes. |
| # * integer literals without quotes. |
| # * boolean literals `true` and `false` without quotes. |
| }, |
| "serviceAccount": "A String", # Output only. The service account that needs "pubsub.topics.publish" |
| # permission to publish to the PubSub topic. |
| "description": "A String", # The description of the notification config (max of 1024 characters). |
| } |
| |
| updateMask: string, The FieldMask to use when updating the notification config. |
| |
| If empty all mutable fields will be updated. |
| x__xgafv: string, V1 error format. |
| Allowed values |
| 1 - v1 error format |
| 2 - v2 error format |
| |
| Returns: |
| An object of the form: |
| |
| { # Cloud Security Command Center (Cloud SCC) notification configs. |
| # |
| # A notification config is a Cloud SCC resource that contains the configuration |
| # to send notifications for create/update events of findings, assets and etc. |
| "pubsubTopic": "A String", # The PubSub topic to send notifications to. Its format is |
| # "projects/[project_id]/topics/[topic]". |
| "name": "A String", # The relative resource name of this notification config. See: |
| # https://cloud.google.com/apis/design/resource_names#relative_resource_name |
| # Example: |
| # "organizations/{organization_id}/notificationConfigs/notify_public_bucket". |
| "streamingConfig": { # The config for streaming-based notifications, which send each event as soon # The config for triggering streaming-based notifications. |
| # as it is detected. |
| "filter": "A String", # Expression that defines the filter to apply across create/update events |
| # of assets or findings as specified by the event type. The expression is a |
| # list of zero or more restrictions combined via logical operators `AND` |
| # and `OR`. Parentheses are supported, and `OR` has higher precedence than |
| # `AND`. |
| # |
| # Restrictions have the form `<field> <operator> <value>` and may have a |
| # `-` character in front of them to indicate negation. The fields map to |
| # those defined in the corresponding resource. |
| # |
| # The supported operators are: |
| # |
| # * `=` for all value types. |
| # * `>`, `<`, `>=`, `<=` for integer values. |
| # * `:`, meaning substring matching, for strings. |
| # |
| # The supported value types are: |
| # |
| # * string literals in quotes. |
| # * integer literals without quotes. |
| # * boolean literals `true` and `false` without quotes. |
| }, |
| "serviceAccount": "A String", # Output only. The service account that needs "pubsub.topics.publish" |
| # permission to publish to the PubSub topic. |
| "description": "A String", # The description of the notification config (max of 1024 characters). |
| }</pre> |
| </div> |
| |
| </body></html> |