Forum Discussion

Cole_McDonald's avatar
Cole_McDonald
Icon for Professor rankProfessor
6 years ago

REST API GET Filtering

I'm attempting to retrieve a list of devices assigned to a specific collector.  I can't find any solid documentation for the queryParams portion of the URL.  I'm currently working on this:

$fromHost = <returned collector from previous commands; id is a field stored therein with the [int] ID of the collector>

$resourcePath = "/device/devices?filter=collectorid=$($fromHost.id)"

How do I need to alter this to make it work correctly... or where is the documentation for the query options?