Seeking to determine the anticipated cost of a selection of instances within OCI utilizing the TypeScript SDK. Oracle offers a tool called Cloud Cost Estimator for configuring and dynamically displaying cost estimates. Is it possible to achieve this through an API? A sample request would be:
{
"resources": [
{
"name": "compute.standard.x86",
"shape": "VM.Standard2.1",
"region": "us-ashburn-1",
"quantity": 2
},
{
"name": "storage.standard",
"region": "us-ashburn-1",
"quantity": 100
}
]
}
The response would be similar to:
{
"prices": [
{
"name": "compute.standard.x86",
"shape": "VM.Standard2.1",
"region": "us-ashburn-1",
"quantity": 2,
"price": {
"amount": 0.048,
"currency": "USD",
"unit": "HOUR"
}
},
{
"name": "storage.standard",
"region": "us-ashburn-1",
"quantity": 100,
"price": {
"amount": 0.08,
"currency": "USD",
"unit": "GB"
}
}
]
}
Are there any applicable modules that could assist in accomplishing this task? I've reviewed the documentation but have not come across anything specific.