Public/Acronis/Get-AcronisCustomerInfo.ps1
function Get-AcronisCustomerInfo { [CmdletBinding()] param ( [Parameter(Mandatory = $true)] [string]$CustomerId ) try { $customerEndpoint = "api/2/tenants/$CustomerId" $customerInfo = Invoke-AcronisApi -Uri $customerEndpoint -Method 'Get' return $customerInfo } catch { Write-ModuleLog -Message "Failed to retrieve customer info for ID: $CustomerId" -Level Error -Component 'AcronisCustomerInfo' -ErrorRecord $_ throw } } |