Get-DattoAsset

SYNOPSIS

Get Datto BCDR assets (agents and shares) for a given device

SYNTAX

Get-DattoAsset -serialNumber <String> [-page <Int64>] [-perPage <Int64>] [-allPages] [<CommonParameters>]

DESCRIPTION

The Get-DattoAsset cmdlet gets Datto BCDR assets (agents and shares) for a given device

EXAMPLES

EXAMPLE 1

Get-DattoAsset -serialNumber "12345678"

Gets the Datto BCDR with the defined serialNumber and returns any agents or shares.

EXAMPLE 2

Get-DattoAsset -serialNumber "12345678" -page 2 -pageSize 10

Gets the Datto BCDR with the defined serialNumber and returns the first 10 agents or shares from the 2nd page of results.

PARAMETERS

-serialNumber

Defines the BCDR serial number to get

Type: String
Parameter Sets: (All)
Aliases:

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

-page

Defines the page number to return

The default value is 1

Type: Int64
Parameter Sets: (All)
Aliases:

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

-perPage

Defines the amount of items to return with each page

The default value is 100

Type: Int64
Parameter Sets: (All)
Aliases:

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

-allPages

Returns all items from an endpoint

When using this parameter there is no need to use either the page or perPage parameters

Type: SwitchParameter
Parameter Sets: (All)
Aliases:

Required: False
Position: Named
Default value: False
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/BCDR/Get-DattoAsset.html