Where can I find the API 2.0 version of "/api/v1.0/storage/volume/<volume>/unlock/"?

level20peon

Cadet
Joined
May 20, 2018
Messages
4
I am trying to unlock a volume via API on Truenas 12.0. On Freenas this was possible using the "/api/v1.0/storage/volume/<volume>/unlock/" endpoint, but I can't find an equivalent on Truenas for that task.

So, how can I unlock an encrypted volume on Truenas 12.0 via API or by other programmatic means?
 

level20peon

Cadet
Joined
May 20, 2018
Messages
4
I would prefer to use the API but for now I am unlocking the volume via shell:

Code:
geli attach -j geli.password -k volume.key /dev/ada0p2
zpool import -R /mnt volume
 
Top