Hello,
I'm trying to use the filters object by group name using request.get (Python) via the FCT EMS Cloud API (see FortiClient EMS - FortiAPI - FNDN (fortinet.net)). So far I can't get it to work properly: if I run the following code (below is just the relevant get request of the code), the request gets authenticated and runs through. But the returned result still contain the index of all endpoint entries. Means, the filter setting seems note to be recognised for whatever reason. Please not that I've tried both 'group' as well as 'group_name' as key. Makes no difference.
Any example or idea from anybody?
Thanks a lot!
---- 8<-- code snipped-----
<...>
---- \-- code snipped-----
BTW, if I use a json object for the filter definition to pass to the params of the request method I get the a value error of "ValueError: not enough values to unpack (expected 2, got 1)":
Solved! Go to Solution.
Nominating a forum post submits a request to create a new Knowledge Article based on the forum post topic. Please ensure your nomination includes a solution within the reply.
Hi Anthony,
thanks a lot. By now I managed to get it to work. Maybe not in the most elegant way but it works. Via EMS Cloud API I can now:
- get all endpoints tagged with a certain zero trust tag
- compare them with the endpoints in a given workgroup
- move endpoints who are not in that workgroup into it
It required a little effort to find out about the EMS Cloud API and to get a grip of the data structures been used by EMS (just say dict of dict with nested lists :) ). Postman and HTTP Watch help a lot here. But it would be great if FortiNet could invest some time to update the API docu in the EMS Cloud admin guide and on DevNet. ;)
Regards,
Holger
Hello hmx8,
Thank you for using the Community Forum. I will seek to get you an answer or help. We will reply to this thread with an update as soon as possible.
Thanks,
Hi Anthony,
thanks a lot. By now I managed to get it to work. Maybe not in the most elegant way but it works. Via EMS Cloud API I can now:
- get all endpoints tagged with a certain zero trust tag
- compare them with the endpoints in a given workgroup
- move endpoints who are not in that workgroup into it
It required a little effort to find out about the EMS Cloud API and to get a grip of the data structures been used by EMS (just say dict of dict with nested lists :) ). Postman and HTTP Watch help a lot here. But it would be great if FortiNet could invest some time to update the API docu in the EMS Cloud admin guide and on DevNet. ;)
Regards,
Holger
Hello Holger,
Thank you for this precision. I will put your post as a solution.
Regards,
Select Forum Responses to become Knowledge Articles!
Select the “Nominate to Knowledge Base” button to recommend a forum post to become a knowledge article.
User | Count |
---|---|
1712 | |
1093 | |
752 | |
447 | |
231 |
The Fortinet Security Fabric brings together the concepts of convergence and consolidation to provide comprehensive cybersecurity protection for all users, devices, and applications and across all network edges.
Copyright 2024 Fortinet, Inc. All Rights Reserved.