Get-LMDeviceConfigSourceData
Syntax
Section titled “Syntax”ListDiffs (Default)
Section titled “ListDiffs (Default)”Get-LMDeviceConfigSourceData -Id <Int32> -HdsId <String> -HdsInsId <String> [-ProgressAction <ActionPreference>] [<CommonParameters>]ConfigId
Section titled “ConfigId”Get-LMDeviceConfigSourceData -Id <Int32> -HdsId <String> -HdsInsId <String> [-ConfigId <String>] [-ProgressAction <ActionPreference>] [<CommonParameters>]ListConfigs
Section titled “ListConfigs”Get-LMDeviceConfigSourceData -Id <Int32> -HdsId <String> -HdsInsId <String> [-LatestConfigOnly] [-ConfigType <String>] [-ProgressAction <ActionPreference>] [<CommonParameters>]Description
Section titled “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
Section titled “Examples”Example 1
Section titled “Example 1”#Retrieve latest configuration for a deviceGet-LMDeviceConfigSourceData -Id 123 -HdsId 456 -HdsInsId 789 -LatestConfigOnlyExample 2
Section titled “Example 2”#Retrieve full configuration historyGet-LMDeviceConfigSourceData -Id 123 -HdsId 456 -HdsInsId 789 -ConfigType FullParameters
Section titled “Parameters”The ID of the device to retrieve configuration data for. This parameter is mandatory.
Type: Int32Parameter Sets: (All)Aliases:
Required: TruePosition: NamedDefault value: 0Accept pipeline input: FalseAccept wildcard characters: False-HdsId
Section titled “-HdsId”The ID of the host datasource. This parameter is mandatory.
Type: StringParameter Sets: (All)Aliases:
Required: TruePosition: NamedDefault value: NoneAccept pipeline input: FalseAccept wildcard characters: False-HdsInsId
Section titled “-HdsInsId”The ID of the host datasource instance. This parameter is mandatory.
Type: StringParameter Sets: (All)Aliases:
Required: TruePosition: NamedDefault value: NoneAccept pipeline input: FalseAccept wildcard characters: False-ConfigId
Section titled “-ConfigId”The specific configuration ID to retrieve. Part of a mutually exclusive parameter set.
Type: StringParameter Sets: ConfigIdAliases:
Required: FalsePosition: NamedDefault value: NoneAccept pipeline input: FalseAccept wildcard characters: False-LatestConfigOnly
Section titled “-LatestConfigOnly”Switch to retrieve only the most recent configuration. Part of the ListConfigs parameter set.
Type: SwitchParameterParameter Sets: ListConfigsAliases:
Required: FalsePosition: NamedDefault value: FalseAccept pipeline input: FalseAccept wildcard characters: False-ConfigType
Section titled “-ConfigType”The type of configuration to retrieve. Valid values are “Delta” or “Full”. Defaults to “Delta”.
Type: StringParameter Sets: ListConfigsAliases:
Required: FalsePosition: NamedDefault value: DeltaAccept 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”None. You cannot pipe objects to this command.
Section titled “None. You cannot pipe objects to this command.”Outputs
Section titled “Outputs”Returns configuration data objects.
Section titled “Returns configuration data objects.”You must run Connect-LMAccount before running this command.