Skip to content

Remove-LMDeviceDatasourceInstanceGroup

Terminal window
Remove-LMDeviceDatasourceInstanceGroup -DatasourceName <String> -Id <Int32> -InstanceGroupName <String>
[-ProgressAction <ActionPreference>] [-WhatIf] [-Confirm] [<CommonParameters>]
Terminal window
Remove-LMDeviceDatasourceInstanceGroup -DatasourceName <String> -Name <String> -InstanceGroupId <String>
[-ProgressAction <ActionPreference>] [-WhatIf] [-Confirm] [<CommonParameters>]
Terminal window
Remove-LMDeviceDatasourceInstanceGroup -DatasourceName <String> -Name <String> -InstanceGroupName <String>
[-ProgressAction <ActionPreference>] [-WhatIf] [-Confirm] [<CommonParameters>]
Terminal window
Remove-LMDeviceDatasourceInstanceGroup -DatasourceName <String> -Id <Int32> -InstanceGroupId <String>
[-ProgressAction <ActionPreference>] [-WhatIf] [-Confirm] [<CommonParameters>]
Terminal window
Remove-LMDeviceDatasourceInstanceGroup -DatasourceId <Int32> -Name <String> -InstanceGroupId <String>
[-ProgressAction <ActionPreference>] [-WhatIf] [-Confirm] [<CommonParameters>]
Terminal window
Remove-LMDeviceDatasourceInstanceGroup -DatasourceId <Int32> -Name <String> -InstanceGroupName <String>
[-ProgressAction <ActionPreference>] [-WhatIf] [-Confirm] [<CommonParameters>]
Terminal window
Remove-LMDeviceDatasourceInstanceGroup -DatasourceId <Int32> -Id <Int32> -InstanceGroupId <String>
[-ProgressAction <ActionPreference>] [-WhatIf] [-Confirm] [<CommonParameters>]
Terminal window
Remove-LMDeviceDatasourceInstanceGroup -DatasourceId <Int32> -Id <Int32> -InstanceGroupName <String>
[-ProgressAction <ActionPreference>] [-WhatIf] [-Confirm] [<CommonParameters>]
Terminal window
Remove-LMDeviceDatasourceInstanceGroup -Id <Int32> -HdsId <String> -InstanceGroupId <String>
[-ProgressAction <ActionPreference>] [-WhatIf] [-Confirm] [<CommonParameters>]
Terminal window
Remove-LMDeviceDatasourceInstanceGroup -Id <Int32> -HdsId <String> -InstanceGroupName <String>
[-ProgressAction <ActionPreference>] [-WhatIf] [-Confirm] [<CommonParameters>]
Terminal window
Remove-LMDeviceDatasourceInstanceGroup -Name <String> -HdsId <String> -InstanceGroupId <String>
[-ProgressAction <ActionPreference>] [-WhatIf] [-Confirm] [<CommonParameters>]
Terminal window
Remove-LMDeviceDatasourceInstanceGroup -Name <String> -HdsId <String> -InstanceGroupName <String>
[-ProgressAction <ActionPreference>] [-WhatIf] [-Confirm] [<CommonParameters>]

The Remove-LMDeviceDatasourceInstanceGroup function removes a LogicMonitor device datasource instance group based on the provided parameters. It requires valid API credentials and a logged-in session.

Terminal window
Remove-LMDeviceDatasourceInstanceGroup -DatasourceName "CPU" -Name "Server01" -InstanceGroupName "Group1"
Removes the instance group named "Group1" associated with the "CPU" datasource on the device named "Server01".
Terminal window
Remove-LMDeviceDatasourceInstanceGroup -DatasourceId 123 -Id 456 -InstanceGroupName "Group2"
Removes the instance group named "Group2" associated with the datasource ID 123 on the device ID 456.

Specifies 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: String
Parameter Sets: Id-dsName-GroupName, Name-dsName-GroupId, Name-dsName-GroupName, Id-dsName-GroupId
Aliases:
Required: True
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

Specifies 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: Int32
Parameter Sets: Name-dsId-GroupId, Name-dsId-GroupName, Id-dsId-GroupId, Id-dsId-GroupName
Aliases:
Required: True
Position: Named
Default value: 0
Accept pipeline input: False
Accept wildcard characters: False

Specifies the ID of the device associated with the instance group. This parameter is mandatory when using the ‘Id-dsId’ or ‘Id-dsName’ parameter sets. This parameter can also be specified using the ‘DeviceId’ alias.

Type: Int32
Parameter Sets: Id-dsName-GroupName, Id-dsName-GroupId, Id-dsId-GroupId, Id-dsId-GroupName, Id-HdsId-GroupId, Id-HdsId-GroupName
Aliases: DeviceId
Required: True
Position: Named
Default value: 0
Accept pipeline input: False
Accept wildcard characters: False

Specifies the name of the device associated with the instance group. This parameter is mandatory when using the ‘Name-dsName’ or ‘Name-dsId’ parameter sets. This parameter can also be specified using the ‘DeviceName’ alias.

Type: String
Parameter Sets: Name-dsName-GroupId, Name-dsName-GroupName, Name-dsId-GroupId, Name-dsId-GroupName, Name-HdsId-GroupId, Name-HdsId-GroupName
Aliases: DeviceName
Required: True
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

Specifies the ID of the host datasource associated with the instance group. This parameter is mandatory when using the ‘Id-HdsId’ or ‘Name-HdsId’ parameter sets.

Type: String
Parameter Sets: Id-HdsId-GroupId, Id-HdsId-GroupName, Name-HdsId-GroupId, Name-HdsId-GroupName
Aliases:
Required: True
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

Specifies the name of the instance group to be removed. This parameter is mandatory.

Type: String
Parameter Sets: Id-dsName-GroupName, Name-dsName-GroupName, Name-dsId-GroupName, Id-dsId-GroupName, Id-HdsId-GroupName, Name-HdsId-GroupName
Aliases:
Required: True
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

Specifies the ID of the instance group to be removed. This parameter is mandatory.

Type: String
Parameter Sets: Name-dsName-GroupId, Id-dsName-GroupId, Name-dsId-GroupId, Id-dsId-GroupId, Id-HdsId-GroupId, Name-HdsId-GroupId
Aliases:
Required: True
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

Shows what would happen if the cmdlet runs. The cmdlet is not run.

Type: SwitchParameter
Parameter Sets: (All)
Aliases: wi
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

Prompts you for confirmation before running the cmdlet.

Type: SwitchParameter
Parameter Sets: (All)
Aliases: cf
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

Fill ProgressAction Description

Type: ActionPreference
Parameter Sets: (All)
Aliases: proga
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.

Returns a PSCustomObject containing the instance ID and a message confirming the successful removal of the instance group.

Section titled “Returns a PSCustomObject containing the instance ID and a message confirming the successful removal of the instance group.”