Internet Explorer is no longer supported. Many things will still work, but your experience will be degraded and some things won't function. Please use a modern browser such as Edge, Chrome, or Firefox.

List Connectors

view on GitHub

List Connectors is available as both a pgutil command and an HTTP Request, and will list all existing connectors.

Command Specification (CLI)

The connectors list command is used to list all existing connectors.

Listing all connectors does not require any additional options:

pgutil connectors list

This will return a list of connectors, their type, and their URL:

myNugetConnector (nuget) https://proget.connector.local
nuget.org (nuget) https://api.nuget.org/v3/index.json
pypi.org (pypi) https://pypi.org/
registry.npmjs.org (npm) https://registry.npmjs.org
rubygems.org (rubygems) https://api.rubygems.org/

HTTP Request Specification

To list all existing connectors, simply GET to the URL with an appropriate API Key.

GET /api/management/connectors/list

HTTP Response Specification

An array of Connector (see ProGetConnector.cs) objects will be returned on a successful 200 response. A 403 response indicates a missing, unknown, or unauthorized API Key.

Sample Usage Scripts

List all connectors (Powershell)

This script will print a list of all existing connectors, their feed types and URLs.

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

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

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

foreach ($connector in $response) {
    $connectorName = $connector.name
    $connectorType = $connector.feedType
    $connectorUrl = $connector.url
    $formattedConnector = "{0} ({1}) {2}" -f $connectorName, $connectorType, $connector.url
    Write-Host $formattedConnector
}

Example Output:

nuget.org (nuget) https://api.nuget.org/v3/index.json
registry.npmjs.org (npm) https://registry.npmjs.org
...
...