New-LMAccessGroupMapping
Syntax
Section titled “Syntax”__AllParameterSets
Section titled “__AllParameterSets”New-LMAccessGroupMapping [-AccessGroupIds] <string[]> [-LogicModuleType] <string> [-LogicModuleId] <int> [-WhatIf] [-Confirm] [<CommonParameters>]Description
Section titled “Description”The New-LMAccessGroupMapping function creates a mapping between an access group and a logic module in LogicMonitor.
Examples
Section titled “Examples”EXAMPLE 1
Section titled “EXAMPLE 1”#Create a new access group mappingNew-LMAccessGroupMapping -AccessGroupIds "12345" -LogicModuleType "DATASOURCE" -LogicModuleId "67890"Parameters
Section titled “Parameters”-AccessGroupIds
Section titled “-AccessGroupIds”The IDs of the access groups to map. This parameter is mandatory.
Type: System.String[]DefaultValue: ''SupportsWildcards: falseAliases: []ParameterSets:- Name: (All) Position: 0 IsRequired: true 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: ''-LogicModuleId
Section titled “-LogicModuleId”The ID of the logic module to map. This parameter is mandatory.
Type: System.Int32DefaultValue: 0SupportsWildcards: falseAliases: []ParameterSets:- Name: (All) Position: 2 IsRequired: true ValueFromPipeline: false ValueFromPipelineByPropertyName: false ValueFromRemainingArguments: falseDontShow: falseAcceptedValues: []HelpMessage: ''-LogicModuleType
Section titled “-LogicModuleType”The type of logic module. Valid values are “DATASOURCE”, “EVENTSOURCE”, “BATCHJOB”, “JOBMONITOR”, “LOGSOURCE”, “TOPOLOGYSOURCE”, “PROPERTYSOURCE”, “APPLIESTO_FUNCTION”, “SNMP_SYSOID_MAP”.
Type: System.StringDefaultValue: ''SupportsWildcards: falseAliases: []ParameterSets:- Name: (All) Position: 1 IsRequired: true 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.