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

GCP API - I want to know all the machine type details via an API

I am using below API but I am not getting information like processor, family name and all. 

Is there an APi which gives me all the details ?  

GET https://compute.googleapis.com/compute/v1/projects/{project}/zones/{zone}/machineTypes.  

0 5 917
5 REPLIES 5

I need the API which list all the machine type details. The API which you mentioned will provide details only if I have that instance of the machine running in my project. Machine type is also via the API which I mentioned. What I need is the operation system and machine family details. 

What do you mean with “all” details? What are the exact details you need from the Machine Type?

So if you go to the link below and section mentioned. In a tabular form, it gives the complete information. Is it possible to get this information in the form of API.   

https://cloud.google.com/compute/docs/machine-types

Machine series comparison

No. Since there’s no way to count vCPU (one of the details in the list [1]) using an API , there is not a method that outputs all the details listed here [1].

[1] https://cloud.google.com/compute/docs/machine-types#machine_type_comparison

Top Solution Authors