gcloud compute url-maps remove-host-rule
NAME
--delete-orphaned-path-matcher
]--format
FORMAT
]--help
] --host
HOST
[--project
PROJECT_ID
]--quiet
, -q
]-h
]gcloud compute url-maps remove-host-rule
is used to remove a host rule from a URL map. When
a host rule is removed, its path matcher is only removed if
it is not referenced by any other host rules and
--delete-orphaned-path-matcher
is provided.NAME
--delete-orphaned-path-matcher
--host
HOST
--format
FORMAT
json
, text
, yaml
.
--help
--project
PROJECT_ID
--quiet
, -q
-h
google.com
from the URL map named MY-URL-MAP
, you can use this
command:$ gcloud compute url-maps remove-host-rule MY-URL-MAP --host google.com
compute
component. See
installing components
if it is not installed.