functions/generated/Elastic/Get-AdsDistributedtaskElasticpoolLog.ps1
function Get-AdsDistributedtaskElasticpoolLog { <# .SYNOPSIS .DESCRIPTION Get elastic pool diagnostics logs for a specified Elastic Pool. .PARAMETER Organization The name of the Azure DevOps organization. .PARAMETER PoolId Pool Id of the Elastic Pool .PARAMETER Top Number of elastic pool logs to retrieve .PARAMETER ApiVersion Version of the API to use. This should be set to '7.1-preview.1' to use this version of the api. .EXAMPLE PS C:\> Get-AdsDistributedtaskElasticpoolLog -Organization $organization -PoolId $poolid -ApiVersion $apiversion Get elastic pool diagnostics logs for a specified Elastic Pool. .LINK <unknown> #> [CmdletBinding(DefaultParameterSetName = 'default')] param ( [Parameter(Mandatory = $true, ValueFromPipelineByPropertyName = $true, ParameterSetName = 'default')] [string] $Organization, [Parameter(Mandatory = $true, ValueFromPipelineByPropertyName = $true, ParameterSetName = 'default')] [string] $PoolId, [Parameter(ValueFromPipelineByPropertyName = $true, ParameterSetName = 'default')] [int32] $Top, [Parameter(Mandatory = $true, ValueFromPipelineByPropertyName = $true, ParameterSetName = 'default')] [string] $ApiVersion ) process { $__mapping = @{ 'Top' = '$top' 'ApiVersion' = 'api-version' } $__body = $PSBoundParameters | ConvertTo-Hashtable -Include @() -Mapping $__mapping $__query = $PSBoundParameters | ConvertTo-Hashtable -Include @('Top','ApiVersion') -Mapping $__mapping $__header = $PSBoundParameters | ConvertTo-Hashtable -Include @() -Mapping $__mapping $__path = 'https://dev.azure.com/{organization}/_apis/distributedtask/elasticpools/{poolId}/logs' -Replace '{organization}',$Organization -Replace '{poolId}',$PoolId Invoke-RestRequest -Path $__path -Method get -Body $__body -Query $__query -Header $__header } } |