Export-LMDashboard
Syntax
Id (Default)
Export-LMDashboard [-Id <Int32>] [-PassThru] [-FilePath <String>] [-ProgressAction <ActionPreference>] [<CommonParameters>]
Name
Export-LMDashboard [-Name <String>] [-PassThru] [-FilePath <String>] [-ProgressAction <ActionPreference>] [<CommonParameters>]
Description
The Export-LMDashboard function exports dashboard information from LogicMonitor to a JSON file.
Examples
Example 1
#Export a dashboard to a JSON fileExport-LMDashboard -Id 123 -FilePath "C:\temp"
Parameters
-Id
The ID of the dashboard to retrieve. Part of a mutually exclusive parameter set.
Type: Int32Parameter Sets: IdAliases:
Required: FalsePosition: NamedDefault value: 0Accept pipeline input: FalseAccept wildcard characters: False
-Name
The name of the dashboard to retrieve. Part of a mutually exclusive parameter set.
Type: StringParameter Sets: NameAliases:
Required: FalsePosition: NamedDefault value: NoneAccept pipeline input: FalseAccept wildcard characters: False
-PassThru
Switch to return the dashboard export as a PSCustomObject.
Type: SwitchParameterParameter Sets: (All)Aliases:
Required: FalsePosition: NamedDefault value: FalseAccept pipeline input: FalseAccept wildcard characters: False
-FilePath
The path to the output file.
Type: StringParameter Sets: (All)Aliases:
Required: FalsePosition: NamedDefault value: (Get-Location).PathAccept pipeline input: FalseAccept wildcard characters: False
-ProgressAction
Fill ProgressAction Description
Type: ActionPreferenceParameter Sets: (All)Aliases: proga
Required: FalsePosition: NamedDefault value: NoneAccept pipeline input: FalseAccept 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
None. You cannot pipe objects to this command.
Outputs
Returns LogicMonitor.Dashboard objects.
Notes
You must run Connect-LMAccount before running this command.