IBM Cloudability

 View Only

 API v1 to v3

Jump to  Best Answer
  • Cloudability
Apptio Community Member's profile image
Apptio Community Member posted Wed March 09, 2022 11:11 PM
I have a v1 api query pulling cost data and I want to switch to v3 but can’t seem to find the right end point to use or documentation on it. Can someone point me in the right direction? I’ve culled through the api documentation pages but I'm just not seeing it. 

TIA...
#Cloudability
Claudia Secco's profile image
Claudia Secco  Best Answer
Hi, 
V3 public reporting docs are currently on the roadmap and will likely be released in Q2
#Cloudability
Apptio Community Member's profile image
Apptio Community Member
Hi Michael,
Not sure, but try using this format:

GET https://api.cloudability.com/v3/internal/reporting/cost/run?dimensions=account_name&dimensions=...
#Cloudability
Apptio Community Member's profile image
Apptio Community Member
Thanks Nat. This didn't work and when i pinged my TAM he said that the cost stuff isn't ready in v3 yet and that is why v1 remains. I'll just us v1 for now until I hear otherwise.
#Cloudability
Greg Winfield's profile image
Greg Winfield
Michael try this out to get you started mate

https://api.cloudability.com/v3/internal/reporting/cost/run?dimensions=lease_type,enhanced_service_name&metrics=total_amortized_cost,unblended_cost&end=2021-09-01&start=2021-09-01+&metrics=unblended_cost
#Cloudability
Debbie Hagen's profile image
Debbie Hagen
Hey Michael,
Does this help?  We recently released the  Cloudability Cost Reporting API v3.    

Also here is a link to an overview from Andrew Midgely

Hope this helps!
Cheers,
Deb

#Cloudability
Justin Hazelrigg's profile image
Justin Hazelrigg
Starting from scratch...

Need Cloudability API Key- In Cloudability Person icon(top right) > Manage Profile>  Preferences tab > Right handside should list your Clouadability API key


Datalink (Not Datalink Classic)
New Connection > Name your Connection
Data Type-  REST Service

Agent- Apptio Default Agent Online Cloud

Apptio- Destination Name; Application- Cost Transparency; Project- Cost Transparency; Branch- Trunk; Transform- Overwrite(your preference); Auto Checkin- Disable (your preference); Time Period- Previous Month (your preference)

Source- Authentication Type- Basic; REST URL (https://api.cloudability.com/v3/....); Username- API Key goes here; Password blank; Enter Resource Path URL- blank; Rest Headers Key- Accept, Value- text/csv; Apptio Table Name- (Table name in TBM Studio);Time Period- Previous Month (your preference)

Once that is filled out you can Test the credentials and Test the API if you are still getting an error message to see where the issue lies.
#Cloudability