Invoke-LMReportExecution
Syntax
Section titled “Syntax”Id (Default)
Section titled “Id (Default)”Invoke-LMReportExecution -Id <Int32> [-WithAdminId <Int32>] [-ReceiveEmails <String>] [-ProgressAction <ActionPreference>] [<CommonParameters>]Invoke-LMReportExecution -Name <String> [-WithAdminId <Int32>] [-ReceiveEmails <String>] [-ProgressAction <ActionPreference>] [<CommonParameters>]Description
Section titled “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
Section titled “Examples”Example 1
Section titled “Example 1”Invoke-LMReportExecution -Id 42Starts an immediate execution of the report with ID 42 using the current user’s context.
Example 2
Section titled “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
Section titled “Parameters”The ID of the report to execute.
Type: Int32Parameter Sets: IdAliases:
Required: TruePosition: NamedDefault value: 0Accept pipeline input: FalseAccept wildcard characters: FalseThe name of the report to execute.
Type: StringParameter Sets: NameAliases:
Required: TruePosition: NamedDefault value: NoneAccept pipeline input: FalseAccept wildcard characters: False-WithAdminId
Section titled “-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
Section titled “-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
Section titled “-ProgressAction”Fill ProgressAction Description
Type: ActionPreferenceParameter Sets: (All)Aliases: proga
Required: FalsePosition: NamedDefault value: NoneAccept pipeline input: FalseAccept wildcard characters: FalseCommonParameters
Section titled “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
Section titled “Inputs”Outputs
Section titled “Outputs”You must run Connect-LMAccount before running this command.