Inedo Community Forums Forums
    • Recent
    • Tags
    • Popular
    • Login

    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

    Scheduled Pinned Locked Moved Support
    api asset
    5 Posts 2 Posters 17 Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • A Offline
      admin_9486
      last edited by

      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.

      atrippA 1 Reply Last reply Reply Quote 0
      • atrippA Offline
        atripp inedo-engineer @admin_9486
        last edited by

        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

        1 Reply Last reply Reply Quote 0
        • A Offline
          admin_9486
          last edited by

          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?

          atrippA 1 Reply Last reply Reply Quote 0
          • atrippA Offline
            atripp inedo-engineer @admin_9486
            last edited by

            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

            1 Reply Last reply Reply Quote 0
            • A Offline
              admin_9486
              last edited by

              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.

              1 Reply Last reply Reply Quote 0

              Hello! It looks like you're interested in this conversation, but you don't have an account yet.

              Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

              With your input, this post could be even better 💗

              Register Login
              • 1 / 1
              • First post
                Last post
              Inedo Website Home • Support Home • Code of Conduct • Forums Guide • Documentation