IBM Cloudability

 View Only

 API Access

Jump to  Best Answer
  • Cloudability
Apptio Community Member's profile image
Apptio Community Member posted Thu February 10, 2022 01:33 PM
First off I apologize for the newbie question but I am learning API access as I want to just pull data form Cloudability into Power BI to be added to other reports I have that access internal data sources and just can't figure it out.

I have been trying to use the simple example in the API documentation to see if I can just connect and keep getting 'unauthorized' messages

curl https://api.cloudability.com/v3/vendors -u 'Your_API_Key:'​

For the API key, I have tried both my public and secret keys along with both separated by the colon. 

Can anyone she some light on what I am doing wrong?
#Cloudability
Apptio Community Member's profile image
Apptio Community Member  Best Answer

I had exactly the same issue as well, the problem i found was that cloudability is using -u (which should be username and password), and instead of using name and password you put your api key in. 

The trick is that you do not put in a password, so the ":" at the end is required for the curl command to hit the enpoint with the right details. 

You basically do what it says in the document but with the : at the end in the quotes, its not the correct way to do it, but its how they enabled it on their backend side. 

so in your example: 
MyAPIKey = "12345678901234"
I would do 

curl https://api.cloudability.com/v3/vendors -u '12345678901234:'




#Cloudability
Jeff Hyatt's profile image
Jeff Hyatt
This gets everybody. For the Cldy API you need your Cldy key found in your account profile in Cldy. The Apptio key pair won't work (unless something recently changed).

It's under Manage Profile (submenu under the little user icon top right). Then the Preferences tab.
#Cloudability