https://infracost.io logo
#help
Title
# help
m

modern-airplane-16120

01/16/2024, 7:14 PM
Greetings everyone. Is it possible to query the cloud pricing API and have it return information about the resources of the object returned? Right now I queried the API and ill I receive is simply just the cost, but I would like to retrieve information like core count, memory and disk also. I did a simply GraphQL query to try and achieve this, but i've run out of ideas. "query": """ { products(filter: { vendorName: "gcp", service: "Compute Engine", attributeFilters: [ ] }) { prices(filter: {}) { USD, description, unit, } } } """
m

mysterious-teacher-68276

01/17/2024, 9:16 AM
Hi @modern-airplane-16120, unfortunately, we don’t expose specific resource attributes like this. However, in some cases, you might be able to infer this from the description. I’d recommend 👍 this issue: https://github.com/infracost/infracost/issues/1525 that specifically relates to the feature you want. You should see any future updates if we decide to support this use case.