List Feeds
  • 12 Jun 2024
  • 1 Minute to read
  • Dark
  • PDF

List Feeds

  • Dark
  • PDF

Article summary

List Feeds is available as both a pgutil command and an HTTP Request, and will return an array of ProgetFeed objects, describing all existing feeds.

🚀 Quick Example: Listing feeds with pgutil

This example lists all existing feeds

pgutil feeds list

Command Specification (CLI)

The feeds list command set is used to list all existing feeds.

Listing all feeds does not require any additional options:

pgutil connectors list

This will return a list of feeds:


HTTP Response Specification

A successful (200) response body will contain an array of ProgetFeed objects. For example:

GET /api/management/feeds/list

    { ... } // remaining feeds
200 (Success)body will contain an array of ProgetFeed objects
403 (Unauthorized API Key)indicates a missing, unknown, or unauthorized API Key; the body will be empty

Sample Usage Scripts

List all feeds (Powershell)

This script will print a list of all existing feeds and their feed types.

$apiUrl = "https://proget.corp.local/api/management/feeds/list"
$apiKey = "abc12345"

$headers = @{"X-ApiKey" = $apiKey}

$response = Invoke-RestMethod -Uri $apiUrl -Method Get -Headers $headers

foreach ($feed in $response) {
    $feedName = $
    $feedType = $feed.feedType
    $formattedFeed = "{0} ({1})" -f $feedName, $feedType
    Write-Host $formattedFeed

Example Output:

internal-npm (npm)
nuget-approved (nuget)
nuget-unapproved (nuget)
public-files (asset)
public-npm (npm)
universal-feed (universal)

Was this article helpful?

What's Next