0

I'm using google cloud API (@google-cloud/compute).

I'm trying to fetch Networking>Load balancing>Host and path rules.

for now, I get only the configuration of backend service, I need to get the host and path rules.

I tried also use gcloud google command and didn't found some command that can give me this data.

2
gcloud compute url-maps --help
gcloud compute url-maps list
gcloud compute url-maps describe <URL_MAP_NAME>
1

You can retrieve the hosts and path rules available to the specified project by using the following Compute Engine API request:

> GET
> https://www.googleapis.com/compute/v1/projects/[PROJECT_ID]/global/urlMaps

If you need to use Google command line, then follow the answer provided by Matthew Lenz.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.