New-LMDeviceDatasourceInstanceGroup
Syntax
Section titled “Syntax”Name-dsName
Section titled “Name-dsName”New-LMDeviceDatasourceInstanceGroup -InstanceGroupName <String> [-Description <String>] -DatasourceName <String> -Name <String> [-ProgressAction <ActionPreference>] [-WhatIf] [-Confirm] [<CommonParameters>]Id-dsName
Section titled “Id-dsName”New-LMDeviceDatasourceInstanceGroup -InstanceGroupName <String> [-Description <String>] -DatasourceName <String> -Id <Int32> [-ProgressAction <ActionPreference>] [-WhatIf] [-Confirm] [<CommonParameters>]Name-dsId
Section titled “Name-dsId”New-LMDeviceDatasourceInstanceGroup -InstanceGroupName <String> [-Description <String>] -DatasourceId <Int32> -Name <String> [-ProgressAction <ActionPreference>] [-WhatIf] [-Confirm] [<CommonParameters>]Id-dsId
Section titled “Id-dsId”New-LMDeviceDatasourceInstanceGroup -InstanceGroupName <String> [-Description <String>] -DatasourceId <Int32> -Id <Int32> [-ProgressAction <ActionPreference>] [-WhatIf] [-Confirm] [<CommonParameters>]Description
Section titled “Description”The New-LMDeviceDatasourceInstanceGroup function creates a new instance group for a LogicMonitor device datasource. It requires the user to be logged in and have valid API credentials.
Examples
Section titled “Examples”Example 1
Section titled “Example 1”New-LMDeviceDatasourceInstanceGroup -InstanceGroupName "Group1" -Description "Instance group for Device1" -DatasourceName "DataSource1" -Name "Device1"Creates a new instance group named "Group1" with the description "Instance group for Device1" for the device named "Device1" and the datasource named "DataSource1".Example 2
Section titled “Example 2”New-LMDeviceDatasourceInstanceGroup -InstanceGroupName "Group2" -Description "Instance group for Device2" -DatasourceId 123 -Id 456Creates a new instance group named "Group2" with the description "Instance group for Device2" for the device with ID 456 and the datasource with ID 123.Parameters
Section titled “Parameters”-InstanceGroupName
Section titled “-InstanceGroupName”The name of the instance group to create. This parameter is mandatory.
Type: StringParameter Sets: (All)Aliases:
Required: TruePosition: NamedDefault value: NoneAccept pipeline input: FalseAccept wildcard characters: False-Description
Section titled “-Description”The description of the instance group.
Type: StringParameter Sets: (All)Aliases:
Required: FalsePosition: NamedDefault value: NoneAccept pipeline input: FalseAccept wildcard characters: False-DatasourceName
Section titled “-DatasourceName”The name of the datasource associated with the instance group. This parameter is mandatory when using the ‘Id-dsName’ or ‘Name-dsName’ parameter sets.
Type: StringParameter Sets: Name-dsName, Id-dsNameAliases:
Required: TruePosition: NamedDefault value: NoneAccept pipeline input: FalseAccept wildcard characters: False-DatasourceId
Section titled “-DatasourceId”The ID of the datasource associated with the instance group. This parameter is mandatory when using the ‘Id-dsId’ or ‘Name-dsId’ parameter sets.
Type: Int32Parameter Sets: Name-dsId, Id-dsIdAliases:
Required: TruePosition: NamedDefault value: 0Accept pipeline input: FalseAccept wildcard characters: FalseThe ID of the device associated with the instance group. This parameter is mandatory when using the ‘Id-dsId’ or ‘Id-dsName’ parameter sets.
Type: Int32Parameter Sets: Id-dsName, Id-dsIdAliases: DeviceId
Required: TruePosition: NamedDefault value: 0Accept pipeline input: FalseAccept wildcard characters: FalseThe name of the device associated with the instance group. This parameter is mandatory when using the ‘Name-dsName’ or ‘Name-dsId’ parameter sets.
Type: StringParameter Sets: Name-dsName, Name-dsIdAliases: DeviceName
Required: TruePosition: NamedDefault value: NoneAccept pipeline input: FalseAccept wildcard characters: False-WhatIf
Section titled “-WhatIf”Shows what would happen if the cmdlet runs. The cmdlet is not run.
Type: SwitchParameterParameter Sets: (All)Aliases: wi
Required: FalsePosition: NamedDefault value: NoneAccept pipeline input: FalseAccept wildcard characters: False-Confirm
Section titled “-Confirm”Prompts you for confirmation before running the cmdlet.
Type: SwitchParameterParameter Sets: (All)Aliases: cf
Required: FalsePosition: NamedDefault value: NoneAccept 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”None. You cannot pipe objects to this command.
Section titled “None. You cannot pipe objects to this command.”Outputs
Section titled “Outputs”Returns LogicMonitor.DeviceDatasourceInstanceGroup object.
Section titled “Returns LogicMonitor.DeviceDatasourceInstanceGroup object.”You must run Connect-LMAccount before running this command.