Get-DattoSaaS

SYNOPSIS

Gets Datto SaaS protection data

SYNTAX

index_Domains (Default)

Get-DattoSaaS [-endpoint_Domains] [<CommonParameters>]

index_byCustomerSeats

Get-DattoSaaS [-endpoint_CustomerSeats] -saasCustomerId <Int32> [<CommonParameters>]

index_byCustomerApps

Get-DattoSaaS [-endpoint_CustomerApps] -saasCustomerId <Int32> [-daysUntil <Int32>] [-includeRemoteID <Int32>]
 [<CommonParameters>]

DESCRIPTION

The Get-DattoSaaS cmdlet gets Datto SaaS protection data by combing all endpoints into a single command.

This unique function does not contain any BCDR or Reporting endpoints. This function was added to simply for testing & generating reports

EXAMPLES

EXAMPLE 1

Get-DattoSaaS

Returns SaaS protection data about what domains are being protected

This function uses the -endpoint_Domains switch by default

EXAMPLE 2

Get-DattoSaaS -endpoint_CustomerSeats -saasCustomerId 123456

Returns SaaS protection seats for a given customer

EXAMPLE 3

Get-DattoSaaS -endpoint_CustomerApps -saasCustomerId 123456

Returns SaaS protection backup data for a given customer

PARAMETERS

-endpoint_Domains

Returns SaaS protection data about what domains are being protected

Endpoint = /SaaS/domains

Type: SwitchParameter
Parameter Sets: index_Domains
Aliases:

Required: False
Position: Named
Default value: False
Accept pipeline input: False
Accept wildcard characters: False

-endpoint_CustomerSeats

Returns SaaS protection seats for a given customer

Endpoint = /SaaS/domains/{sassCustomerId}/seats

Type: SwitchParameter
Parameter Sets: index_byCustomerSeats
Aliases:

Required: True
Position: Named
Default value: False
Accept pipeline input: False
Accept wildcard characters: False

-endpoint_CustomerApps

Returns SaaS protection backup data for a given customer

Endpoint = /SaaS/domains/{sassCustomerId}/applications

Type: SwitchParameter
Parameter Sets: index_byCustomerApps
Aliases:

Required: True
Position: Named
Default value: False
Accept pipeline input: False
Accept wildcard characters: False

-saasCustomerId

Defines the ID of the customer to get SaaS information from

Type: Int32
Parameter Sets: index_byCustomerSeats, index_byCustomerApps
Aliases:

Required: True
Position: Named
Default value: 0
Accept pipeline input: True (ByValue)
Accept wildcard characters: False

-daysUntil

Defines the number of days until the report should be generated

If not set default value of ‘10’ days is returned by the API.

As of 2024-02, maximum value of ‘30’ days returns data from the endpoint.

Parameter Set: endpoint_CustomerApps

Type: Int32
Parameter Sets: index_byCustomerApps
Aliases:

Required: False
Position: Named
Default value: 0
Accept pipeline input: False
Accept wildcard characters: False

-includeRemoteID

Defines if remote IDs are included in the return

Note: 0 = No 1 = Yes

Allowed Values: 0, 1

Parameter Set: endpoint_CustomerApps

Type: Int32
Parameter Sets: index_byCustomerApps
Aliases:

Required: False
Position: Named
Default value: 0
Accept pipeline input: False
Accept wildcard characters: False

CommonParameters

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.

INPUTS

OUTPUTS

NOTES

N\A

https://celerium.github.io/Datto-PowerShellWrapper/site/SaaS/Get-DattoSaaS.html