FalconPy - Error 403 for PerformActionV2 API Endpoint #1138
-
Hi Guys, I have a requirement where I need to delete entries for ephemeral machines in Falcon console. I am utilizing FalconPy for this. I am getting a list of host ID's that I need to delete with the help of "QueryDevicesByFilterScroll" endpoint and once I retrieve those out, I am trying to feed them to the PerformAction endpoint. However I am getting a 403 error with the message - 'access denied, authorization failed'. This is very strange as the API creds I am using has the Host "Read" scope and that's what the documentation states. I wasn't able to find anything online for this. Below is my script,
Can anyone help me here? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
Hi @usmanzargar thanks for the question! A 403 response back indicates either a scoping issue (where the client/secret pair is not authorized for the given action) or an IP Blocklist is being enforced. Based on your success in using the |
Beta Was this translation helpful? Give feedback.
Hi @usmanzargar thanks for the question! A 403 response back indicates either a scoping issue (where the client/secret pair is not authorized for the given action) or an IP Blocklist is being enforced.
Based on your success in using the
QueryDevicesByFilterScroll
operation it appears the first case is occurring. ThePerformActionV2
operation should require the Write permission be added for the same Hosts scope you have Read permission for already. Can you try adding this?