functions/generated/Core/Get-AdsTeam.ps1
function Get-AdsTeam { <# .SYNOPSIS .DESCRIPTION Get a list of all teams. .PARAMETER Mine If true, then return all teams requesting user is member. Otherwise return all teams user has read access. .PARAMETER Skip Number of teams to skip. .PARAMETER Top Maximum number of teams to return. .PARAMETER Organization The name of the Azure DevOps organization. .PARAMETER ApiVersion Version of the API to use. This should be set to '7.1-preview.3' to use this version of the api. .PARAMETER ExpandIdentity A value indicating whether or not to expand Identity information in the result WebApiTeam object. .EXAMPLE PS C:\> Get-AdsTeam -Organization $organization -ApiVersion $apiversion Get a list of all teams. .LINK <unknown> #> [CmdletBinding(DefaultParameterSetName = 'default')] param ( [Parameter(ValueFromPipelineByPropertyName = $true, ParameterSetName = 'default')] [boolean] $Mine, [Parameter(ValueFromPipelineByPropertyName = $true, ParameterSetName = 'default')] [int32] $Skip, [Parameter(ValueFromPipelineByPropertyName = $true, ParameterSetName = 'default')] [int32] $Top, [Parameter(Mandatory = $true, ValueFromPipelineByPropertyName = $true, ParameterSetName = 'default')] [string] $Organization, [Parameter(Mandatory = $true, ValueFromPipelineByPropertyName = $true, ParameterSetName = 'default')] [string] $ApiVersion, [Parameter(ValueFromPipelineByPropertyName = $true, ParameterSetName = 'default')] [boolean] $ExpandIdentity ) process { $__mapping = @{ 'Mine' = '$mine' 'Skip' = '$skip' 'Top' = '$top' 'ApiVersion' = 'api-version' 'ExpandIdentity' = '$expandIdentity' } $__body = $PSBoundParameters | ConvertTo-Hashtable -Include @() -Mapping $__mapping $__query = $PSBoundParameters | ConvertTo-Hashtable -Include @('Mine','Skip','Top','ApiVersion','ExpandIdentity') -Mapping $__mapping $__header = $PSBoundParameters | ConvertTo-Hashtable -Include @() -Mapping $__mapping $__path = 'https://dev.azure.com/{organization}/_apis/teams' -Replace '{organization}',$Organization Invoke-RestRequest -Path $__path -Method get -Body $__body -Query $__query -Header $__header } } |