New-LMRecipient
Syntax
New-LMRecipient [-Type] <String> [-Addr] <String> [[-Method] <String>] [[-Contact] <String>] [-ProgressAction <ActionPreference>] [<CommonParameters>]
Description
The New-LMRecipient function creates a new LogicMonitor recipient object that can be used with recipient groups. The recipient can be an admin user, arbitrary email, or another recipient group.
Examples
Example 1
New-LMRecipient -Type ADMIN -Addr "admin@company.com" -Method "email"Creates a new admin recipient that will receive email notifications.
Example 2
New-LMRecipient -Type GROUP -Addr "EmergencyContacts"Creates a new recipient that references an existing recipient group.
Parameters
-Type
The type of recipient. Must be one of: ADMIN, ARBITRARY, or GROUP.
Type: StringParameter Sets: (All)Aliases:
Required: TruePosition: 1Default value: NoneAccept pipeline input: FalseAccept wildcard characters: False
-Addr
The address of the recipient. For ADMIN/ARBITRARY this is an email address, for GROUP this is the group name.
Type: StringParameter Sets: (All)Aliases:
Required: TruePosition: 2Default value: NoneAccept pipeline input: FalseAccept wildcard characters: False
-Method
The notification method for ADMIN recipients. Not used for GROUP type. Possible values: email, sms, voice, smsemail or the name of an existing integration
Type: StringParameter Sets: (All)Aliases:
Required: FalsePosition: 3Default value: NoneAccept pipeline input: FalseAccept wildcard characters: False
-Contact
Optional contact information for the recipient.
Type: StringParameter Sets: (All)Aliases:
Required: FalsePosition: 4Default 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: 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.