Hi All,
I want to fetch a CloudRun service's URL via a Python client if its possible in GCP ?
Is there any API / sample code / python client that has the capability?
In a crux, I am triggering a build via Cloud Build (gcloud builds submit) but somehow below command doesn't give me anything - instead it errors out saying the projectid is not correct.
cloudRunAppUri=$( gcloud run services describe <service-name> --platform managed --project <projectId> --region <region> --format 'value(status.url)' )
It errors out with:
ERROR: (gcloud) The project property must be set to a valid project ID, not the project name ["<projectId I gave>"]
So I am looking to instead leverage Python based script to fetch Cloud Run instance's URL if its possible in some way or the other please?
Any leads will be appreciated.
Thanks,
Raghav Arora