- Trying to use the GET Export Devices operation on all the devices. The API guide instructs to use the URL '/webacs/api/v1/op/devices/exportDevices'. But when tried this without any request parameters (as shown in the documentation examples),got none. However, could successfully get a device export if tried to add an ipAddress parameter to the query. The documentation clearly states that the three available parameters are /optional/, so it's unclear to me why no devices are output without them.
You will have to specify one of the three parameters. It is a little confusing that they are marked as optional, but the API framework that we use only allows us to mark them as either "optional" or "required". Since you're not required to send all three for any single request, it would also be confusing to mark all of them as required
We tried to explain in the description of the resource:
It accepts three parameters: ipAddress, groupId or groupPath. If no parameters are specified, no devices will be exported.
- Is there any single parameter which could be added that would return /all/ devices. tried .full=true, but that didn't work.
It's kind of a hack (because this API resource was not written to support exporting all of the devices in the system) but you can use this:
The right thing to do is generate a list of IPs from /webacs/api/v1/data/Devices and loop through it.