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/394/help/man/man1/gcloud_beta_scc_assets_update-marks.1
.TH "GCLOUD_BETA_SCC_ASSETS_UPDATE\-MARKS" 1



.SH "NAME"
.HP
gcloud beta scc assets update\-marks \- update Cloud Security Command Center asset's security marks



.SH "SYNOPSIS"
.HP
\f5gcloud beta scc assets update\-marks\fR (\fIASSET\fR\ :\ \fB\-\-organization\fR=\fIORGANIZATION\fR) [\fB\-\-security\-marks\fR=[\fIKEY\fR=\fIVALUE\fR,...]] [\fB\-\-start\-time\fR=\fISTART_TIME\fR] [\fB\-\-update\-mask\fR=\fIUPDATE_MASK\fR] [\fIGCLOUD_WIDE_FLAG\ ...\fR]



.SH "DESCRIPTION"

\fB(BETA)\fR Update Cloud Security Command Center asset's security marks.



.SH "EXAMPLES"

Selectively update value of security mark (key1) with 'val1.1' on asset 5678
under organization 123456. Note that other security marks on the same asset will
not change.

.RS 2m
$ gcloud beta scc assets update\-marks 5678 \-\-organization=123456 \e
    \-\-security\-marks="key1=val1.1" \-\-update\-mask="marks.key1"
.RE

Update value of security mark (key1) and delete other marks on asset 5678 under
organization 123456:

.RS 2m
$ gcloud beta scc assets update\-marks 5678 \-\-organization=123456 \e
    \-\-security\-marks="key1=updatedVal"
.RE

Update value of security mark (key1) and delete other marks on asset 5678 under
project example\-project:

.RS 2m
$ gcloud beta scc assets update\-marks \e
    projects/example\-project/assets/5678 \e
    \-\-security\-marks="key1=updatedVal"
.RE

Update value of security mark (key1) and delete other marks on asset 5678 under
folder 456:

.RS 2m
$ gcloud beta scc assets update\-marks folders/456/assets/5678 \e
    \-\-security\-marks="key1=updatedVal"
.RE

Delete all security marks on asset 5678 under organization 123456:

.RS 2m
$ gcloud beta scc assets update\-marks 5678 \-\-organization=123456 \e
    \-\-security\-marks=""
.RE



.SH "POSITIONAL ARGUMENTS"

.RS 2m
.TP 2m

Asset resource \- The asset to be used for the SCC (Security Command Center)
command. The arguments in this group can be used to specify the attributes of
this resource.

This must be specified.


.RS 2m
.TP 2m
\fIASSET\fR

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

To set the \f5asset\fR attribute:
.RS 2m
.IP "\(bu" 2m
provide the argument \f5asset\fR on the command line.
.RE
.sp

This positional argument must be specified if any of the other arguments in this
group are specified.

.TP 2m
\fB\-\-organization\fR=\fIORGANIZATION\fR

(Optional) If the full resource name isn't provided e.g. organizations/123, then
provide the organization id which is the suffix of the organization. Example:
organizations/123, the id is 123.


To set the \f5organization\fR attribute:
.RS 2m
.IP "\(bu" 2m
provide the argument \f5asset\fR on the command line with a fully specified
name;
.IP "\(bu" 2m
provide the argument \f5\-\-organization\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 "FLAGS"

.RS 2m
.TP 2m
\fB\-\-security\-marks\fR=[\fIKEY\fR=\fIVALUE\fR,...]

SecurityMarks resource to be passed as the request body. It's a key=value pair
separated by comma (,). For example: \-\-security\-marks="key1=val1,key2=val2".

.TP 2m
\fB\-\-start\-time\fR=\fISTART_TIME\fR

Time at which the updated SecurityMarks take effect. See \f5$ gcloud topic
datetimes\fR for information on supported time formats.

.TP 2m
\fB\-\-update\-mask\fR=\fIUPDATE_MASK\fR

Use update\-mask if you want to selectively update marks represented by
\-\-security\-marks flag. For example: \-\-update\-mask="marks.key1,marks.key2".
If you want to override all the marks for the given asset either skip the
update\-mask flag or provide an empty value (\-\-update\-mask '') for it.


.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 beta and might change without notice. These
variants are also available:

.RS 2m
$ gcloud scc assets update\-marks
.RE

.RS 2m
$ gcloud alpha scc assets update\-marks
.RE