Start a Conversation

Unsolved

R

1 Rookie

 • 

1 Message

41

December 1st, 2023 19:35

Unity API call for CSV generation for Ansible Survey?

I've been trying to duplicate/mimic the GUI in Ansible Automation Platform/Playbooks.

That does not seem possible, so closest I have gotten is API calls to singular/minimum attributes, like:

url: https://{{unispherehost}}/api/types/lun/instances?fields=id,name,sizeTotal&compact=true
What I would like is an easy format like CSV to hopefully feed to a survey --versus doing it manually -- if possible.
I've tried inspecting elements of the GUI to find what the API call would be, with no luck.
Reading the API Docs does not yield an example I can find and try as far as I can see/search.
Searching the forum and bing/google comes up with using C# and I'm already a mediocre programmer in general and bad at python, so adding yet another language is a "heck naw".
Hoping for a CSV API call that the GUI generates, or manually strip the JSON formatting as a fallback.
Anyone have any ideas?
Thanks,
Rich
No Responses!
No Events found!

Top