File: //snap/google-cloud-cli/394/help/man/man1/gcloud_scc_notifications_list.1
.TH "GCLOUD_SCC_NOTIFICATIONS_LIST" 1
.SH "NAME"
.HP
gcloud scc notifications list \- list Security Command Center notification configs
.SH "SYNOPSIS"
.HP
\f5gcloud scc notifications list\fR [\fIPARENT\fR] [\fB\-\-location\fR=\fILOCATION\fR;\ default="global"] [\fB\-\-folder\fR=\fIFOLDER\fR\ |\ \fB\-\-organization\fR=\fIORGANIZATION\fR\ |\ \fB\-\-project\fR=\fIPROJECT\fR] [\fB\-\-filter\fR=\fIEXPRESSION\fR] [\fB\-\-limit\fR=\fILIMIT\fR] [\fB\-\-page\-size\fR=\fIPAGE_SIZE\fR] [\fB\-\-sort\-by\fR=[\fIFIELD\fR,...]] [\fIGCLOUD_WIDE_FLAG\ ...\fR]
.SH "DESCRIPTION"
List Security Command Center notification configs.
.RS 2m
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`.
.RE
.SH "EXAMPLES"
List notification configs from organization \f5123\fR
.RS 2m
$ gcloud scc notifications list 123
$ gcloud scc notifications list organizations/123
.RE
List notification configs from folder \f5456\fR
.RS 2m
$ gcloud scc notifications list folders/456
.RE
List notification configs from project \f5789\fR
.RS 2m
$ gcloud scc notifications list projects/789
.RE
List notification configs from organization \f5123\fR and \f5location=eu\fR
.RS 2m
$ gcloud scc notifications list 123 \-\-location=eu
$ gcloud scc notifications list organizations/123 \e
\-\-location=locations/eu
.RE
.SH "POSITIONAL ARGUMENTS"
.RS 2m
.TP 2m
Parent resource \- parent organization, folder, or project in the Google Cloud
resource hierarchy to be used for the \f5gcloud scc\fR command. Specify the
argument as either [RESOURCE_TYPE/RESOURCE_ID] or [RESOURCE_ID], as shown in the
preceding examples. This represents a Cloud resource.
.RS 2m
.TP 2m
[\fIPARENT\fR]
ID of the parent or fully qualified identifier for the parent.
To set the \f5parent\fR attribute:
.RS 2m
.IP "\(bu" 2m
provide the argument \f5parent\fR on the command line;
.IP "\(bu" 2m
Set the parent property in configuration using \f5gcloud config set
scc/parent\fR if it is not specified in command line.
.RE
.sp
.RE
.RE
.sp
.SH "FLAGS"
.RS 2m
.TP 2m
\fB\-\-location\fR=\fILOCATION\fR; default="global"
Required if either data residency is enabled or the \f5notificationConfig\fR
resources were created by using the API v2.
If data residency is enabled, specify the Security Command Center location in
which the notifications are stored.
If data residency is not enabled, including \f5/locations/``\fRLOCATION'' in the
name or the \f5\-\-location\fR flag in the command lists only the
\f5notificationConfig\fR resources that were created by using the Security
Command Center API v2 and the only valid location is \f5global\fR.
.TP 2m
At most one of these can be specified:
.RS 2m
.TP 2m
\fB\-\-folder\fR=\fIFOLDER\fR
Folder where the notification config resides. Formatted as
\f5\fIfolders/456\fR\fR or just \f5\fI456\fR\fR.
.TP 2m
\fB\-\-organization\fR=\fIORGANIZATION\fR
Organization where the notification config resides. Formatted as
\f5\fIorganizations/123\fR\fR or just \f5\fI123\fR\fR.
.TP 2m
\fB\-\-project\fR=\fIPROJECT\fR
Project (ID or number) where the notification config resides. Formatted as
\f5\fIprojects/789\fR\fR or just \f5\fI789\fR\fR.
.RE
.RE
.sp
.SH "LIST COMMAND FLAGS"
.RS 2m
.TP 2m
\fB\-\-filter\fR=\fIEXPRESSION\fR
Apply a Boolean filter \fIEXPRESSION\fR to each resource item to be listed. If
the expression evaluates \f5True\fR, then that item is listed. For more details
and examples of filter expressions, run $ gcloud topic filters. This flag
interacts with other flags that are applied in this order: \fB\-\-flatten\fR,
\fB\-\-sort\-by\fR, \fB\-\-filter\fR, \fB\-\-limit\fR.
.TP 2m
\fB\-\-limit\fR=\fILIMIT\fR
Maximum number of resources to list. The default is \fBunlimited\fR. This flag
interacts with other flags that are applied in this order: \fB\-\-flatten\fR,
\fB\-\-sort\-by\fR, \fB\-\-filter\fR, \fB\-\-limit\fR.
.TP 2m
\fB\-\-page\-size\fR=\fIPAGE_SIZE\fR
Some services group resource list output into pages. This flag specifies the
maximum number of resources per page. The default is determined by the service
if it supports paging, otherwise it is \fBunlimited\fR (no paging). Paging may
be applied before or after \fB\-\-filter\fR and \fB\-\-limit\fR depending on the
service.
.TP 2m
\fB\-\-sort\-by\fR=[\fIFIELD\fR,...]
Comma\-separated list of resource field key names to sort by. The default order
is ascending. Prefix a field with ``~'' for descending order on that field. This
flag interacts with other flags that are applied in this order:
\fB\-\-flatten\fR, \fB\-\-sort\-by\fR, \fB\-\-filter\fR, \fB\-\-limit\fR.
.RE
.sp
.SH "GCLOUD WIDE FLAGS"
These flags are available to all commands: \-\-access\-token\-file, \-\-account,
\-\-billing\-project, \-\-configuration, \-\-flags\-file, \-\-flatten,
\-\-format, \-\-help, \-\-impersonate\-service\-account, \-\-log\-http,
\-\-project, \-\-quiet, \-\-trace\-token, \-\-user\-output\-enabled,
\-\-verbosity.
Run \fB$ gcloud help\fR for details.
.SH "API REFERENCE"
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)
.SH "NOTES"
These variants are also available:
.RS 2m
$ gcloud alpha scc notifications list
.RE
.RS 2m
$ gcloud beta scc notifications list
.RE