Compute pricing for a given instance
cURL
curl --request POST \ --url https://gateway.costgraph.baselinehq.cloud/v1/compute/pricing \ --header 'Authorization: <api-key>' \ --header 'Content-Type: application/json' \ --data '{ "availability_zone": "<string>", "instance_type": "<string>", "operating_system": "<string>", "provider": "GCP", "region": "<string>", "service": "ComputeEngine", "usage_type": "SPOT_PREEMPTIBLE", "vm": { "cpu_cores": 123, "ram_gb": 123 } }'
{ "availability_zone": "<string>", "cost_per_hour": 123, "cpu_cores": 123, "cpu_cores_cost_per_hour": 123, "instance_type": "<string>", "operating_system": "<string>", "provider": "GCP", "ram_gb": 123, "ram_gb_cost_per_hour": 123, "raw_pricing_data": {}, "region": "<string>", "service": "ComputeEngine", "usage_type": "SPOT_PREEMPTIBLE" }
0.073981
0.031611
N2
GCP
0.004237
Show Raw Pricing Data
Bearer token for authentication
Instance details
The body is of type object.
object
OK
The response is of type object.