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.
This HTTP request gives you the machine type and some other information:
GET https://compute.googleapis.com/compute/v1/projects/{project}/zones/{zone}/instances/{resourceId}
The method you shared retrieves a list of machine types available to the specified project.
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.
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