New-LMServiceTemplate
Syntax
Section titled “Syntax”__AllParameterSets
Section titled “__AllParameterSets”New-LMServiceTemplate [-Name] <string> [[-Description] <string>] [[-Cardinality] <array>] [[-PropertySelector] <array>] [[-Properties] <array>] [[-ServiceNamingPattern] <array>] [[-CreateGroup] <bool>] [[-GroupNamingPattern] <array>] [[-DefaultCriticality] <string>] [[-MembershipEvaluationInterval] <string>] [[-FilterType] <string>] [[-ResourceGroupRecords] <array>] [[-Criticality] <array>] [[-StaticGroup] <array>] [-WhatIf] [-Confirm] [<CommonParameters>]Description
Section titled “Description”The New-LMServiceTemplate function creates a new LogicMonitor Service template with the specified parameters.
Examples
Section titled “Examples”EXAMPLE 1
Section titled “EXAMPLE 1”New-LMServiceTemplate -Name "Application Services by Site" -Description "Default LM service template for application services"This example creates a new LogicMonitor Service template with basic parameters.
Parameters
Section titled “Parameters”-Cardinality
Section titled “-Cardinality”Array of cardinality properties with name and type properties.
Type: System.ArrayDefaultValue: ''SupportsWildcards: falseAliases: []ParameterSets:- Name: (All) Position: 2 IsRequired: false ValueFromPipeline: false ValueFromPipelineByPropertyName: false ValueFromRemainingArguments: falseDontShow: falseAcceptedValues: []HelpMessage: ''-Confirm
Section titled “-Confirm”Prompts you for confirmation before running the cmdlet.
Type: System.Management.Automation.SwitchParameterDefaultValue: ''SupportsWildcards: falseAliases:- cfParameterSets:- Name: (All) Position: Named IsRequired: false ValueFromPipeline: false ValueFromPipelineByPropertyName: false ValueFromRemainingArguments: falseDontShow: falseAcceptedValues: []HelpMessage: ''-CreateGroup
Section titled “-CreateGroup”Specifies whether to create groups for the service. Default is $true.
Type: System.BooleanDefaultValue: TrueSupportsWildcards: falseAliases: []ParameterSets:- Name: (All) Position: 6 IsRequired: false ValueFromPipeline: false ValueFromPipelineByPropertyName: false ValueFromRemainingArguments: falseDontShow: falseAcceptedValues: []HelpMessage: ''-Criticality
Section titled “-Criticality”Array of criticality configurations for the service template. Default is @().
Type: System.ArrayDefaultValue: '@()'SupportsWildcards: falseAliases: []ParameterSets:- Name: (All) Position: 12 IsRequired: false ValueFromPipeline: false ValueFromPipelineByPropertyName: false ValueFromRemainingArguments: falseDontShow: falseAcceptedValues: []HelpMessage: ''-DefaultCriticality
Section titled “-DefaultCriticality”The default criticality level. Default is “Medium”.
Type: System.StringDefaultValue: MediumSupportsWildcards: falseAliases: []ParameterSets:- Name: (All) Position: 8 IsRequired: false ValueFromPipeline: false ValueFromPipelineByPropertyName: false ValueFromRemainingArguments: falseDontShow: falseAcceptedValues: []HelpMessage: ''-Description
Section titled “-Description”The description of the Service template.
Type: System.StringDefaultValue: ''SupportsWildcards: falseAliases: []ParameterSets:- Name: (All) Position: 1 IsRequired: false ValueFromPipeline: false ValueFromPipelineByPropertyName: false ValueFromRemainingArguments: falseDontShow: falseAcceptedValues: []HelpMessage: ''-FilterType
Section titled “-FilterType”The filter type. Default is “2”.
Type: System.StringDefaultValue: 2SupportsWildcards: falseAliases: []ParameterSets:- Name: (All) Position: 10 IsRequired: false ValueFromPipeline: false ValueFromPipelineByPropertyName: false ValueFromRemainingArguments: falseDontShow: falseAcceptedValues: []HelpMessage: ''-GroupNamingPattern
Section titled “-GroupNamingPattern”Array of strings defining the group naming pattern.
Type: System.ArrayDefaultValue: ''SupportsWildcards: falseAliases: []ParameterSets:- Name: (All) Position: 7 IsRequired: false ValueFromPipeline: false ValueFromPipelineByPropertyName: false ValueFromRemainingArguments: falseDontShow: falseAcceptedValues: []HelpMessage: ''-MembershipEvaluationInterval
Section titled “-MembershipEvaluationInterval”The membership evaluation interval in minutes. Default is 30.
Type: System.StringDefaultValue: 30SupportsWildcards: falseAliases: []ParameterSets:- Name: (All) Position: 9 IsRequired: false ValueFromPipeline: false ValueFromPipelineByPropertyName: false ValueFromRemainingArguments: falseDontShow: falseAcceptedValues: []HelpMessage: ''The name of the Service template. This parameter is mandatory.
Type: System.StringDefaultValue: ''SupportsWildcards: falseAliases: []ParameterSets:- Name: (All) Position: 0 IsRequired: true ValueFromPipeline: false ValueFromPipelineByPropertyName: false ValueFromRemainingArguments: falseDontShow: falseAcceptedValues: []HelpMessage: ''-Properties
Section titled “-Properties”Array of properties to add to the services with id, value, and type.
Type: System.ArrayDefaultValue: ''SupportsWildcards: falseAliases: []ParameterSets:- Name: (All) Position: 4 IsRequired: false ValueFromPipeline: false ValueFromPipelineByPropertyName: false ValueFromRemainingArguments: falseDontShow: falseAcceptedValues: []HelpMessage: ''-PropertySelector
Section titled “-PropertySelector”Array of property selector objects for filtering.
Type: System.ArrayDefaultValue: ''SupportsWildcards: falseAliases: []ParameterSets:- Name: (All) Position: 3 IsRequired: false ValueFromPipeline: false ValueFromPipelineByPropertyName: false ValueFromRemainingArguments: falseDontShow: falseAcceptedValues: []HelpMessage: ''-ResourceGroupRecords
Section titled “-ResourceGroupRecords”Array of resource group records for the service template. Default is @().
Type: System.ArrayDefaultValue: '@()'SupportsWildcards: falseAliases: []ParameterSets:- Name: (All) Position: 11 IsRequired: false ValueFromPipeline: false ValueFromPipelineByPropertyName: false ValueFromRemainingArguments: falseDontShow: falseAcceptedValues: []HelpMessage: ''-ServiceNamingPattern
Section titled “-ServiceNamingPattern”Array of strings defining the service naming pattern.
Type: System.ArrayDefaultValue: ''SupportsWildcards: falseAliases: []ParameterSets:- Name: (All) Position: 5 IsRequired: false ValueFromPipeline: false ValueFromPipelineByPropertyName: false ValueFromRemainingArguments: falseDontShow: falseAcceptedValues: []HelpMessage: ''-StaticGroup
Section titled “-StaticGroup”Array of static group configurations for the service template. Default is @().
Type: System.ArrayDefaultValue: '@()'SupportsWildcards: falseAliases: []ParameterSets:- Name: (All) Position: 13 IsRequired: false ValueFromPipeline: false ValueFromPipelineByPropertyName: false ValueFromRemainingArguments: falseDontShow: falseAcceptedValues: []HelpMessage: ''-WhatIf
Section titled “-WhatIf”Runs the command in a mode that only reports what would happen without performing the actions.
Type: System.Management.Automation.SwitchParameterDefaultValue: ''SupportsWildcards: falseAliases:- wiParameterSets:- Name: (All) 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.