Skip to content

Invoke-LMReportExecution

Syntax

Id (Default)

Terminal window
Invoke-LMReportExecution -Id <Int32> [-WithAdminId <Int32>] [-ReceiveEmails <String>]
[-ProgressAction <ActionPreference>] [<CommonParameters>]

Name

Terminal window
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

Terminal window
Invoke-LMReportExecution -Id 42

Starts an immediate execution of the report with ID 42 using the current user’s context.

Example 2

Terminal window
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: Int32
Parameter Sets: Id
Aliases:
Required: True
Position: Named
Default value: 0
Accept pipeline input: False
Accept wildcard characters: False

-Name

The name of the report to execute.

Type: String
Parameter Sets: Name
Aliases:
Required: True
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-WithAdminId

The admin ID to impersonate when generating the report. Defaults to the current user when omitted.

Type: Int32
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: 0
Accept pipeline input: False
Accept wildcard characters: False

-ReceiveEmails

One or more email addresses (comma-separated) that should receive the generated report.

Type: String
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-ProgressAction

Fill ProgressAction Description

Type: ActionPreference
Parameter Sets: (All)
Aliases: proga
Required: False
Position: Named
Default value: None
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

You must run Connect-LMAccount before running this command.