Public/Get-DattoDtcRmmTemplate.ps1
|
function Get-DattoDtcRmmTemplate { <# .SYNOPSIS Returns Direct-to-Cloud RMM templates. .DESCRIPTION Implements GET /v1/dtc/rmm-templates. The supplied contract documents an optional clientId query parameter and no page parameters, even though the response may contain pagination metadata. .PARAMETER ClientId The client ID by which to filter templates. .PARAMETER RawResponse Returns the response envelope. .PARAMETER Connection A connection object, name, or ID. .EXAMPLE Get-DattoDtcRmmTemplate -ClientId '12345' #> [CmdletBinding()] param( [Parameter()][string]$ClientId, [Parameter()][switch]$RawResponse, [Parameter()][AllowNull()][object]$Connection ) $query = @{} if ($PSBoundParameters.ContainsKey('ClientId')) { $query['clientId'] = $ClientId } Invoke-DattoApiRequest -Path '/v1/dtc/rmm-templates' -Query $query -ResultProperty 'items' -RawResponse:$RawResponse -Connection $Connection } |