mirror of
https://github.com/imjasonh/gcloud-help
synced 2026-07-22 07:40:10 +00:00
gcloud: Tue Mar 1 04:29:52 UTC 2022
This commit is contained in:
parent
aab53307a8
commit
1456dab6c7
9791 changed files with 814712 additions and 0 deletions
90
gcloud/compute/target-http-proxies/update
Normal file
90
gcloud/compute/target-http-proxies/update
Normal file
|
|
@ -0,0 +1,90 @@
|
|||
NAME
|
||||
gcloud compute target-http-proxies update - update a target HTTP proxy
|
||||
|
||||
SYNOPSIS
|
||||
gcloud compute target-http-proxies update NAME --url-map=URL_MAP
|
||||
[--global | --region=REGION]
|
||||
[--global-url-map | --url-map-region=URL_MAP_REGION]
|
||||
[GCLOUD_WIDE_FLAG ...]
|
||||
|
||||
DESCRIPTION
|
||||
gcloud compute target-http-proxies update is used to change the URL map of
|
||||
existing 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.
|
||||
|
||||
EXAMPLES
|
||||
If there is an already-created URL map with the name URL_MAP, update a
|
||||
global target HTTP proxy pointing to this map by running:
|
||||
|
||||
$ gcloud compute target-http-proxies update PROXY_NAME \
|
||||
--url-map=URL_MAP
|
||||
|
||||
Update a regional target HTTP proxy by running:
|
||||
|
||||
$ gcloud compute target-http-proxies update PROXY_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 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.
|
||||
|
||||
OPTIONAL FLAGS
|
||||
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 be prompted to select a region (interactive mode only).
|
||||
|
||||
To avoid prompting when this flag is omitted, you can set the
|
||||
compute/region property:
|
||||
|
||||
$ gcloud config set compute/region REGION
|
||||
|
||||
A list of regions can be fetched by running:
|
||||
|
||||
$ gcloud compute regions list
|
||||
|
||||
To unset the property, run:
|
||||
|
||||
$ gcloud config unset compute/region
|
||||
|
||||
Alternatively, the region can be stored in the environment variable
|
||||
CLOUDSDK_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 default
|
||||
compute/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
|
||||
These variants are also available:
|
||||
|
||||
$ gcloud alpha compute target-http-proxies update
|
||||
|
||||
$ gcloud beta compute target-http-proxies update
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue