- gcloud beta compute url-maps remove-host-rule - remove a host rule from a URL map
gcloud beta compute url-maps remove-host-rule URL_MAP_NAME --host=HOST [--delete-orphaned-path-matcher] [GCLOUD_WIDE_FLAG ...]
(BETA) gcloud beta compute url-maps remove-host-rule is used to
Name of the URL map to operate on.
One of the hosts in the host rule to remove.
If provided and a path matcher is orphaned as a result of this command, the
command removes the orphaned path matcher instead of failing.
GCLOUD WIDE FLAGS
These flags are available to all commands: --account, --configuration, --flags-file, --flatten, --format, --help, --log-http, --project, --quiet, --trace-token, --user-output-enabled, --verbosity. Run $ gcloud help for details.
To remove a host rule that contains the host example.com from the URL map named MY-URL-MAP, you can use this command:
$ gcloud beta compute url-maps remove-host-rule MY-URL-MAP \
This command is currently in BETA and may change without notice. These variants are also available:
- $ gcloud compute url-maps remove-host-rule $ gcloud alpha compute url-maps remove-host-rule