Import/update Content packs

Hi,

I’m using ansible to install/config my graylog instances. Now I wish to import/update /apply my content packs also.
The problem is that I can’t find a way with the api to retrieve the id from the content pack. When in the content pack the “id”: null then it imports it 2 times (POST /system/bundles).
To be able to use POST /system/bundles/{bundleId}/apply I could put a (fake) id in the json file but then the upload fails the second time and the PUT /system/bundles/{bundleId} fails the first time that I run the command.

Is there a way to get a “new” unique id with the api that I can put in the json file?
Is there a way to check if a certain Content pack is already Uploaded?

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.