property/Get-BulkSearchResults.ps1
function Get-BulkSearchResults { Param( [Parameter(Mandatory=$true)] [string] $BulkSearchID, [Parameter(Mandatory=$false)] [string] $GroupId, [Parameter(Mandatory=$false)] [string] $ContractId, [Parameter(Mandatory=$false)] [string] $EdgeRCFile = '~\.edgerc', [Parameter(Mandatory=$false)] [string] $Section = 'papi', [Parameter(Mandatory=$false)] [string] $AccountSwitchKey ) $Path = "/papi/v1/bulk/rules-search-requests/$BulkSearchID`?contractId=$ContractID&groupId=$GroupID&accountSwitchKey=$AccountSwitchKey" try { $Result = Invoke-AkamaiRestMethod -Method GET -Path $Path -Body $Body -EdgeRCFile $EdgeRCFile -Section $Section return $Result } catch { throw $_.Exception } } |