happy-father-98665
12/18/2023, 7:37 AMquery {
products(
filter: {
vendorName: "gcp"
region: "europe-west4"
attributeFilters: [{ key: "machineType", value: "a2-highgpu-1g" }]
}
) {
prices {
USD
}
}
}
Response:
{
"data": {
"products": [
{
"prices": [
{
"USD": "0.814064"
},
{
"USD": "0.32565"
}
]
}
]
}
}
But according to GCP https://gcloud-compute.com/a2-highgpu-1g.html
it should be around 3.6734
and `1.2058`USDlittle-author-61621
little-author-61621
happy-father-98665
01/07/2024, 7:43 PM<https://pricing.api.infracost.io/graphql>
little-author-61621
service
and productFamily
filters as well it improve the performance:
query {
products(
filter: {
vendorName: "gcp"
region: "europe-west4"
service: "Compute Engine"
productFamily: "Compute Instance"
attributeFilters: [{ key: "machineType", value: "a2-highgpu-1g" }]
}
) {
prices {
USD
}
}
}
happy-father-98665
01/08/2024, 9:06 PM