HEX
Server: Apache/2.4.65 (Ubuntu)
System: Linux ielts-store-v2 6.8.0-1036-gcp #38~22.04.1-Ubuntu SMP Thu Aug 14 01:19:18 UTC 2025 x86_64
User: root (0)
PHP: 7.2.34-54+ubuntu20.04.1+deb.sury.org+1
Disabled: pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,
Upload Files
File: //snap/google-cloud-cli/396/help/man/man1/gcloud_alpha_scc_assets_get-project.1
.TH "GCLOUD_ALPHA_SCC_ASSETS_GET\-PROJECT" 1



.SH "NAME"
.HP
gcloud alpha scc assets get\-project \- get the Project for an asset given its resource name or asset id



.SH "SYNOPSIS"
.HP
\f5gcloud alpha scc assets get\-project\fR [\fIORGANIZATION\fR] (\fB\-\-asset\fR=\fIASSET\fR\ |\ \fB\-\-resource\-name\fR=\fIRESOURCE_NAME\fR) [\fIGCLOUD_WIDE_FLAG\ ...\fR]



.SH "DESCRIPTION"

\fB(ALPHA)\fR \fB(DEPRECATED)\fR Security Command Center Asset APIs are
deprecated and will be removed on or after June 26, 2024. Use Cloud Asset
Inventory instead (gcloud asset)
(https://cloud.google.com/sdk/gcloud/reference/asset). For more information, see
the deprecation notice at Assets Page
(https://cloud.google.com/security\-command\-center/docs/how\-to\-use\-security\-command\-center#assets_page).


Get the Project for an asset given its resource name or asset id.



.SH "EXAMPLES"

Get project id
(https://cloud.google.com/resource\-manager/docs/creating\-managing\-projects#identifying_projects)
given an asset's full resource name
(https://cloud.google.com/apis/design/resource_names#full_resource_name) e.g.
//storage.googleapis.com/my\-bucket under organization 123456:

.RS 2m
$ gcloud alpha scc assets get\-project 123456 \e
    \-\-resource\-name="//storage.googleapis.com/my\-bucket"
.RE

Get project id given an asset's Cloud SCC id 5678 under organization 123456.

.RS 2m
$ gcloud alpha scc assets get\-project 123456 \-\-asset=5678
.RE



.SH "POSITIONAL ARGUMENTS"

.RS 2m
.TP 2m

Organization resource \- The organization to be used for the SCC (Security
Command Center) command. This represents a Cloud resource.


.RS 2m
.TP 2m
[\fIORGANIZATION\fR]

ID of the organization or fully qualified identifier for the organization.

To set the \f5organization\fR attribute:
.RS 2m
.IP "\(bu" 2m
provide the argument \f5organization\fR on the command line;
.IP "\(bu" 2m
Set the organization property in configuration using \f5gcloud config set
scc/organization\fR if it is not specified in command line..
.RE
.sp


.RE
.RE
.sp

.SH "REQUIRED FLAGS"

.RS 2m
.TP 2m

Exactly one of these must be specified:


.RS 2m
.TP 2m
\fB\-\-asset\fR=\fIASSET\fR

Cloud SCC specific asset. It's derived from the the asset's relative resource
name. See:
https://cloud.google.com/apis/design/resource_names#relative_resource_name. For
Example, for the given asset name: "organizations/123/assets/456", 456
represents asset id.

.TP 2m
\fB\-\-resource\-name\fR=\fIRESOURCE_NAME\fR

Asset's resource name. Full resource name of the Google Cloud Platform resource
this 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.


.RE
.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 \fBsecuritycenter/v1\fR API. The full documentation for
this API can be found at: https://cloud.google.com/security\-command\-center



.SH "NOTES"

This command is currently in alpha and might change without notice. If this
command fails with API permission errors despite specifying the correct project,
you might be trying to access an API with an invitation\-only early access
allowlist. These variants are also available:

.RS 2m
$ gcloud scc assets get\-project
.RE

.RS 2m
$ gcloud beta scc assets get\-project
.RE