Get-LMCostOptimizationRecommendationCategory
Syntax
Section titled “Syntax”All (Default)
Section titled “All (Default)”Get-LMCostOptimizationRecommendationCategory [-BatchSize <Int32>] [-ProgressAction <ActionPreference>] [<CommonParameters>]Filter
Section titled “Filter”Get-LMCostOptimizationRecommendationCategory [-Filter <Object>] [-BatchSize <Int32>] [-ProgressAction <ActionPreference>] [<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”-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: ObjectParameter Sets: FilterAliases:
Required: FalsePosition: NamedDefault value: NoneAccept pipeline input: FalseAccept wildcard characters: False-BatchSize
Section titled “-BatchSize”The number of results to return per request. Must be between 1 and 1000. Defaults to 50.
Type: Int32Parameter Sets: (All)Aliases:
Required: FalsePosition: NamedDefault value: 50Accept 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”No input is accepted.
Section titled “No input is accepted.”Outputs
Section titled “Outputs”Returns LogicMonitor.CostOptimizationRecommendationCategory objects.
Section titled “Returns LogicMonitor.CostOptimizationRecommendationCategory objects.”You must run Connect-LMAccount before running this command. When using filters, consult the LM API docs for allowed filter fields.