Stay organized with collections Save and categorize content based on your preferences.
gcloud beta compute commitments update-reservations
COMMITMENT
[--region
=REGION
] [--reservations-from-file
=PATH_TO_FILE
| [--dest-reservation
=[machine-type
=MACHINE-TYPE
],[min-cpu-platform
=MIN-CPU-PLATFORM
],[require-specific-reservation
=REQUIRE-SPECIFIC-RESERVATION
],[reservation
=RESERVATION
],[reservation-zone
=RESERVATION-ZONE
],[vm-count
=VM-COUNT
] --source-reservation
=[machine-type
=MACHINE-TYPE
],[min-cpu-platform
=MIN-CPU-PLATFORM
],[require-specific-reservation
=REQUIRE-SPECIFIC-RESERVATION
],[reservation
=RESERVATION
],[reservation-zone
=RESERVATION-ZONE
],[vm-count
=VM-COUNT
] : --dest-accelerator
=[count
=COUNT
],[type
=TYPE
] --dest-local-ssd
=[interface
=INTERFACE
],[size
=SIZE
] --dest-share-setting
=DEST_SHARE_SETTING
--dest-share-with
=SHARE_WITH
,[SHARE_WITH
,…] --source-accelerator
=[count
=COUNT
],[type
=TYPE
] --source-local-ssd
=[interface
=INTERFACE
],[size
=SIZE
] --source-share-setting
=SOURCE_SHARE_SETTING
--source-share-with
=SHARE_WITH
,[SHARE_WITH
,…]]] [GCLOUD_WIDE_FLAG …
]
(BETA)
Update the resource shape of reservations within the commitment.
commitment-1
in the us-central1
region with values from reservations.yaml
, run:
gcloud beta compute commitments update-reservations commitment-1 --reservations-from-file=reservations.yaml
For detailed examples, please refer to https://cloud.google.com/compute/docs/instances/reserving-zonal-resources#modifying_reservations_that_are_attached_to_commitments
COMMITMENT
--region
=REGION
To avoid prompting when this flag is omitted, you can set the
property:compute/region
gcloud config set compute/region REGION
A list of regions can be fetched by running:
gcloud compute regions list
To unset the property, run:
gcloud config unset compute/region
Alternatively, the region can be stored in the environment variable
.CLOUDSDK_COMPUTE_REGION
At most one of these can be specified:
--reservations-from-file
=PATH_TO_FILE
--dest-reservation
=[machine-type
=MACHINE-TYPE
],[min-cpu-platform
=MIN-CPU-PLATFORM
],[require-specific-reservation
=REQUIRE-SPECIFIC-RESERVATION
],[reservation
=RESERVATION
],[reservation-zone
=RESERVATION-ZONE
],[vm-count
=VM-COUNT
]
reservation
reservation-zone
vm-count
machine-type
custom-number_of_CPUs-amount_of_memory
pattern, e.g. custom-32-29440
.
min-cpu-platform
require-specific-reservation
--reservation-affinity=specific
can consume from this reservation.
This flag argument must be specified if any of the other arguments in this group are specified.
--source-reservation
=[machine-type
=MACHINE-TYPE
],[min-cpu-platform
=MIN-CPU-PLATFORM
],[require-specific-reservation
=REQUIRE-SPECIFIC-RESERVATION
],[reservation
=RESERVATION
],[reservation-zone
=RESERVATION-ZONE
],[vm-count
=VM-COUNT
]
reservation
reservation-zone
vm-count
machine-type
custom-number_of_CPUs-amount_of_memory
pattern, e.g. custom-32-29440
.
min-cpu-platform
require-specific-reservation
--reservation-affinity=specific
can consume from this reservation.
This flag argument must be specified if any of the other arguments in this group are specified.
--dest-accelerator
=[count
=COUNT
],[type
=TYPE
]
count
type
nvidia-tesla-k80
for nVidia Tesla K80) of accelerator to attach to instances in the reservation. Use gcloud compute accelerator-types list
to learn about all available accelerator types.
--dest-local-ssd
=[interface
=INTERFACE
],[size
=SIZE
]
interface
scsi
and nvme
. SCSI is the default and is supported by more guest operating systems. NVME may provide higher performance.
size
DEST_SHARE_SETTING
must be one of:
local
projects
--source-accelerator
=[count
=COUNT
],[type
=TYPE
]
count
type
nvidia-tesla-k80
for nVidia Tesla K80) of accelerator to attach to instances in the reservation. Use gcloud compute accelerator-types list
to learn about all available accelerator types.
--source-local-ssd
=[interface
=INTERFACE
],[size
=SIZE
]
interface
scsi
and nvme
. SCSI is the default and is supported by more guest operating systems. NVME may provide higher performance.
size
SOURCE_SHARE_SETTING
must be one of:
local
projects
--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 commitments update-reservations
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 2025-05-07 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-05-07 UTC."],[],[]]
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4