Hi Rui,
Thanks for your question.
I think that this endpoint was created in time when the update volume
bconsole command required providing the volume name even though the allfrompool
parameter was provided. This was Bacula 5.x
or 7.x
. This way I provided the first volume from given pool to avoid prompting bconsole to select a volume.
Now I checked with Bacula 9
and 15
and I am seeing that this works fine without providing the volume name as well.
There is also probability that the update volume
command had not required providing the name from the begining and using the volume name in API was used there by mistake.
Regardless what is truth, now this looks to be something to simplify in the API. This should come soon.
For your question if the only one volume is updated or all in pool, there are updated all volumes despite of this single volume passed.
Thanks again, Rui.
Best regards,
Marcin Haba (gani)