Set-LMNormalizedProperties
Syntax
Add
Set-LMNormalizedProperties -Alias <String> [-Add] -Properties <Array> [-ProgressAction <ActionPreference>] [<CommonParameters>]
Remove
Set-LMNormalizedProperties -Alias <String> [-Remove] -Properties <Array> [-ProgressAction <ActionPreference>] [<CommonParameters>]
Description
The Set-LMNormalizedProperties cmdlet updates normalized properties in LogicMonitor. Normalized properties allow you to map multiple host properties to a single alias that can be used across your environment.
Examples
Example 1
Set-LMNormalizedProperties -Add -Alias "location" -Properties @("location", "snmp.sysLocation", "auto.meraki.location")Updates a normalized property with alias "location" to include the new properties.
Example 2
Set-LMNormalizedProperties -Remove -Alias "location" -Properties @("auto.meraki.location")Removes the "auto.meraki.location" property from the "location" alias.
Parameters
-Alias
The alias name for the normalized property.
Type: StringParameter Sets: (All)Aliases:
Required: TruePosition: NamedDefault value: NoneAccept pipeline input: FalseAccept wildcard characters: False
-Add
Indicates that properties should be added to the existing normalized property.
Type: SwitchParameterParameter Sets: AddAliases:
Required: TruePosition: NamedDefault value: FalseAccept pipeline input: FalseAccept wildcard characters: False
-Remove
Indicates that properties should be removed from the existing normalized property.
Type: SwitchParameterParameter Sets: RemoveAliases:
Required: TruePosition: NamedDefault value: FalseAccept pipeline input: FalseAccept wildcard characters: False
-Properties
An array of host property names to map to the alias.
Type: ArrayParameter Sets: (All)Aliases:
Required: TruePosition: NamedDefault 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.
Inputs
None.
Outputs
Returns a message indicating the success of the operation.
Notes
This function requires a valid LogicMonitor API authentication and uses API v4.