Welcome to the Inedo Forums! Check out the Forums Guide for help getting started.
If you are experiencing any issues with the forum software, please visit the Contact Form on our website and let us know!
Administration Verify Feed API
-
On Version 2023.16 (Build 3)
I am attempting to hit this URL of our server: https://progetserver.company.com/administration/feeds/verify-feed?feedId=15
to perform a refresh of an asset feed (equivalent to Manage Feed / Storage and Retention / Storage Properties/ Storage / Re-Index in the GUI = this url as a base - https://progetserver.company.com/feed/manage/storage?feedId=15) .
I am redirected to a login page in a browser, and get a 302 when using CURL (which isn't honored by CURL, presumably it's redirecting for credentials too). I have provided a valid api key or username:password credential headers (CURL) or URL parameters (browser).
I can't find any mention in any API of an "administration" section, nor find any reference to verify-feed. I'm wondering if what I'm trying to do isn't supported.
I have tried numerous permutations but here are two simple versions I tried:
Browser, 302 redirect to login page...
https://progetserver.company.com/administration/feeds/verify-feed?feedId=15&key=API_KEY_VALUE_HERE
and a CURL examples:
curl -d "" -X GET --header "X-ApiKey : admin:ADMIN_PASSWORD" https://progetserver.company.com/administration/feeds/verify-feed?feedId=15
Any suggestions or observations are appreciated.
-
Hi @admin_9486 ,
That URL is for a Web Page within ProGet, and is not an API Endpoint; so what you're trying to do will not work and is not supported.
Also, re-indexing is not something you should ever need to do unless the file or database store has become corrupted some how. So even if it were possible to "script" such a thing, it wouldn't make sense.
Cheer
-
Great, thank you for the confirmation that it does not exist within the API.
This question is in reference to an asset feed which points to a local directory, which is updated externally and needs to be (infrequently) re-indexed to pick up changes. How would you suggest I do this in an automated way?
-
Hi @admin_9486 ,
We did not design the internal storage to be used/managed outside of ProGet... so it's not a scenario we really considered. Does re-indexing add the files that are missing?? That might be an unintentional function.
I guess, the first thing that comes to mind is using a drop-folder for new files.
Can you help us understand the use case? Why does it become updated externally, but also need to be updated in ProGet? It's just not one we imagined... so understanding will help give a appropriate solution
Thanks,
Alana
-
Yes, reindexing the directory adds (and optionally removes) files wich were/were not present when the asset feed was setup.
We have an existing directory of files which are downloadable by another service. We would like to make (and have made) that directory available as an asset feed in Proget.
It's easy enough to point Proget to the existing directory for the feed, and have it index it. This creates the metadata within your system, making the files available to those users who are valid to download them.
If I were to add files via a drop directory, it would work, but it would not necessarily add them in the structured manner we have setup in the base directory. Although TBH I haven't tried dumping a directory tree into a drop directory to see what happens. I'll try that. Thanks.