Download result of custom script as text/csv #11974
Replies: 2 comments 1 reply
-
It's not well documented, but there's an example custom script which returns CSV data here. It looks like your script's References to the relevant Netbox code: |
Beta Was this translation helpful? Give feedback.
-
I know that some users save the file to the media folder and then just link to it in the script result. Might be an option. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi!
Please help me with some kind of netbox magic.
I have custom sctipt that make some routines work with my ipam and i want to return result of this script as txt or csv file to user.
But with django HttpResponse code
i've only got
<HttpResponse status_code=200, "text/plain">
in output.
Is it possible to do what I'm trying to do?
Beta Was this translation helpful? Give feedback.
All reactions