Reputation: 343
I would like to know if there is a way to collect the technical specifications of a virtual machine from Google Cloud (CPU, frequency, memory, storage) ? I am using the billing API (https://cloudbilling.googleapis.com/v1/services/6F81-5844-456A/skus?key=API_KEY) to get the pricing information but there is no technical specifications.
Is there a way to get that data ? May be using the products' SKU or something ? I know AWS and Azure SDKs/APIs allows developers to get the technical information but I did not find the GCP equivalent for this.
I searched for a while for something like this but it seems like a lot of people had the same issue but no one had a working answer.
Upvotes: 0
Views: 1674
Reputation: 53381
The compute API offers you several operations that you can use to obtain the desired information.
Especially consider review the instances
get
operation, it will provide you all the details of the instance.
You can obtain the list of instances in a certain zone if required using the instances
list
operation.
If you are trying to obtain information about machines families, GCP provides a rich API as well.
Upvotes: 1