gcloud endpoints configs describe - Please add "view" param

39 views
Skip to first unread message

Eaton Zveare

unread,
Jul 23, 2020, 11:20:19 PM7/23/20
to Google Cloud Endpoints
I want to compare the contents of the Open API json already deployed to Endpoints against the "new" version my build script is ready to upload. If they match, then I can skip some steps in my build script, making it more efficient.

The file contents can be obtained using this API when "view" is set to "FULL": https://cloud.google.com/service-infrastructure/docs/service-management/reference/rest/v1/services.configs/get
This API can be invoked using gcloud endpoints configs describe, but sadly, the "view" query parameter cannot be specified.

Is this something you can add? I can't imagine it would take long, and it would be useful to me.

Wayne Zhang

unread,
Jul 23, 2020, 11:26:31 PM7/23/20
to Eaton Zveare, Google Cloud Endpoints
You could use "curl" to talk to Google service management directly.  As

curl --fail -o "service.json" -H "Authorization: Bearer $(gcloud auth print-access-token)" \
  "https://servicemanagement.googleapis.com/v1/services/${SERVICE}/configs/${CONFIG_ID}?view=FULL"

You can find this in this script:  

--
You received this message because you are subscribed to the Google Groups "Google Cloud Endpoints" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-cloud-endp...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-cloud-endpoints/36838625-9391-4945-9c2a-e2e1f05571e4n%40googlegroups.com.

Eaton Zveare

unread,
Jul 23, 2020, 11:30:16 PM7/23/20
to Google Cloud Endpoints
That works, but I think having it in gcloud would be great. Is there a reason it's not there?

Teju Nareddy

unread,
Jul 24, 2020, 1:13:26 PM7/24/20
to Google Cloud Endpoints
I agree this isn't the best user experience.

Our team does not maintain this command, it's more than 4 years old. But I can take a look and see if it can be updated, or why it doesn't include a view=full option originally.

Eaton Zveare

unread,
Jul 24, 2020, 1:16:24 PM7/24/20
to Google Cloud Endpoints
Great, thank you!
Reply all
Reply to author
Forward
0 new messages