File: //snap/google-cloud-cli/394/help/man/man1/gcloud_artifacts_sbom_list.1
.TH "GCLOUD_ARTIFACTS_SBOM_LIST" 1
.SH "NAME"
.HP
gcloud artifacts sbom list \- list SBOM file references
.SH "SYNOPSIS"
.HP
\f5gcloud artifacts sbom list\fR [\fB\-\-location\fR=\fILOCATION\fR] [\fB\-\-dependency\fR=\fIDEPENDENCY\fR\ |\ \fB\-\-resource\fR=\fIRESOURCE\fR\ |\ \fB\-\-resource\-prefix\fR=\fIRESOURCE_PREFIX\fR] [\fB\-\-filter\fR=\fIEXPRESSION\fR] [\fB\-\-limit\fR=\fILIMIT\fR] [\fB\-\-page\-size\fR=\fIPAGE_SIZE\fR] [\fB\-\-sort\-by\fR=[\fIFIELD\fR,...];\ default=\f5"occ.create_time"\fR] [\fIGCLOUD_WIDE_FLAG\ ...\fR]
.SH "DESCRIPTION"
List SBOM file references.
.SH "EXAMPLES"
To list SBOM file references:
.RS 2m
$ gcloud artifacts sbom list
.RE
To list SBOM file references related to the image with the tag
"us\-east1\-docker.pkg.dev/project/repo/my\-image:1.0":
.RS 2m
$ gcloud artifacts sbom list \e
\-\-resource="us\-east1\-docker.pkg.dev/project/repo/my\-image:1.0"
.RE
To list SBOM file references related to the image with the digest
"us\-east1\-docker.pkg.dev/project/repo/my\-image@sha256:88b205d7995332e10e836514fbfd59ecaf8976fc15060cd66e85cdcebe7fb356":
.RS 2m
$ gcloud artifacts sbom list \e
\-\-resource="us\-east1\-docker.pkg.dev/project/repo/my\-image@sha256\e
:88b205d7995332e10e836514fbfd59ecaf8976fc15060cd66e85cdcebe7fb356"
.RE
To list SBOM file references related to the images with the resource path prefix
"us\-east1\-docker.pkg.dev/project/repo":
.RS 2m
$ gcloud artifacts sbom list \e
\-\-resource\-prefix="us\-east1\-docker.pkg.dev/project/repo"
.RE
To list SBOM file references generated when the images were pushed to Artifact
Registry and related to the installed package dependency "perl":
.RS 2m
$ gcloud artifacts sbom list \-\-dependency="perl"
.RE
.SH "FLAGS"
.RS 2m
.TP 2m
\fB\-\-location\fR=\fILOCATION\fR
If specified, all requests to Artifact Analysis for occurrences will go to
location specified
.TP 2m
At most one of these can be specified:
.RS 2m
.TP 2m
\fB\-\-dependency\fR=\fIDEPENDENCY\fR
List SBOM file references generated when the images were pushed to Artifact
Registry and related to the installed package dependency. See
https://cloud.google.com/container\-analysis/docs/scanning\-types for supported
packages.
.TP 2m
\fB\-\-resource\fR=\fIRESOURCE\fR
List SBOM file references related to the image resource uri.
.TP 2m
\fB\-\-resource\-prefix\fR=\fIRESOURCE_PREFIX\fR
List SBOM file references related to the resource uri with the resource path
prefix.
.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,...]; default=\f5"occ.create_time"\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. The
default is \fBocc.create_time\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.