Register a custom provider
Changed onRegister your own compute rates so CostGraph can price machines it has no public price for, such as bare metal or a private cloud. An entry is upserted on its natural key (provider, service, region, availability zone, usage type, instance type, operating system and period billing hours), so re-posting the same entry with a new cost keeps its id and reprices everything already using it. Changing any key field mints a new id, because it describes a different SKU. The returned id is what you attach to a resource with the costgraph.ai/pricing-id.compute label or tag. Treat it as a secret you hand out deliberately: anyone holding it can pin to the rate, which is how a provider prices clusters it sells on. Superseded by POST /v1/marketplace/compute, which returns RFC 9457 problem responses on failure.
Request
- Base URLhttps://pricing.baselinehq.cloud
- Auth
- API key in header X-API-Key
- or API key in header Authorization
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Request body
Response
Pricing response for a custom provider
Changes
- info
added the non-success response with the status
- info
- info
added the new optional request property
// - info
added the optional property
//to the response with the status
- info