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!

    [ProGet] Feature Request: Enable creating 'Feed & Project Groups' using API and/or PGUtil

    Scheduled Pinned Locked Moved Support
    5 Posts 3 Posters 22 Views 1 Watching
    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.
    • N Offline
      Nils Nilsson
      last edited by

      Hello!

      I wish to be able to create new feed & project groups programatically so that it can be automated.

      My suggestion is that it's either
      a) Exposed as a new endpoint/command
      b) If a non-existent feed group is provided for an endpoint or a command, like /api/management/feeds/create https://docs.inedo.com/docs/proget/api/feeds/create it will create the feed group provided the token used has sufficient permissions.

      Currently scenario b will return code 400 with the message "Feed group <group> not found." and create an ungrouped feed.

      I tried to jack into the /administrations/feeds/feed-groups/edit endpoint used by the website but ended up just being redirected to the login page.

      Best Regards
      Nils Nilsson

      atrippA I 2 Replies Last reply Reply Quote 0
      • atrippA Offline
        atripp inedo-engineer @Nils Nilsson
        last edited by

        Hi @Nils-Nilsson ,

        We'll implement something like Scenario B, which mirrors how the UI handles it and is the easiest to implement:

        pgutil feeds create --name=myfeed --type=NuGet --group=mygroup
        

        We'll also target this for July 24th's release, and ship via PG-3338.

        Thanks,
        Alana

        N 1 Reply Last reply Reply Quote 1
        • N Offline
          Nils Nilsson @atripp
          last edited by

          Hi @atripp

          That's great, thank you :)

          1 Reply Last reply Reply Quote 0
          • N Offline
            Nils Nilsson
            last edited by

            I've had a chance to test the new version of pgutil now and it works perfectly, thank you.

            Best regards
            Nils Nilsson

            1 Reply Last reply Reply Quote 0
            • I Offline
              ivan.magdolen_6846 @Nils Nilsson
              last edited by

              Hi @Nils-Nilsson,

              we were facing similar issue maybe 2 years ago (I am not even sure if pgutil was available at that time). There may be other approaches besides pgutil. ProGet exposes native APIs, but not all features are enabled by default; some aspects can be modified directly in the database.
              The native API is visible at:
              https://<ProgetServer>:<port>/reference/api

              FeedGroups APIs
              48fdf5f8-ccce-44da-b858-e625d4494986-image.jpeg

              The Enabled features can be checked in the following table (we are using an MS SQL database):
              __StoredProcInfo

              Internal_Indicator shows what is exposed and can be used. We set Internal_Indicator = 'N' for the APIs (stored procedures) that we want to use for our automation purposes.

              Kind regards
              Ivan

              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