AnsweredAssumed Answered

API: Adding multiple IPs to Asset Group

Question asked by Kevin Trojak on Jun 6, 2019
Latest reply on Jun 10, 2019 by Jordan Miller

Hey Everyone,

 

I have an API that lists hundreds of IPs that need to be added to an asset group. Unfortunately, the amount of IPs causes the URL length to exceed maximum length. Are there any workarounds for this? I am using PowerShell. My initial thought was to add -Body $body where $body is an xml form of the IPs to add but through testing, it seems as if the asset group API is not accepting XML POST data? 

 

Let me know what ideas anyone has. A snippet of my script is below

 

Thanks,

Kevin 

 

Outcomes