gcloud assured workloads update Stay organized with collections Save and categorize content based on your preferences.
- NAME
- gcloud assured workloads update - update Assured Workloads environments
- SYNOPSIS
gcloud assured workloads update(WORKLOAD:--location=LOCATION--organization=ORGANIZATION)(--display-name=DISPLAY_NAME--labels=[KEY=VALUE,…]--violation-notifications-enabled=VIOLATION_NOTIFICATIONS_ENABLED)[--etag=ETAG][GCLOUD_WIDE_FLAG …]
- DESCRIPTION
- Update a given Assured Workloads environment.
- EXAMPLES
- To update a given Assured Workloads environment in the us-central1 region,belonging to an organization with ID 123, with workload ID 456 and an etag of789 with a new display name of 'Test-Workload-2' and a new set of labels(including any required existing labels) of (key = 'ExistingLabelKey1', value ='ExistingLabelValue1') and (key = 'NewLabelKey2', value = 'NewLabelValue2'),run:
gcloudassuredworkloadsupdateorganizations/123/locations/us-central1/workloads/456--display-name=Test-Workload-2--labels=ExistingLabelKey1=ExistingLabelValue1,NewLabelKey2=NewLabelValue2--etag=789 - POSITIONAL ARGUMENTS
- Workload resource - The Assured Workloads environment resource to update. Thearguments in this group can be used to specify the attributes of this resource.
This must be specified.
WORKLOAD- ID of the workload or fully qualified identifier for the workload.
To set the
workloadattribute:- provide the argument
workloadon the command line.
This positional argument must be specified if any of the other arguments in thisgroup are specified.
- provide the argument
--location=LOCATION- The location for the workload.
To set the
locationattribute:- provide the argument
workloadon the command line with a fullyspecified name; - provide the argument
--locationon the command line.
- provide the argument
--organization=ORGANIZATION- The parent organization for the workload.
To set the
organizationattribute:- provide the argument
workloadon the command line with a fullyspecified name; - provide the argument
--organizationon the command line.
- provide the argument
- Workload resource - The Assured Workloads environment resource to update. Thearguments in this group can be used to specify the attributes of this resource.
- REQUIRED FLAGS
- Settings that can be updated on the Assured Workloads environment.
At least one of these must be specified:
--display-name=DISPLAY_NAME- The new display name of the Assured Workloads environment.
--labels=[KEY=VALUE,…]- The new labels of the Assured Workloads environment, for example,LabelKey1=LabelValue1,LabelKey2=LabelValue2
--violation-notifications-enabled=VIOLATION_NOTIFICATIONS_ENABLED- The notification setting of the Assured Workloads environment.
- Settings that can be updated on the Assured Workloads environment.
- OPTIONAL FLAGS
--etag=ETAG- The etag acquired by reading the Assured Workloads environment before updating.
- 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. - NOTES
- These variants are also available:
gcloudalphaassuredworkloadsupdategcloudbetaassuredworkloadsupdate
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.