gcloud compute reservations update RESERVATION [--add-share-with=PROJECT,[PROJECT,…]] [--add-share-with-project=PROJECT,[PROJECT,…]] [--early-access-maintenance=EARLY_ACCESS_MAINTENANCE] [--[no-]enable-emergent-maintenance] [--remove-share-with=PROJECT,[PROJECT,…]] [--reservation-sharing-policy=RESERVATION_SHARING_POLICY] [--scheduling-type=SCHEDULING_TYPE] [--vm-count=VM_COUNT] [--zone=ZONE] [GCLOUD_WIDE_FLAG …]
project-1,project-2,project-3 to the list of projects that
are shared with a Compute Engine reservation, my-reservation in
zone: us-central1-a, run:
gcloud compute reservations update my-reservation --add-share-with=project-1,project-2,project-3 --zone=us-central1-a
To remove project-1,project-2,project-3 from the list of projects
that are shared with a Compute Engine reservation, my-reservation
in zone: us-central1-a, run:
gcloud compute reservations update my-reservation --remove-share-with=project-1,project-2,project-3 --zone=us-central1-a
To update the number of reserved VM instances to 500 for a Compute Engine
reservation, my-reservation in zone: us-central1-a,
run:
gcloud compute reservations update my-reservation --zone=us-central1-a --vm-count=500RESERVATION--add-share-with=PROJECT,[PROJECT,…]--add-share-with-project=PROJECT,[PROJECT,…]--early-access-maintenance=EARLY_ACCESS_MAINTENANCEEARLY_ACCESS_MAINTENANCE must be one of:
NO_EARLY_ACCESSWAVE1WAVE2--[no-]enable-emergent-maintenance--enable-emergent-maintenance to enable and
--no-enable-emergent-maintenance to disable.
--remove-share-with=PROJECT,[PROJECT,…]--reservation-sharing-policy=RESERVATION_SHARING_POLICYRESERVATION_SHARING_POLICY must be one of:
ALLOW_ALLDISALLOW_ALL--scheduling-type=SCHEDULING_TYPESCHEDULING_TYPE must be one of:
GROUPEDINDEPENDENT--vm-count=VM_COUNT--zone=ZONEcompute/zone property isn't set, you might
be prompted to select a zone (interactive mode only).
To avoid prompting when this flag is omitted, you can set the
property:
compute/zone
gcloud config set compute/zone ZONEA list of zones can be fetched by running:
gcloud compute zones listTo unset the property, run:
gcloud config unset compute/zoneCLOUDSDK_COMPUTE_ZONE.
--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 help for details.
gcloud alpha compute reservations updategcloud beta compute reservations updategcloud preview compute reservations update
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2026-06-09 UTC.