Get hands-on experience with 20+ free Google Cloud products and $300 in free credit for new customers.

gcloud or api equivalence to GUI package update availability

Is there a gcloud, or python API, equivalence to the information Google supplies in the OS patch management GUI. The GUI lists compute instances with package updates available. I can use gcloud compute os-config vulnerability-reports describe to view CVE reports, but not if a patch is available. Any suggestions on how to obtain this information?

0 1 93
1 REPLY 1

A quick scan seens to show that the OS Config has an API that is documented here ...

https://cloud.google.com/compute/docs/osconfig/rest

Let's do a first pass and see if any of these APIs provides what you are looking for.  Each of these REST APIs may have an equivalent Python Client Library call available.