Return CSV instead of JSON?


#1

Hi, don’t imagine this is possible, but is there any way to get the REST API to return data that I query on an instance in CSV? CMDB admins are requesting that and I know you can download reports in CSV format. Just checking yay or nay.


#2

Hi,

If you are using ruby / python to perform the rest-api call, just output the result in csv with each language respective csv gem/module.

Cheers.


#3

ha… didn’t even think of that, I’ve just been using curl from the command line, but ultimately will wrap this up in most likely python. Good call,

Cheers
Bill