Public/Caches/Get-R1CacheRefresh.ps1
|
# .ExternalHelp psRadiantOne-help.xml function Get-R1CacheRefresh { [CmdletBinding()] [OutputType('psRadiantOne.CacheRefresh')] param( [parameter( Mandatory = $true, ValueFromPipelineByPropertyName = $true )] [ValidateNotNullOrEmpty()] [Alias('label')] [string]$dn ) Begin { Assert-R1Session -RequireToken }#begin Process { $URI = Resolve-R1ServiceUrl -Service Namespace -Path "caches/$($dn | Get-EscapedString)/refresh" $Result = Invoke-R1RestMethod -Uri $URI -Method GET if ($null -ne $Result) { $Result | Add-CustomType -Type psRadiantOne.CacheRefresh } }#process End { }#end } |