IA39
IA39

Reputation: 35

How to get the URI of a GCP cloud resource?

I need to get the URI of a compute engine resource? How do you get the URI of any resource in GCP?

Tried to find the URI in the console but could not do so

Upvotes: 1

Views: 1979

Answers (1)

John Hanley
John Hanley

Reputation: 81336

The Cloud SDK has the command line option --uri which will display the resource URI. This option is not available for all resource types.

For example:

gcloud compute instances list --uri

Upvotes: 3

Related Questions