File: //snap/google-cloud-cli/current/help/man/man1/gcloud_compute_target-http-proxies_create.1
.TH "GCLOUD_COMPUTE_TARGET\-HTTP\-PROXIES_CREATE" 1
.SH "NAME"
.HP
gcloud compute target\-http\-proxies create \- create a target HTTP proxy
.SH "SYNOPSIS"
.HP
\f5gcloud compute target\-http\-proxies create\fR \fINAME\fR \fB\-\-url\-map\fR=\fIURL_MAP\fR [\fB\-\-description\fR=\fIDESCRIPTION\fR] [\fB\-\-http\-keep\-alive\-timeout\-sec\fR=\fIHTTP_KEEP_ALIVE_TIMEOUT_SEC\fR] [\fB\-\-global\fR\ |\ \fB\-\-region\fR=\fIREGION\fR] [\fB\-\-global\-url\-map\fR\ |\ \fB\-\-url\-map\-region\fR=\fIURL_MAP_REGION\fR] [\fIGCLOUD_WIDE_FLAG\ ...\fR]
.SH "DESCRIPTION"
\fBgcloud compute target\-http\-proxies create\fR is used to create target HTTP
proxies. A target HTTP proxy is referenced by one or more forwarding rules which
specify the network traffic that the proxy is responsible for routing. The
target HTTP proxy points to a URL map that defines the rules for routing the
requests. The URL map's job is to map URLs to backend services which handle the
actual requests.
.SH "EXAMPLES"
If there is an already\-created URL map with the name URL_MAP, create a global
target HTTP proxy pointing to this map by running:
.RS 2m
$ gcloud compute target\-http\-proxies create PROXY_NAME \e
\-\-url\-map=URL_MAP
.RE
Create a regional target HTTP proxy by running:
.RS 2m
$ gcloud compute target\-http\-proxies create PROXY_NAME \e
\-\-url\-map=URL_MAP \-\-region=REGION_NAME
.RE
To create a proxy with a textual description, run:
.RS 2m
$ gcloud compute target\-http\-proxies create PROXY_NAME \e
\-\-url\-map=URL_MAP \-\-description="default proxy"
.RE
.SH "POSITIONAL ARGUMENTS"
.RS 2m
.TP 2m
\fINAME\fR
Name of the target HTTP proxy to create.
.RE
.sp
.SH "REQUIRED FLAGS"
.RS 2m
.TP 2m
\fB\-\-url\-map\fR=\fIURL_MAP\fR
A reference to a URL map resource. A URL map defines the mapping of URLs to
backend services. Before you can refer to a URL map, you must create the URL
map. To delete a URL map that a target proxy is referring to, you must first
delete the target HTTP proxy.
.RE
.sp
.SH "OPTIONAL FLAGS"
.RS 2m
.TP 2m
\fB\-\-description\fR=\fIDESCRIPTION\fR
An optional, textual description for the target HTTP proxy.
.TP 2m
\fB\-\-http\-keep\-alive\-timeout\-sec\fR=\fIHTTP_KEEP_ALIVE_TIMEOUT_SEC\fR
Represents the maximum amount of time that a TCP connection can be idle between
the (downstream) client and the target HTTP proxy. If an HTTP keepalive timeout
is not specified, the default value is 610 seconds. For global external
Application Load Balancers, the minimum allowed value is 5 seconds and the
maximum allowed value is 1200 seconds.
.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 create. 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
.TP 2m
At most one of these can be specified:
.RS 2m
.TP 2m
\fB\-\-global\-url\-map\fR
If set, the URL map is global.
.TP 2m
\fB\-\-url\-map\-region\fR=\fIURL_MAP_REGION\fR
Region of the URL map to operate on. Overrides the default \fBcompute/region\fR
property value for this command invocation.
.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 create
.RE
.RS 2m
$ gcloud beta compute target\-http\-proxies create
.RE