DevOpsHandling/Get-DevOpsFeedList.ps1
<# .Synopsis Retrieves a list of artifact feeds within the given organziation .Description Returns a list of all artifact feeds within the provided organization .Parameter devOpsOrganization Name of the organization in Azure DevOps .Parameter devOpsToken Personal access token for Azure DevOps .Example Get-DevOpsFeedList -devOpsOrganization test -devOptsToken "1234567890" #> function Get-DevOpsFeedList { Param ( [Parameter(Mandatory=$true)] [string] $devOpsOrganization, [Parameter(Mandatory=$true)] [string] $devOpsToken ) try { return (Invoke-AzureDevOpsApi -url ('https://feeds.dev.azure.com/{0}/_apis/packaging/feeds' -f $devOpsOrganization) -devOpsToken $devOpsToken).value } catch { return "" } } |