File: //snap/google-cloud-cli/394/help/man/man1/gcloud_alpha_compute_forwarding-rules_export.1
.TH "GCLOUD_ALPHA_COMPUTE_FORWARDING\-RULES_EXPORT" 1
.SH "NAME"
.HP
gcloud alpha compute forwarding\-rules export \- export a forwarding rule
.SH "SYNOPSIS"
.HP
\f5gcloud alpha compute forwarding\-rules export\fR \fINAME\fR [\fB\-\-destination\fR=\fIDESTINATION\fR] [\fB\-\-global\fR\ |\ \fB\-\-region\fR=\fIREGION\fR] [\fIGCLOUD_WIDE_FLAG\ ...\fR]
.SH "DESCRIPTION"
\fB(ALPHA)\fR Exports a forwarding rule's configuration to a file.
.SH "EXAMPLES"
A forwarding rule can be exported by running:
.RS 2m
$ gcloud alpha compute forwarding\-rules export NAME \e
\-\-destination=<path\-to\-file>
.RE
.SH "POSITIONAL ARGUMENTS"
.RS 2m
.TP 2m
\fINAME\fR
Name of the forwarding rule to export.
.RE
.sp
.SH "FLAGS"
.RS 2m
.TP 2m
\fB\-\-destination\fR=\fIDESTINATION\fR
Path to a YAML file where the configuration will be exported. Alternatively, you
may omit this flag to write to standard output. For a schema describing the
export/import format, see:
$CLOUDSDKROOT/lib/googlecloudsdk/schemas/compute/alpha/ForwardingRule.yaml.
.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 export. 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 alpha and might change without notice. If this
command fails with API permission errors despite specifying the correct project,
you might be trying to access an API with an invitation\-only early access
allowlist. These variants are also available:
.RS 2m
$ gcloud compute forwarding\-rules export
.RE
.RS 2m
$ gcloud beta compute forwarding\-rules export
.RE