Set-LMUnmonitoredDevice
Syntax
Set-LMUnmonitoredDevice [-Ids] <String[]> [-DeviceGroupId] <Int32> [[-Description] <String>] [[-CollectorId] <Int32>] [-ProgressAction <ActionPreference>] [<CommonParameters>]
Description
The Set-LMUnmonitoredDevice function modifies unmonitored devices in LogicMonitor by assigning them to a device group.
Examples
Example 1
#Assigns the specified unmonitored devices to the device group and sets their description.Set-LMUnmonitoredDevice -Ids @("123", "456") -DeviceGroupId 789 -Description "New devices"
Parameters
-Ids
Specifies an array of unmonitored device IDs to update.
Type: String[]Parameter Sets: (All)Aliases:
Required: TruePosition: 1Default value: NoneAccept pipeline input: FalseAccept wildcard characters: False
-DeviceGroupId
Specifies the ID of the device group to assign the devices to.
Type: Int32Parameter Sets: (All)Aliases:
Required: TruePosition: 2Default value: 0Accept pipeline input: FalseAccept wildcard characters: False
-Description
Specifies a description for the devices.
Type: StringParameter Sets: (All)Aliases:
Required: FalsePosition: 3Default value: NoneAccept pipeline input: FalseAccept wildcard characters: False
-CollectorId
Specifies the ID of the collector to assign to the devices. Default is 0.
Type: Int32Parameter Sets: (All)Aliases:
Required: FalsePosition: 4Default value: 0Accept 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.
Outputs
Returns a LogicMonitor.Device object containing the updated device information.
Notes
This function requires a valid LogicMonitor API authentication.