File: //snap/google-cloud-cli/396/help/man/man1/gcloud_compute_reservations_perform-maintenance.1
.TH "GCLOUD_COMPUTE_RESERVATIONS_PERFORM\-MAINTENANCE" 1
.SH "NAME"
.HP
gcloud compute reservations perform\-maintenance \- perform maintenance on a reservation, only applicable to reservations with reservation blocks
.SH "SYNOPSIS"
.HP
\f5gcloud compute reservations perform\-maintenance\fR \fIRESERVATION\fR [\fB\-\-scope\fR=\fISCOPE\fR] [\fB\-\-zone\fR=\fIZONE\fR] [\fIGCLOUD_WIDE_FLAG\ ...\fR]
.SH "DESCRIPTION"
Perform maintenance on a reservation, only applicable to reservations with
reservation blocks.
.SH "EXAMPLES"
To perform maintenance on reservation my\-reservation in my\-zone with scope
all, run:
.RS 2m
$ gcloud compute reservations perform\-maintenance my\-reservation \e
\-\-zone=my\-zone \-\-scope=all
.RE
.SH "POSITIONAL ARGUMENTS"
.RS 2m
.TP 2m
\fIRESERVATION\fR
Name of the reservation to perform\-maintenance.
.RE
.sp
.SH "FLAGS"
.RS 2m
.TP 2m
\fB\-\-scope\fR=\fISCOPE\fR
The maintenance scope to set for the reservation. \fISCOPE\fR must be one of:
.RS 2m
.TP 2m
\fBall\fR
Perform maintenance on all hosts in the reservation.
.TP 2m
\fBrunning\fR
Perform maintenance only on the hosts in the reservation that have running VMs.
.TP 2m
\fBunused\fR
Perform maintenance only on the hosts in the reservation that don't have running
VMs.
.RE
.sp
.TP 2m
\fB\-\-zone\fR=\fIZONE\fR
Zone of the reservation to perform\-maintenance. If not specified and the
\f5\fIcompute/zone\fR\fR 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
\f5\fIcompute/zone\fR\fR property:
.RS 2m
$ gcloud config set compute/zone ZONE
.RE
A list of zones can be fetched by running:
.RS 2m
$ gcloud compute zones list
.RE
To unset the property, run:
.RS 2m
$ gcloud config unset compute/zone
.RE
Alternatively, the zone can be stored in the environment variable
\f5\fICLOUDSDK_COMPUTE_ZONE\fR\fR.
.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 "NOTES"
These variants are also available:
.RS 2m
$ gcloud alpha compute reservations perform\-maintenance
.RE
.RS 2m
$ gcloud beta compute reservations perform\-maintenance
.RE