Skip to content

-Filter by id #68

@aggie87

Description

@aggie87

For some reason I can't filter by the id property. When I submit the following command

Get-LMDevice -Filter `id -eq 173'

I get all devices returned. I have tried multiple methods, including putting quotes around the 173. When i issue the -Debug command I see the following URL being invoked which looks correct per the REST API Basic Filters documentation

Get-LMDevice -Filter `id -eq 173' - Debug
DEBUG: Constructed Filter-v2: id%3a173
DEBUG: Invoked Command: Get-LMDevice
DEBUG: Bound Parameters: [Filter:id -eq 173] [Debug:True]
DEBUG: Invoked URL: https://xxxxxxx.logicmonitor.com/santaba/rest/device/devices?filter=id%3a173&size=1000&offset=0&sort=+id

it appears I can filter on any other property but the id property.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions