Accessing target lists with MSP API
I am trying to get values from a target list, and first step is to get the target list, but when I run the command using the API, I only get the lists that show up when I have all boxes selected (I only have one box). When I select my 1 Firewalla gold, I have a more lists defined for that box and it is these that I want to access. The documentation says:
"This API gets all target lists within the MSP. The target lists that are returned are either managed by the MSP directly (global) or by boxes under the management of the MSP. If no target list is found, an empty array is returned."
So it sounds like it should return all lists? but I must be missing something.
-
By default, the API will return global and Firewalla-managed target lists. It doesn't include box-owned target lists.
If you want to see the lists that belong to a specific box, you can include your box ID or query multiple at once (comma-separated):
https://<msp_domain>/v2/target-lists?owner=owner,<box_gid>
We'll also make sure to add this clarification to the official API docs. Let me know if this helps.
Please sign in to leave a comment.
Comments
2 comments