IBM Cloudability

 View Only

 Help with Apptio-Cloudability API

Jump to  Best Answer
Alfonso A's profile image
Alfonso A posted Wed March 05, 2025 03:54 PM

Hello! I need support using the API cloudability API.

Here’s what’s happening:

---
I’m using this curl call to get our currently saved reports:
 

```

curl 'https://api.cloudability.com/v3/reporting/reports/cost'  -u 'my_token'  -H 'Content-Type: application/json'

```

This gives me a JSON with all the reports, their configuration and IDs.

 

It works fine until I try to fetch a specific report like this:


```

curl 'https://api.cloudability.com/v3/reporting/reports/cost/<report_id> '  -u 'my_token'  -H 'Content-Type: application/json'

```

 

Where I get this error:
 

```

{"error":{"status":404,"code":"not_found","messages":["Not Found"],"uniqueid":"10501918-f875-11ef-8655-7a1d6b3bb3e5","typeid":"73141d0c573b7ce122f902a20b4bb709","traceid":"1046e0de-f875-11ef-8655-7a1d6b3bb3e5"} }

```

 

My end goal is to be able to
1. Fetch a specific Report
2. Update that Report using the API.

 

I haven’t been able to successfully perform any of these actions.

Please help!

I’d appreciate if you could share with me examples to be able to run these commands.
I’ve been looking into the documentation, but I can’t find specific examples

(https://help.apptio.com/en-us/cloudability/api/v3/cost%20reporting%20endpoints.htm)

 

Thanks.

Ron Young's profile image
Ron Young  Best Answer

I think you are mis-reading the documentation.  Your first call is correct in retrieving the list of saved reports that were creating using the UI.  However, as far as I know, it is not possible to actually execute any of those saved reports via the API.

Instead, to generate a cost report via the API, you need to use the /reporting/cost/run endpoint to create a new report by specifying the dimensions, metrics and filters.  All of the examples in the documentation provide an idea of how to do that.

We use the cost/run endpoint within our ETL workflows to extract data from Cloudability on a daily basis that is then imported into our internal data lake which is then visualized via PowerBI and Tableau because we find that Apptio BI is extremely limited in its visualization capabilities.