File: //snap/google-cloud-cli/394/help/man/man1/gcloud_beta_compute_forwarding-rules_import.1
.TH "GCLOUD_BETA_COMPUTE_FORWARDING\-RULES_IMPORT" 1
.SH "NAME"
.HP
gcloud beta compute forwarding\-rules import \- import a forwarding rule
.SH "SYNOPSIS"
.HP
\f5gcloud beta compute forwarding\-rules import\fR \fINAME\fR [\fB\-\-source\fR=\fISOURCE\fR] [\fB\-\-global\fR\ |\ \fB\-\-region\fR=\fIREGION\fR] [\fIGCLOUD_WIDE_FLAG\ ...\fR]
.SH "DESCRIPTION"
\fB(BETA)\fR Imports a forwarding rule's configuration from a file.
.SH "EXAMPLES"
Import a forwarding rule by running:
.RS 2m
$ gcloud beta compute forwarding\-rules import NAME \e
\-\-source=<path\-to\-file>
.RE
.SH "POSITIONAL ARGUMENTS"
.RS 2m
.TP 2m
\fINAME\fR
Name of the forwarding rule to import.
.RE
.sp
.SH "FLAGS"
.RS 2m
.TP 2m
\fB\-\-source\fR=\fISOURCE\fR
Path to a YAML file containing configuration export data. Alternatively, you may
omit this flag to read from standard input.For a schema describing the
export/import format, see:
$CLOUDSDKROOT/lib/googlecloudsdk/schemas/compute/beta/ForwardingRule.yaml.
.RS 2m
Note: $CLOUDSDKROOT represents the Google Cloud CLI's installation directory.
.RE
.TP 2m
At most one of these can be specified:
.RS 2m
.TP 2m
\fB\-\-global\fR
If set, the forwarding rule is global.
.TP 2m
\fB\-\-region\fR=\fIREGION\fR
Region of the forwarding rule to import. 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
.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"
This command is currently in beta and might change without notice. These
variants are also available:
.RS 2m
$ gcloud compute forwarding\-rules import
.RE
.RS 2m
$ gcloud alpha compute forwarding\-rules import
.RE