Invoke-LMReportExecution
Syntax
Id (Default)
Invoke-LMReportExecution -Id <Int32> [-WithAdminId <Int32>] [-ReceiveEmails <String>] [-ProgressAction <ActionPreference>] [<CommonParameters>]Name
Invoke-LMReportExecution -Name <String> [-WithAdminId <Int32>] [-ReceiveEmails <String>] [-ProgressAction <ActionPreference>] [<CommonParameters>]Description
Invoke-LMReportExecution starts an on-demand run of a LogicMonitor report. The report can be identified by ID or name. Optional parameters allow impersonating another admin or overriding the email recipients for the generated output.
Examples
Example 1
Invoke-LMReportExecution -Id 42Starts an immediate execution of the report with ID 42 using the current user’s context.
Example 2
Invoke-LMReportExecution -Name "Monthly Availability" -WithAdminId 101 -ReceiveEmails "ops@example.com"Runs the “Monthly Availability” report as admin ID 101 and emails the results to ops@example.com.
Parameters
-Id
The ID of the report to execute.
Type: Int32Parameter Sets: IdAliases:
Required: TruePosition: NamedDefault value: 0Accept pipeline input: FalseAccept wildcard characters: False-Name
The name of the report to execute.
Type: StringParameter Sets: NameAliases:
Required: TruePosition: NamedDefault value: NoneAccept pipeline input: FalseAccept wildcard characters: False-WithAdminId
The admin ID to impersonate when generating the report. Defaults to the current user when omitted.
Type: Int32Parameter Sets: (All)Aliases:
Required: FalsePosition: NamedDefault value: 0Accept pipeline input: FalseAccept wildcard characters: False-ReceiveEmails
One or more email addresses (comma-separated) that should receive the generated report.
Type: StringParameter Sets: (All)Aliases:
Required: FalsePosition: NamedDefault value: NoneAccept 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: FalseCommonParameters
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
You must run Connect-LMAccount before running this command.