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