Accessing the Media Folder with API Token #18239
Unanswered
jchambers2012
asked this question in
Help Wanted!
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Anyone able to get media files after the enforce login PR? (#17990) We have a few CI external jobs that need to pull files out of netbox media folder and we would like to keep auth in place but API tokens don't seam to work on the media URLs. Seeing if a feature request is needed for this situation?
CURL debug does a auth redirect on the media folder:
< Location: /login/?next=/media/Script_Generated_Report.csv
:curl -v -H "Authorization: Token ${NETBOX_TOKEN}" https://netbox.example.com/media/Script_Generated_Report.csv
Verified my Token does work with other endpoints such as:
curl -v -H "Authorization: Token ${NETBOX_TOKEN}" https://netbox.example.com/api/status/
Beta Was this translation helpful? Give feedback.
All reactions