gcloud beta compute target-http-proxies update

NAME
gcloud beta compute target-http-proxies update - update a target HTTP proxy
SYNOPSIS
gcloud beta compute target-http-proxies updateNAME--url-map=URL_MAP[--clear-http-keep-alive-timeout-sec    |--http-keep-alive-timeout-sec=HTTP_KEEP_ALIVE_TIMEOUT_SEC][--global    |--region=REGION][--global-url-map    |--url-map-region=URL_MAP_REGION][GCLOUD_WIDE_FLAG]
DESCRIPTION
(BETA)gcloud beta compute target-http-proxies updateis used to change the URL map of existing target HTTP proxies. A target HTTPproxy is referenced by one or more forwarding rules which specify the networktraffic that the proxy is responsible for routing. The target HTTP proxy pointsto a URL map that defines the rules for routing the requests. The URL map's jobis to map URLs to backend services which handle the actual requests.
EXAMPLES
If there is an already-created URL map with the name URL_MAP, update a globaltarget HTTP proxy pointing to this map by running:
gcloudbetacomputetarget-http-proxiesupdatePROXY_NAME--url-map=URL_MAP

Update a regional target HTTP proxy by running:

gcloudbetacomputetarget-http-proxiesupdatePROXY_NAME--url-map=URL_MAP--region=REGION_NAME
POSITIONAL ARGUMENTS
NAME
Name of the target HTTP proxy to update.
REQUIRED FLAGS
--url-map=URL_MAP
A reference to a URL map resource. A URL map defines the mapping of URLs tobackend services. Before you can refer to a URL map, you must create the URLmap. To delete a URL map that a target proxy is referring to, you must firstdelete the target HTTP proxy.
OPTIONAL FLAGS
At most one of these can be specified:
--clear-http-keep-alive-timeout-sec
Clears the previously configured HTTP keepalive timeout.
--http-keep-alive-timeout-sec=HTTP_KEEP_ALIVE_TIMEOUT_SEC
Represents the maximum amount of time that a TCP connection can be idle betweenthe (downstream) client and the target HTTP proxy. If an HTTP keepalive timeoutis not specified, the default value is 610 seconds. For global externalApplication Load Balancers, the minimum allowed value is 5 seconds and themaximum allowed value is 1200 seconds.
At most one of these can be specified:
--global
If set, the target HTTP proxy is global.
--region=REGION
Region of the target HTTP proxy to update. If not specified, you might beprompted to select a region (interactive mode only).

To avoid prompting when this flag is omitted, you can set thecompute/region property:

gcloudconfigsetcompute/regionREGION

A list of regions can be fetched by running:

gcloudcomputeregionslist

To unset the property, run:

gcloudconfigunsetcompute/region

Alternatively, the region can be stored in the environment variableCLOUDSDK_COMPUTE_REGION.

At most one of these can be specified:
--global-url-map
If set, the URL map is global.
--url-map-region=URL_MAP_REGION
Region of the URL map to operate on. Overrides the defaultcompute/region property value for this command invocation.
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$gcloud help for details.

NOTES
This command is currently in beta and might change without notice. Thesevariants are also available:
gcloudcomputetarget-http-proxiesupdate
gcloudalphacomputetarget-http-proxiesupdate

Except as otherwise noted, the content of this page is licensed under theCreative Commons Attribution 4.0 License, and code samples are licensed under theApache 2.0 License. For details, see theGoogle Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2025-05-07 UTC.