Skip main navigation (Press Enter).
Log in
Toggle navigation
Community
Topic Groups
Champions
Meet the Champions
Program overview
Rising Champions
IBM Champions group
User Groups
Find your User Group
Program overview
Events
Dev Days
Conference
Community events
User Groups events
All TechXchange events
Participate
TechXchange Group
Welcome Corner
Blogging
Member directory
Community leaders
Resources
Badge Program
IBM Support Customer Day
Log in
TechXchange
Training
Community
Credentials
Events
Conference
TechXchange
Training
Community
Credentials
Events
Conference
IBM Cloudability
×
Group Home
Threads
695
Blogs
51
Upcoming Events
0
Library
99
Members
1.2K
View Only
Back to {0}
Cloudability api access using windows - status":401
Jump to
Best Answer
Thread closed by the administrator, not accepting new replies.
Add a tag
Cloudability
x
User Tags may not contain the following characters: @ # $ & :
Apptio Community Member
posted Wed October 19, 2022 03:16 AM
Hi All,
Trying to access cloudability api's using api keys but getting authorization error using curl, though i can do the same by fetching bearer token from browser.
OS - windows
Referred Doc -
Getting started with Cloudability API V3 (apptio.com)
Command - curl https://api.cloudability.com/v3/rightsizing/aws/recommendations/ec2?filters=resourceIdentifier==id -u "<publickey>:"
Tried - Public key , secret keys, raw and encoded, still getting the below error
{"error":{"status":401,"code":"unauthorized","messages":["Unauthorized"],"uniqueid":"c548ac04-4f75-11ed-80a3-fe4bc0627e68","typeid":"0a0ce74595fb8950c4bc83545a2145e0","traceid":"c54767cc-4f75-11ed-80a3-fe4bc0627e68"}}
#Cloudability
Andrew Midgley
posted Wed October 19, 2022 05:52 PM
Best Answer
Hi @Ashwani Singh,
Looks like it's just an API key issue. What you need to do is replace <publickey> with the API key found in Cloudability at https://app.apptio.com/cloudability#/settings/preferences
Obviously replace with your key.
#Cloudability
Jeff Hyatt
posted Wed October 19, 2022 11:08 AM
Hi Ashwani - are you using the key provided in your Cloudability account profile (not the Apptio key pair)? It's in Cloudability under Manage Profile / Preferences. That one works for me.
#Cloudability
Related Content
Utilization Endpoint Launch on v3 API
Andrew Midgley
Added Mon September 12, 2022
Library Entry
Users Endpoint Launch on v3 API
Andrew Midgley
Added Thu October 27, 2022
Library Entry
Cost Reports Endpoint Launch on v3 API
Andrew Midgley
Added Thu July 28, 2022
Library Entry
Account Groups Endpoint Launch on v3 API
Andrew Midgley
Added Fri September 16, 2022
Library Entry
Video: Cloudability Reporting V2 to V3 upgrade comparison
Apptio Community Member
Added Fri October 22, 2021
Library Entry
Powered by Higher Logic