I want to get Operating System of the GCP VM instance

0 votes

I want to get Operating System of the GCP VM instance. Currently I see only the image from which the instance was created. Is there a way of getting that? I see there is OS inventory Management which require some metadata to be set on the VM https://cloud.google.com/compute/docs/instances/view-os-details#api.

  • Guest attributes: Key: enable-guest-attributes Value: True
  • OS inventory management: Key: enable-os-inventory Value: True

Moreover there is a command gcloud compute instances os-inventory describe VM-NAME to get the OS configs only when VM is in RUNNING state. I am looking to fetch the OS details via REST API. Is there an example to refer for this?

Apr 11 in GCP by Rahul
• 3,380 points
206 views

No answer to this question. Be the first to respond.

Your answer

Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.

Related Questions In GCP

0 votes
1 answer
0 votes
1 answer
0 votes
1 answer

How do i enable the OS Login of my existing Linux VM?

Set enable-oslogin in metadata of an existing instance: Go to ...READ MORE

answered Sep 26, 2019 in GCP by Sirajul
• 59,190 points
1,452 views
0 votes
1 answer

How to add a PTR record to my VM instance on gcp?

If your VM instance uses the primary ...READ MORE

answered Sep 26, 2019 in GCP by Sirajul
• 59,190 points
1,062 views
0 votes
1 answer

How do I add the access config for my Linux VM instance?

If your instance does not have an ...READ MORE

answered Sep 26, 2019 in GCP by anonymous
• 19,610 points
497 views
0 votes
1 answer
0 votes
1 answer

Cannot connect to my VM instance on GCP via SSH.

This might be because UFW is installed. ...READ MORE

answered Sep 27, 2019 in GCP by Sirajul
• 59,190 points
3,404 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP