File: //snap/google-cloud-cli/current/help/man/man1/gcloud_compute_target-http-proxies_export.1
.TH "GCLOUD_COMPUTE_TARGET\-HTTP\-PROXIES_EXPORT" 1
.SH "NAME"
.HP
gcloud compute target\-http\-proxies export \- export a target HTTP proxy
.SH "SYNOPSIS"
.HP
\f5gcloud compute target\-http\-proxies export\fR \fINAME\fR [\fB\-\-destination\fR=\fIDESTINATION\fR] [\fB\-\-global\fR\ |\ \fB\-\-region\fR=\fIREGION\fR] [\fIGCLOUD_WIDE_FLAG\ ...\fR]
.SH "DESCRIPTION"
Exports a target HTTP proxy's configuration to a file. This configuration can be
imported at a later time.
.SH "EXAMPLES"
A target HTTP proxy can be exported by running:
.RS 2m
$ gcloud compute target\-http\-proxies export NAME \e
\-\-destination=<path\-to\-file>
.RE
.SH "POSITIONAL ARGUMENTS"
.RS 2m
.TP 2m
\fINAME\fR
Name of the target HTTP proxy 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/v1/TargetHttpProxy.yaml.
.TP 2m
At most one of these can be specified:
.RS 2m
.TP 2m
\fB\-\-global\fR
If set, the target HTTP proxy is global.
.TP 2m
\fB\-\-region\fR=\fIREGION\fR
Region of the target HTTP proxy 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"
These variants are also available:
.RS 2m
$ gcloud alpha compute target\-http\-proxies export
.RE
.RS 2m
$ gcloud beta compute target\-http\-proxies export
.RE