gcloud scc assets get-project [ORGANIZATION] (--asset=ASSET | --resource-name=RESOURCE_NAME) [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.
Get the Project for an asset given its resource name or asset id.
gcloud scc assets get-project 123456 --resource-name="//storage.googleapis.com/my-bucket"Get project id given an asset's Cloud SCC id 5678 under organization 123456.
gcloud scc assets get-project 123456 --asset=5678ORGANIZATION]organization attribute:
organization on the command line;
gcloud config set
scc/organization if it is not specified in command line..
--asset=ASSET--resource-name=RESOURCE_NAME--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 get-projectgcloud beta scc assets get-project
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.