gcloud scc assets list [PARENT] [--compare-duration=COMPARE_DURATION] [--field-mask=FIELD_MASK] [--order-by=ORDER_BY] [--page-token=PAGE_TOKEN] [--read-time=READ_TIME] [--filter=EXPRESSION] [--limit=LIMIT] [--page-size=PAGE_SIZE] [--sort-by=[FIELD,…]] [GCLOUD_WIDE_FLAG …]
(DEPRECATED) Security Command Center Asset APIs are deprecated and
will be removed on or after June 26, 2024. Use Cloud Asset Inventory instead (gcloud asset).
For more information, see
the deprecation notice at Assets Page.
List Cloud Security Command Center assets.
gcloud scc assets list 123456List all assets under project (example-project)
gcloud scc assets list projects/example-projectList all assets under folder (456)
gcloud scc assets list folders/456List all assets under organization (123456) that were present as of 2019-01-01T01:00:00 GMT time.
gcloud scc assets list 123456 --read-time="2019-01-01T01:00:00Z"Only list category and resource_name for all assets under organization (123456):
gcloud scc assets list 123456 --field-mask="category,resource_name"List all compute instances under organization (123456):
gcloud scc assets list 123456 --filter="security_center_properties.resource_type=\"google.compute.Instance\""List all firewall rules that have open HTTP Ports:
gcloud scc assets list 123456 --filter="security_center_properties.resource_type = \"google.compute.Firewall\" AND resource_properties.name =\"default-allow-http\""List all assets that belong to either projects: 5678 OR 78910 (project's numeric identifier).
gcloud scc assets list 123456 --filter="security_center_properties.resource_parent = \"//cloudresourcemanager.googleapis.com/projects/5678\" OR security_center_properties.resource_parent = "\78910\""List all projects that are owned by a user:someone@domain.com. Notice the usage of : which enforces partial matching.
gcloud scc assets list 123456 --filter="security_center_properties.resource_type = \"google.cloud.resourcemanager.Project\" AND security_center_properties.resource_owners : \"user:someone@domain.com\""List assets and add a state_change property that indicates if the asset was added, removed, or remained present during the past 24 hours period:
gcloud scc assets list 123456 --compare-duration=86400sgcloud scc command. Specify the
argument as either [RESOURCE_TYPE/RESOURCE_ID] or [RESOURCE_ID], as shown in the
preceding examples. This represents a Cloud resource.
PARENT]parent attribute:
parent on the command line;
gcloud config set
scc/parent if it is not specified in command line.
--compare-duration=COMPARE_DURATION$ gcloud topic datetimes
for information on supported duration formats.
--field-mask=FIELD_MASK--order-by=ORDER_BY--page-token=PAGE_TOKEN--read-time=READ_TIME$ gcloud topic datetimes
for information on supported time formats.
--filter=EXPRESSIONEXPRESSION to each resource item
to be listed. If the expression evaluates True, 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:
--flatten, --sort-by, --filter,
--limit.
--limit=LIMITunlimited. This
flag interacts with other flags that are applied in this order:
--flatten, --sort-by, --filter,
--limit.
--page-size=PAGE_SIZEunlimited (no paging).
Paging may be applied before or after --filter and
--limit depending on the service.
--sort-by=[FIELD,…]--flatten, --sort-by, --filter,
--limit.
--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 $ gcloud help for details.
securitycenter/v1 API. The full documentation
for this API can be found at: https://cloud.google.com/security-command-center
gcloud alpha scc assets listgcloud beta scc assets list
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2026-05-27 UTC.