Get-LMCostOptimizationRecommendationCategory
Syntax
Section titled “Syntax”All (Default)
Section titled “All (Default)”Get-LMCostOptimizationRecommendationCategory [-BatchSize <int>] [<CommonParameters>]Filter
Section titled “Filter”Get-LMCostOptimizationRecommendationCategory [-Filter <Object>] [-BatchSize <int>] [<CommonParameters>]FilterWizard
Section titled “FilterWizard”Get-LMCostOptimizationRecommendationCategory [-FilterWizard] [-BatchSize <int>] [<CommonParameters>]Description
Section titled “Description”The Get-LMCostOptimizationRecommendationCategory function retrieves cloud cost optimization recommendation categories from a connected LogicMonitor portal.
Examples
Section titled “Examples”EXAMPLE 1
Section titled “EXAMPLE 1”#Retrieve all cost optimization recommendation categoriesGet-LMCostOptimizationRecommendationCategoryEXAMPLE 2
Section titled “EXAMPLE 2”#Retrieve cost optimization recommendation categories using a filterGet-LMCostOptimizationRecommendationCategory -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 recommendation categories. Only recommendationCategory and recommendationStatus are supported for filtering using the equals operator all others are not supported at this time.
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: ''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.