File: //snap/google-cloud-cli/394/help/man/man1/gcloud_compute_routers_add-route-policy.1
.TH "GCLOUD_COMPUTE_ROUTERS_ADD\-ROUTE\-POLICY" 1
.SH "NAME"
.HP
gcloud compute routers add\-route\-policy \- add an empty route policy to a Compute Engine router
.SH "SYNOPSIS"
.HP
\f5gcloud compute routers add\-route\-policy\fR \fINAME\fR \fB\-\-policy\-name\fR=\fIPOLICY_NAME\fR \fB\-\-policy\-type\fR=\fIPOLICY_TYPE\fR [\fB\-\-region\fR=\fIREGION\fR] [\fIGCLOUD_WIDE_FLAG\ ...\fR]
.SH "DESCRIPTION"
\fBgcloud compute routers add\-route\-policy\fR adds an empty route policy to a
Compute Engine router.
.SH "EXAMPLES"
To add an import route policy \f5my\-policy\fR to a router \f5my\-router\fR in
region \f5us\-central1\fR, run:
.RS 2m
$ gcloud compute routers add\-route\-policy my\-router \e
\-\-region=us\-central1 \-\-policy\-name=my\-policy \e
\-\-policy\-type=IMPORT
.RE
.SH "POSITIONAL ARGUMENTS"
.RS 2m
.TP 2m
\fINAME\fR
Name of the router to update.
.RE
.sp
.SH "REQUIRED FLAGS"
.RS 2m
.TP 2m
\fB\-\-policy\-name\fR=\fIPOLICY_NAME\fR
Name of the route policy to add.
.TP 2m
\fB\-\-policy\-type\fR=\fIPOLICY_TYPE\fR
Type of the route policy to add. \fIPOLICY_TYPE\fR must be one of:
.RS 2m
.TP 2m
\fBEXPORT\fR
The route policy is an export policy.
.TP 2m
\fBIMPORT\fR
The route policy is an import policy.
.RE
.sp
.RE
.sp
.SH "OPTIONAL FLAGS"
.RS 2m
.TP 2m
\fB\-\-region\fR=\fIREGION\fR
Region of the router to update. If not specified, you might be prompted to
select a region (interactive mode only).
To avoid prompting when this flag is omitted, you can set the
\f5\fIcompute/region\fR\fR property:
.RS 2m
$ gcloud config set compute/region REGION
.RE
A list of regions can be fetched by running:
.RS 2m
$ gcloud compute regions list
.RE
To unset the property, run:
.RS 2m
$ gcloud config unset compute/region
.RE
Alternatively, the region can be stored in the environment variable
\f5\fICLOUDSDK_COMPUTE_REGION\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 routers add\-route\-policy
.RE
.RS 2m
$ gcloud beta compute routers add\-route\-policy
.RE