How can I upload multiple JMX plugins with a single curl command?

Hello,

Is it possible to upload multiple JMX ZIPs for an environment using a single curl command? If yes, what is the format? I tried

-F "file=@custom.caches.zip;type=application/zip" -F "file=@custom.OSFileDescriptors.zip;type=application/zip"

Does not work. Also tried

-F "file=@custom.caches.zip,custom.OSFileDescriptors.zip;type=application/zip"

Does not work either.

As far as I know there is no way to upload multiple plugins in a single request. You have to upload each plugin definition in a separate request.

OK.

Here is the question - how can I speed up the upload/remediation?

I have a list of 10 plugins. And I have a list of 700 tenants missing these plugins. Calling API 7000 times takes 3 hours. Yes, my script has measured it.

I need to do it in less than 10 minutes. How can I do it?

You will have to rewrite your scripts to do the requests in parallel. You can issue multiple requests in parallel.

I’d recommend to read this blog post to get inspired: