Public/Curanet/M365/Get-CuranetM365Backup.ps1

function Get-CuranetM365Backup() {
    Param(
        [Parameter(Mandatory)]
        [string]$SubscriptionId
    )

    try {
        $Backups = Invoke-CuranetAPI -Account 3850 -Uri "https://api.curanet.dk/microsoft365backup/v1/Subscriptions/$($SubscriptionId)/configurations" -Method GET
    } catch {
        throw "Failed to retreive subscription details from Curanet $($Account) API: $_"
    }

    return $Backups
}