Remove-LMDeviceDatasourceInstance
Syntax
Section titled “Syntax”Name-dsName
Section titled “Name-dsName”Remove-LMDeviceDatasourceInstance -DatasourceName <string> -DeviceName <string> [-WildValue <string>] [-InstanceId <int>] [-WhatIf] [-Confirm] [<CommonParameters>]Id-dsName
Section titled “Id-dsName”Remove-LMDeviceDatasourceInstance -DatasourceName <string> -DeviceId <int> [-WildValue <string>] [-InstanceId <int>] [-WhatIf] [-Confirm] [<CommonParameters>]Name-dsId
Section titled “Name-dsId”Remove-LMDeviceDatasourceInstance -DatasourceId <int> -DeviceName <string> [-WildValue <string>] [-InstanceId <int>] [-WhatIf] [-Confirm] [<CommonParameters>]Id-dsId
Section titled “Id-dsId”Remove-LMDeviceDatasourceInstance -DatasourceId <int> -DeviceId <int> [-WildValue <string>] [-InstanceId <int>] [-WhatIf] [-Confirm] [<CommonParameters>]Description
Section titled “Description”The Remove-LMDeviceDatasourceInstance function removes a device datasource instance from Logic Monitor. It requires valid API credentials and the user must be logged in before running this command.
Examples
Section titled “Examples”EXAMPLE 1
Section titled “EXAMPLE 1”Remove-LMDeviceDatasourceInstance -Name "MyDevice" -DatasourceName "MyDatasource" -WildValue "12345"Removes the device datasource instance with the specified device name, datasource name, and wildcard value.
EXAMPLE 2
Section titled “EXAMPLE 2”Remove-LMDeviceDatasourceInstance -Id 123 -DatasourceId 456 -WildValue "67890"Removes the device datasource instance with the specified device ID, datasource ID, and wildcard value.
Parameters
Section titled “Parameters”-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: ''-DatasourceId
Section titled “-DatasourceId”Specifies the ID of the datasource. This parameter is mandatory when using the ‘Id-dsId’ or ‘Name-dsId’ parameter sets.
Type: System.Int32DefaultValue: 0SupportsWildcards: falseAliases: []ParameterSets:- Name: Name-dsId Position: Named IsRequired: true ValueFromPipeline: false ValueFromPipelineByPropertyName: false ValueFromRemainingArguments: false- Name: Id-dsId Position: Named IsRequired: true ValueFromPipeline: false ValueFromPipelineByPropertyName: true ValueFromRemainingArguments: falseDontShow: falseAcceptedValues: []HelpMessage: ''-DatasourceName
Section titled “-DatasourceName”Specifies the name of the datasource. This parameter is mandatory when using the ‘Id-dsName’ or ‘Name-dsName’ parameter sets.
Type: System.StringDefaultValue: ''SupportsWildcards: falseAliases: []ParameterSets:- Name: Name-dsName Position: Named IsRequired: true ValueFromPipeline: false ValueFromPipelineByPropertyName: false ValueFromRemainingArguments: false- Name: Id-dsName Position: Named IsRequired: true ValueFromPipeline: false ValueFromPipelineByPropertyName: false ValueFromRemainingArguments: falseDontShow: falseAcceptedValues: []HelpMessage: ''-DeviceId
Section titled “-DeviceId”Specifies the ID of the device. This parameter is mandatory when using the ‘Id-dsId’ or ‘Id-dsName’ parameter sets.
Type: System.Int32DefaultValue: 0SupportsWildcards: falseAliases: []ParameterSets:- Name: Id-dsName Position: Named IsRequired: true ValueFromPipeline: false ValueFromPipelineByPropertyName: false ValueFromRemainingArguments: false- Name: Id-dsId Position: Named IsRequired: true ValueFromPipeline: false ValueFromPipelineByPropertyName: true ValueFromRemainingArguments: falseDontShow: falseAcceptedValues: []HelpMessage: ''-DeviceName
Section titled “-DeviceName”Specifies the name of the device. This parameter is mandatory when using the ‘Name-dsName’ or ‘Name-dsId’ parameter sets.
Type: System.StringDefaultValue: ''SupportsWildcards: falseAliases: []ParameterSets:- Name: Name-dsId Position: Named IsRequired: true ValueFromPipeline: false ValueFromPipelineByPropertyName: false ValueFromRemainingArguments: false- Name: Name-dsName Position: Named IsRequired: true ValueFromPipeline: false ValueFromPipelineByPropertyName: false ValueFromRemainingArguments: falseDontShow: falseAcceptedValues: []HelpMessage: ''-InstanceId
Section titled “-InstanceId”Specifies the instance ID. Can also use the alias Id.
Type: System.Int32DefaultValue: 0SupportsWildcards: falseAliases:- IdParameterSets:- Name: (All) Position: Named IsRequired: false ValueFromPipeline: false ValueFromPipelineByPropertyName: true 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: ''-WildValue
Section titled “-WildValue”Specifies the wildcard value associated with the datasource instance.
Type: System.StringDefaultValue: ''SupportsWildcards: falseAliases: []ParameterSets:- Name: (All) Position: Named IsRequired: false ValueFromPipeline: false ValueFromPipelineByPropertyName: true 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.