Is it possible to upload multiple mappings at once...
# help
p
Is it possible to upload multiple mappings at once rather doing it one by one? The
POST /__admin/mappings
endpoint only takes one at a time.
👀 1
l
The import endpoint (
/__admin/mappings/import
) allows more than one mapping to be imported into the backing store if that helps. If you wanted the imported mappings to then be persisted you would also need to call the
/__admin/mappings/save
endpoint
p
But the backing store is file system which in case of pods are ephemeral. It would be great if
POST /__admin/mappings
allows more than one
l
But If you are only adding and you don't need to save then import should be OK shouldn't it?
p
Okay I thought if import dumps it in backing store then pod has to be restarted. This that not the case? Will it also update in memory?
l
I think you can import and then the stub is ready to use. Might be worth testing to make sure
p
okay, I will give a shot
👍 1
cool, that works thanks!
🙌 1