Get-LMCostOptimizationRecommendation
Syntax
Section titled “Syntax”All (Default)
Section titled “All (Default)”Get-LMCostOptimizationRecommendation [-BatchSize <int>] [<CommonParameters>]Get-LMCostOptimizationRecommendation [-Id <string>] [-BatchSize <int>] [<CommonParameters>]Filter
Section titled “Filter”Get-LMCostOptimizationRecommendation [-Filter <Object>] [-BatchSize <int>] [<CommonParameters>]FilterWizard
Section titled “FilterWizard”Get-LMCostOptimizationRecommendation [-FilterWizard] [-BatchSize <int>] [<CommonParameters>]Description
Section titled “Description”The Get-LMCostOptimizationRecommendation function retrieves cloud cost optimization recommendations from a connected LogicMonitor portal.
Examples
Section titled “Examples”EXAMPLE 1
Section titled “EXAMPLE 1”#Retrieve all cost optimization recommendationsGet-LMCostOptimizationRecommendationEXAMPLE 2
Section titled “EXAMPLE 2”#Retrieve cost optimization recommendations using a filterGet-LMCostOptimizationRecommendation -Filter 'recommendationCategory -eq "Underutilized AWS EC2 instances"'Parameters
Section titled “Parameters”-BatchSize
Section titled “-BatchSize”The number of results to return per request. Must be between 1 and 1000. Defaults to 50.
Type: System.Int32DefaultValue: 50SupportsWildcards: falseAliases: []ParameterSets:- Name: (All) Position: Named IsRequired: false ValueFromPipeline: false ValueFromPipelineByPropertyName: false ValueFromRemainingArguments: falseDontShow: falseAcceptedValues: []HelpMessage: ''-Filter
Section titled “-Filter”A filter object to apply when retrieving cost optimization recommendations.
Type: System.ObjectDefaultValue: ''SupportsWildcards: falseAliases: []ParameterSets:- Name: Filter Position: Named IsRequired: false ValueFromPipeline: false ValueFromPipelineByPropertyName: false ValueFromRemainingArguments: falseDontShow: falseAcceptedValues: []HelpMessage: ''-FilterWizard
Section titled “-FilterWizard”Type: System.Management.Automation.SwitchParameterDefaultValue: FalseSupportsWildcards: falseAliases: []ParameterSets:- Name: FilterWizard Position: Named IsRequired: false ValueFromPipeline: false ValueFromPipelineByPropertyName: false ValueFromRemainingArguments: falseDontShow: falseAcceptedValues: []HelpMessage: ''The alphanumeric ID of the cost optimization recommendation to retrieve. Example: 1-2-EBS_UNATTACHED
Type: System.StringDefaultValue: ''SupportsWildcards: falseAliases: []ParameterSets:- Name: Id Position: Named IsRequired: false ValueFromPipeline: false ValueFromPipelineByPropertyName: false ValueFromRemainingArguments: falseDontShow: falseAcceptedValues: []HelpMessage: ''CommonParameters
Section titled “CommonParameters”This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable, -ProgressAction, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.