Skip to content

Get-LMDeviceDatasourceInstance

Terminal window
Get-LMDeviceDatasourceInstance -DatasourceName <string> -Name <string> [-Filter <Object>]
[-BatchSize <int>] [<CommonParameters>]
Terminal window
Get-LMDeviceDatasourceInstance -DatasourceName <string> -Id <int> [-Filter <Object>]
[-BatchSize <int>] [<CommonParameters>]
Terminal window
Get-LMDeviceDatasourceInstance -DatasourceId <int> -Name <string> [-Filter <Object>]
[-BatchSize <int>] [<CommonParameters>]
Terminal window
Get-LMDeviceDatasourceInstance -DatasourceId <int> -Id <int> [-Filter <Object>] [-BatchSize <int>]
[<CommonParameters>]

The Get-LMDeviceDatasourceInstance function retrieves instances of a datasource from a specific device in LogicMonitor. The device and datasource can be identified by either ID or name.

Terminal window
#Retrieve instances by device and datasource name
Get-LMDeviceDatasourceInstance -DatasourceName "CPU" -Name "Production-Server"
Terminal window
#Retrieve instances by IDs
Get-LMDeviceDatasourceInstance -DatasourceId 123 -Id 456

The number of results to return per request. Must be between 1 and 1000. Defaults to 1000.

Type: System.Int32
DefaultValue: 1000
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: (All)
Position: Named
IsRequired: false
ValueFromPipeline: false
ValueFromPipelineByPropertyName: false
ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''

The ID of the datasource to retrieve instances from. Required for certain parameter sets.

Type: System.Int32
DefaultValue: 0
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: Name-dsId
Position: Named
IsRequired: true
ValueFromPipeline: false
ValueFromPipelineByPropertyName: false
ValueFromRemainingArguments: false
- Name: Id-dsId
Position: Named
IsRequired: true
ValueFromPipeline: false
ValueFromPipelineByPropertyName: false
ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''

The name of the datasource to retrieve instances from. Required for certain parameter sets.

Type: System.String
DefaultValue: ''
SupportsWildcards: false
Aliases: []
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: false
DontShow: false
AcceptedValues: []
HelpMessage: ''

A filter object to apply when retrieving instances. This parameter is optional.

Type: System.Object
DefaultValue: ''
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: (All)
Position: Named
IsRequired: false
ValueFromPipeline: false
ValueFromPipelineByPropertyName: false
ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''

The ID of the device. Can be specified using the DeviceId alias. Required for certain parameter sets.

Type: System.Int32
DefaultValue: 0
SupportsWildcards: false
Aliases:
- DeviceId
ParameterSets:
- Name: Id-dsName
Position: Named
IsRequired: true
ValueFromPipeline: false
ValueFromPipelineByPropertyName: false
ValueFromRemainingArguments: false
- Name: Id-dsId
Position: Named
IsRequired: true
ValueFromPipeline: false
ValueFromPipelineByPropertyName: false
ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''

The name of the device. Can be specified using the DeviceName alias. Required for certain parameter sets.

Type: System.String
DefaultValue: ''
SupportsWildcards: false
Aliases:
- DeviceName
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: false
DontShow: false
AcceptedValues: []
HelpMessage: ''

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.