gcloud beta scc assets describe Stay organized with collections Save and categorize content based on your preferences.
- NAME
- gcloud beta scc assets describe - describe an asset given its resource name or asset id
- SYNOPSIS
gcloud beta scc assets describe[PARENT](--asset=ASSET|--resource-name=RESOURCE_NAME)[GCLOUD_WIDE_FLAG …]
- DESCRIPTION
(BETA)(DEPRECATED)Security Command Center Asset APIsare deprecated and will be removed on or after June 26, 2024. Use Cloud AssetInventory instead(gcloud asset).For more information,seethe deprecation notice at Assets Page.Describe an asset given its resource name or asset id.- EXAMPLES
- Describe an asset under organization 123456, given its full resource name(https://cloud.google.com/apis/design/resource_names#full_resource_name) e.g.//storage.googleapis.com/my-bucket:
gcloudbetasccassetsdescribe123456--resource-name="//storage.googleapis.com/my-bucket"Describe an asset under organization 123456, given its Cloud SCC asset id 5678
gcloudbetasccassetsdescribe123456--asset=5678Describe an asset under project example-project, given its Cloud SCC asset id5678
gcloudbetasccassetsdescribeprojects/example-project/assets/5678Describe an asset under folder 456, given its Cloud SCC asset id 5678
gcloudbetasccassetsdescribefolders/456/assets/5678 - POSITIONAL ARGUMENTS
- Parent resource - parent organization, folder, or project in the Google Cloudresource hierarchy to be used for the
gcloud scccommand. Specify theargument as either [RESOURCE_TYPE/RESOURCE_ID] or [RESOURCE_ID], as shown in thepreceding examples. This represents a Cloud resource.- [
PARENT] - ID of the parent or fully qualified identifier for the parent.
To set the
parentattribute:- provide the argument
parenton the command line; - Set the parent property in configuration using
gcloud config setscc/parentif it is not specified in command line.
- provide the argument
- [
- Parent resource - parent organization, folder, or project in the Google Cloudresource hierarchy to be used for the
- REQUIRED FLAGS
- Exactly one of these must be specified:
--asset=ASSET- Cloud SCC specific asset. It's derived from the the asset's relative resourcename. See:https://cloud.google.com/apis/design/resource_names#relative_resource_name.For Example, for the given asset name: "organizations/123/assets/456", 456represents asset id.
--resource-name=RESOURCE_NAME- Asset's resource name. Full resource name of the Google Cloud Platform resourcethis asset represents. This field is immutable after create time. See:https://cloud.google.com/apis/design/resource_names#full_resource_name.For Example: "//cloudresourcemanager.googleapis.com/projects/1234567890123"could be the resource-name for a project.
- Exactly one of these must be specified:
- 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
$gcloud helpfor details. - API REFERENCE
- This command uses the
securitycenter/v1API. The full documentationfor this API can be found at:https://cloud.google.com/security-command-center - NOTES
- This command is currently in beta and might change without notice. Thesevariants are also available:
gcloudsccassetsdescribegcloudalphasccassetsdescribe
Except as otherwise noted, the content of this page is licensed under theCreative Commons Attribution 4.0 License, and code samples are licensed under theApache 2.0 License. For details, see theGoogle Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-05-07 UTC.