gcloud scc assets update-marks Stay organized with collections Save and categorize content based on your preferences.
- NAME
- gcloud scc assets update-marks - update Cloud Security Command Center asset's security marks
- SYNOPSIS
gcloud scc assets update-marks(ASSET:--organization=ORGANIZATION)[--security-marks=[KEY=VALUE,…]][--start-time=START_TIME][--update-mask=UPDATE_MASK][GCLOUD_WIDE_FLAG …]
- DESCRIPTION
- Update Cloud Security Command Center asset's security marks.
- EXAMPLES
- Selectively update value of security mark (key1) with 'val1.1' on asset 5678under organization 123456. Note that other security marks on the same asset willnot change.
gcloudsccassetsupdate-marks5678--organization=123456--security-marks="key1=val1.1"--update-mask="marks.key1"Update value of security mark (key1) and delete other marks on asset 5678 underorganization 123456:
gcloudsccassetsupdate-marks5678--organization=123456--security-marks="key1=updatedVal"Update value of security mark (key1) and delete other marks on asset 5678 underproject example-project:
gcloudsccassetsupdate-marksprojects/example-project/assets/5678--security-marks="key1=updatedVal"Update value of security mark (key1) and delete other marks on asset 5678 underfolder 456:
gcloudsccassetsupdate-marksfolders/456/assets/5678--security-marks="key1=updatedVal"Delete all security marks on asset 5678 under organization 123456:
gcloudsccassetsupdate-marks5678--organization=123456--security-marks="" - POSITIONAL ARGUMENTS
- 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 ofthis resource.
This must be specified.
ASSET- ID of the asset or fully qualified identifier for the asset.
To set the
assetattribute:- provide the argument
asseton the command line.
This positional argument must be specified if any of the other arguments in thisgroup are specified.
- provide the argument
--organization=ORGANIZATION- (Optional) If the full resource name isn't provided e.g. organizations/123, thenprovide the organization id which is the suffix of the organization. Example:organizations/123, the id is 123.To set the
organizationattribute:- provide the argument
asseton the command line with a fullyspecified name; - provide the argument
--organizationon the command line; - Set the organization property in configuration using
gcloud config setscc/organizationif it is not specified in command line..
- provide the argument
- 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 ofthis resource.
- FLAGS
--security-marks=[KEY=VALUE,…]- SecurityMarks resource to be passed as the request body. It's a key=value pairseparated by comma (,). For example: --security-marks="key1=val1,key2=val2".
--start-time=START_TIME- Time at which the updated SecurityMarks take effect. See
$gcloud topic datetimesfor information on supported time formats. --update-mask=UPDATE_MASK- Use update-mask if you want to selectively update marks represented by--security-marks flag. For example: --update-mask="marks.key1,marks.key2". Ifyou want to override all the marks for the given asset either skip theupdate-mask flag or provide an empty value (--update-mask '') for it.
- 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
- These variants are also available:
gcloudalphasccassetsupdate-marksgcloudbetasccassetsupdate-marks
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.