Skip to content

Get-LMDeviceConfigSourceData

Syntax

ListDiffs (Default)

Terminal window
Get-LMDeviceConfigSourceData -Id <Int32> -HdsId <String> -HdsInsId <String>
[-ProgressAction <ActionPreference>] [<CommonParameters>]

ConfigId

Terminal window
Get-LMDeviceConfigSourceData -Id <Int32> -HdsId <String> -HdsInsId <String> [-ConfigId <String>]
[-ProgressAction <ActionPreference>] [<CommonParameters>]

ListConfigs

Terminal window
Get-LMDeviceConfigSourceData -Id <Int32> -HdsId <String> -HdsInsId <String> [-LatestConfigOnly]
[-ConfigType <String>] [-ProgressAction <ActionPreference>] [<CommonParameters>]

Description

The Get-LMDeviceConfigSourceData function retrieves configuration data from a specific device’s configuration source in LogicMonitor. It supports retrieving full configurations or delta changes, and can return either all configs or just the latest one.

Examples

Example 1

Terminal window
#Retrieve latest configuration for a device
Get-LMDeviceConfigSourceData -Id 123 -HdsId 456 -HdsInsId 789 -LatestConfigOnly

Example 2

Terminal window
#Retrieve full configuration history
Get-LMDeviceConfigSourceData -Id 123 -HdsId 456 -HdsInsId 789 -ConfigType Full

Parameters

-Id

The ID of the device to retrieve configuration data for. This parameter is mandatory.

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

-HdsId

The ID of the host datasource. This parameter is mandatory.

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

-HdsInsId

The ID of the host datasource instance. This parameter is mandatory.

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

-ConfigId

The specific configuration ID to retrieve. Part of a mutually exclusive parameter set.

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

-LatestConfigOnly

Switch to retrieve only the most recent configuration. Part of the ListConfigs parameter set.

Type: SwitchParameter
Parameter Sets: ListConfigs
Aliases:
Required: False
Position: Named
Default value: False
Accept pipeline input: False
Accept wildcard characters: False

-ConfigType

The type of configuration to retrieve. Valid values are “Delta” or “Full”. Defaults to “Delta”.

Type: String
Parameter Sets: ListConfigs
Aliases:
Required: False
Position: Named
Default value: Delta
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

None. You cannot pipe objects to this command.

Outputs

Returns configuration data objects.

Notes

You must run Connect-LMAccount before running this command.