< Back

Get-lmDevice

Sat Jan 18, 2020 9:51 am

NAME Get-lmDevice



SYNOPSIS

Get devices from logicmonitor





SYNTAX

Get-lmDevice [[-Filter] <String[]>] [-Sort <String>] [-Field <String[]>] [-ItemLimit <Int32>] [<CommonParameters>]





DESCRIPTION

Implements device/devices endpoint from the logicmonitor API





PARAMETERS

-Filter <String[]>

Device Filter using LogicMonitors filter spec:

property{operator}value

Uses wild card char "*"

where operator is one of:

Greater than or equals: >:

Less than or equals: <:

Greater than: >

Less than: <

Does not equal: !:

Equals: :

Includes: ~

Does not include: :



Required? false

Position? 1

Default value

Accept pipeline input? false

Accept wildcard characters? false



-Sort <String>

Sort by a property (+property or -property)



Required? false

Position? named

Default value

Accept pipeline input? false

Accept wildcard characters? false



-Field <String[]>

Limit the returned fields



Required? false

Position? named

Default value

Accept pipeline input? false

Accept wildcard characters? false



-ItemLimit <Int32>

Number of items to retrieve per call (for rate limiting)



Required? false

Position? named

Default value 500

Accept pipeline input? false

Accept wildcard characters? false



<CommonParameters>

This cmdlet supports the common parameters: Verbose, Debug,

ErrorAction, ErrorVariable, WarningAction, WarningVariable,

OutBuffer, PipelineVariable, and OutVariable. For more information, see

about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).



INPUTS



OUTPUTS



-------------------------- EXAMPLE 1 --------------------------



PS C:\\>Get-lmDevice



#Returns all logicmonitor devices









-------------------------- EXAMPLE 2 --------------------------



PS C:\\>Get-lmDevice -filter '*dc*'



#returns all LogicMonitor Devices with DC in the name











RELATED LINKS