Public/Get-DattoSaasDomain.ps1

function Get-DattoSaasDomain {
<#
.SYNOPSIS
Returns SaaS Protection domain data.
.DESCRIPTION
Implements GET /v1/saas/domains. Results are filtered by any organization restriction applied to the API key.
.PARAMETER RawResponse
Returns the direct API response body without record extraction.
.PARAMETER Connection
A connection object, name, or ID.
.EXAMPLE
Get-DattoSaasDomain
#>

    [CmdletBinding()]
    param(
        [Parameter()][switch]$RawResponse,
        [Parameter()][AllowNull()][object]$Connection
    )
    Invoke-DattoApiRequest -Path '/v1/saas/domains' -RawResponse:$RawResponse -Connection $Connection
}